Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
sysconfig
sysconfig.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sysconfig.spec of Package sysconfig
# # spec file for package sysconfig (Version 0.71.11) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: sysconfig Version: 0.71.11 Release: 7.<RELEASE6> Summary: The sysconfig scheme Group: System/Base License: GPL v2 or later AutoReqProv: on PreReq: %fillup_prereq %insserv_prereq textutils fileutils gawk sed grep Requires: iproute2 dbus-1 hal procps BuildRequires: sysfsutils BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %name-%version.tar.bz2 Patch0: sysconfig-hwcfg2rules-handle-hsi.bnc440570.diff Patch1: sysconfig-bonding-slave-resolve.bnc429858.diff Patch2: sysconfig-do-not-create-ntp-dir.bnc443326.diff Patch3: sysconfig-skip-ifup-hotplug-for-bridges.bnc443749.diff Patch4: sysconfig-netconfig-8-man-page.bnc446545.diff Patch5: sysconfig-network-remotefs-virtual-order.bnc447098.diff Patch6: sysconfig-ifup-dhcp-dhcpcd-lastlease.bnc447237.diff Patch7: sysconfig-ip-up-dns-from-provider-file.bnc449518.diff Patch8: sysconfig-netcontrol_global_hooks-exit-code.bnc450155.diff Patch9: sysconfig-networkmanager-resolv-conf.bnc450332.diff Patch10: sysconfig-ip-up-d-script-args-fix.bnc450772.diff Patch11: sysconfig-ifup-dhcp-skip-dhcpv6-without-ipv6.bnc445686.diff Patch12: sysconfig-ifup-dhcp-status-codes.bnc460093.diff Patch13: sysconfig-ifdown-autoip-check-info.bnc463266.diff Patch14: sysconfig-network.diff Patch15: sysconfig-ifup-route-ipv6-fixes.bnc467165.diff Patch16: sysconfig-ifup-route-read_routes_eol.bnc467165.diff Patch17: sysconfig-ifup-tunnel-modprobe.bnc467165.diff Patch18: sysconfig-ifup-tunnel-skip-tunnel0.bnc467165.diff Patch19: sysconfig-handle-dummy-ifaces.bnc436857.diff Patch20: sysconfig-ifup-wireless_ap_madwifi.bnc402438.diff Patch21: sysconfig-ifup-wireless-no-default-nick.bnc478513.diff Patch22: sysconfig-rcnetwork-message-output.bnc406887.diff Patch23: sysconfig-netconfig-locale-regex-fixes.bnc488257.diff Patch24: sysconfig-nm-online-no-exit.bnc515629.diff Patch25: sysconfig-rcnetwork-tap-in-localfs-flow.bnc522225.diff Patch26: sysconfig-ifup-dhcp-dhclient6-variable-typo.bnc524691.diff Patch27: sysconfig-allow-per-dhcp-client-user-options.bnc524695.diff Patch28: sysconfig-netconfig-reload-bind.bnc541035.diff Patch29: sysconfig-blacklist-misdn-modules.bnc537052.diff Patch30: sysconfig-ifstatus-typo-fix.bnc542230.diff Patch31: sysconfig-attr-in-convert_persistent_name_rules.bnc546575.diff Patch32: sysconfig-no-wireless-ap-for-wl-driver.bnc555774.diff Patch33: sysconfig-avoid-pcmcia-prod_id-err-msg.bnc551640.diff Patch34: sysconfig-ifup-dhcp-running-detection.bnc562030.diff Patch35: sysconfig-ifup-dhcp-dhcpcd-config-sync.bnc518219.diff Patch36: sysconfig-ifup-tunnel-allow-existing-tap.bnc557864.diff %description This package provides the SuSE system configuration scheme. Authors: -------- Olaf Kirch <okir@suse.de> Bjoern Jacke <bjoern@j3e.de> Mads Martin Joergensen <mmj@suse.de> Peter Poeml <poeml@suse.de> Arvin Schnell <arvin@suse.de> Michal Svec <msvec@suse.cz> Christian Zoz <zoz@suse.de> Werner Fink <werner@suse.de> Marius Tomaschewski <mt@suse.de> %prep %setup -n sysconfig-%{version} %patch0 -p1 %patch1 -p0 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p0 %patch6 -p0 %patch7 -p0 %patch8 -p0 %patch9 -p0 %patch10 -p0 %patch11 -p0 %patch12 -p0 %patch13 -p0 %patch14 -p0 %patch15 -p0 %patch16 -p0 %patch17 -p0 %patch18 -p0 %patch19 -p0 %patch20 -p0 %patch21 -p0 %patch22 -p0 %patch23 -p0 %patch24 -p0 %patch25 -p0 %patch26 -p0 %patch27 -p0 %patch28 -p0 %patch29 -p0 %patch30 -p0 %patch31 -p1 %patch32 -p1 %patch33 -p1 %patch34 -p1 %patch35 -p1 %patch36 -p1 %build autoreconf --force --install CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC" \ ./configure --prefix=/ \ --sbindir=/sbin \ --libdir=/%_lib \ --libdir=/usr/%_lib \ --sysconfdir=%_sysconfdir \ --mandir=%_mandir \ --with-fillup-templatesdir=/var/adm/fillup-templates %{__make} %check make check %clean rm -rf $RPM_BUILD_ROOT %install make DESTDIR=$RPM_BUILD_ROOT install # This directory is not used since some time (was used for ifup locking) mkdir -p $RPM_BUILD_ROOT/var/lock/subsys/sysconfig touch $RPM_BUILD_ROOT/etc/sysconfig/network/config touch $RPM_BUILD_ROOT/etc/sysconfig/network/dhcp # remove template dir rm -rf $RPM_BUILD_ROOT/etc/sysconfig/network/ifservices.template/ %files %defattr(-,root,root) /etc/init.d/* %ghost /etc/sysconfig/network/config %ghost /etc/sysconfig/network/dhcp %config(noreplace) /etc/sysconfig/network/ifcfg-lo %config(noreplace) /etc/sysconfig/network/ifroute-lo %config(noreplace) /etc/ppp/ip-up %config(noreplace) /etc/ppp/ip-down %config(noreplace) /etc/ppp/ipv6-up %config(noreplace) /etc/ppp/ipv6-down %dir /etc/udev %dir /etc/udev/rules.d %config /etc/udev/rules.d/77-network.rules %dir /etc/modprobe.d %config /etc/modprobe.d/blacklist /etc/sysconfig/network/ifcfg.template /etc/sysconfig/network/scripts/* /etc/sysconfig/hardware /etc/netconfig.d /etc/ppp/poll.tcpip /etc/NetworkManager /sbin/* %doc /usr/share/doc/packages/sysconfig %_mandir/*/* /usr/share/omc/svcinfo.d/network.xml /var/adm/fillup-templates/sysconfig.dhcp-network /var/adm/fillup-templates/sysconfig.config-network %dir /var/lock/subsys/sysconfig %pre if [ -f etc/sysconfig/hardware ] ; then mv etc/sysconfig/hardware etc/sysconfig/ide fi # package update ? if [ ${1:-0} -gt 1 ]; then # conversion of persistent name rules if [ -f /etc/udev/rules.d/30-net_persistent_names.rules ] ; then mv -v /etc/udev/rules.d/30-net_persistent_names.rules \ /etc/udev/rules.d/30-net_persistent_names.rules.to_convert fi # if oldversion < 0.70.0 touch etc/sysconfig/network/__convert_hwdesc_to_iface__ # fi fi %post pushd etc/sysconfig/network >/dev/null for i in ifcfg-ppp* ifcfg-ippp* ifcfg-dsl* ifcfg-modem* ; do case $i in ifcfg-ippp\*|ifcfg-ppp\*|ifcfg-dsl\*|ifcfg-modem\*) # drop no matching file continue ;; *~*|*.*) # drop backup files, rpm{save,new,orig} continue ;; ifcfg-ippp*|ifcfg-ppp*|ifcfg-dsl*|ifcfg-modem*) # optfile grep -q -s "^USERCONTROL" $i if [ $? -ne 0 ] ; then echo "USERCONTROL=\"yes\"" >> $i fi ;; esac done popd >/dev/null if [ -d etc/sysconfig/isdn ]; then pushd etc/sysconfig/isdn >/dev/null for i in cfg-net* ; do case $i in cfg-net\*) # drop no matching file continue ;; *~*|*.*) # drop backup files, rpm{save,new,orig} continue ;; cfg-net*) PROTOCOL="" proto=`grep "^PROTOCOL" $i` eval $proto if [ "$PROTOCOL" = "syncppp" ] ; then grep -q -s "^USERCONTROL" $i if [ $? -ne 0 ] ; then echo "USERCONTROL=\"yes\"" >> $i fi fi ;; esac done popd >/dev/null fi # conversion of persistent name rules if [ -f /etc/udev/rules.d/30-net_persistent_names.rules.to_convert ] ; then etc/sysconfig/network/scripts/convert_persistent_name_rules fi # convert hwdescs to interface names in config filenames and variables if [ -f etc/sysconfig/network/__convert_hwdesc_to_iface__ ] ; then pushd etc/sysconfig/network scripts/hwdesc2iface netconfig . for cf in ifcfg-*; do scripts/hwdesc2iface $cf done if [ -f ../SuSEfirewall2 ] ; then scripts/hwdesc2iface ../SuSEfirewall2 FW_DEV_ fi rm -f __convert_hwdesc_to_iface__ popd fi # pushd /etc/sysconfig/hardware > /dev/null for cfg in hwcfg-*-ccw-* ; do [ -f $cfg ] && bash ./hwcfg2rules $cfg done popd > /dev/null # ## we provide own, improved variant of the remove_and_set suse ## rpm macro that is able to handle files in subdirs, and more . etc/sysconfig/network/scripts/functions.rpm-utils # %{fillup_and_insserv -fY network} %{fillup_and_insserv -fY network-remotefs} if test -f etc/sysconfig/network/dhcp ; then # remove first, we need the new default value sysconfig_remove_and_set network/dhcp DHCLIENT_TIMEOUT fi %{fillup_only -dns dhcp network network} %{fillup_only -dns config network network} /sbin/ldconfig echo "Removing old autogenerated device configuration files:" rm -vf $(grep -sl "HOTPLUG-FLAG: *autocreated" /etc/sysconfig/hardware/hwcfg-*) sysconfig_remove_and_set storage HOTPLUG_MOUNT_FSTAB HOTPLUG_CHECK_FILESYSTEMS # # * update to >= 11.1 / SLE11: # # convert dns / modify_resolvconf to netconfig if [ -e etc/sysconfig/network/scripts/convert_to_netconfig_dns ] ; then ROOT=$PWD bash etc/sysconfig/network/scripts/convert_to_netconfig_dns fi # convert nis / dhclient variables to netconfig if [ -e etc/sysconfig/network/scripts/convert_to_netconfig_nis ] ; then ROOT=$PWD bash etc/sysconfig/network/scripts/convert_to_netconfig_nis fi # remove ntp variables obsoleted by netconfig (new default is "yes") # as well as some another obsolete dhcp variables for file in etc/sysconfig/network/dhcp etc/sysconfig/network/ifcfg-* ; do name="${file##*\/ifcfg-}" case $name in (lo|""|*" "*|*~|*.old|*.rpmnew|*.rpmsave|*.scpmbackup) continue ;; esac sysconfig_remove_and_set -b "" $file \ DHCLIENT_MODIFY_NTP_CONF \ DHCLIENT_ADDITIONAL_OPTIONS \ DHCLIENT_SCRIPT_EXE done # erroneous move from network/dhcp to network/config while 11.1 beta sysconfig_remove_and_set network/config WRITE_HOSTNAME_TO_HOSTS %postun %{insserv_cleanup} /sbin/ldconfig %preun %{stop_on_removal network} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor