]> git.pld-linux.org Git - packages/rc-scripts.git/commitdiff
- added rc-scripts-dot_named_ifaces.patch
authorAdam Osuchowski <adwol@pld-linux.org>
Tue, 22 May 2012 19:35:50 +0000 (19:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 3

Changed files:
    rc-scripts-dot_named_ifaces.patch -> 1.1
    rc-scripts.spec -> 1.400

rc-scripts-dot_named_ifaces.patch [new file with mode: 0644]
rc-scripts.spec

diff --git a/rc-scripts-dot_named_ifaces.patch b/rc-scripts-dot_named_ifaces.patch
new file mode 100644 (file)
index 0000000..224a994
--- /dev/null
@@ -0,0 +1,31 @@
+Index: lib/ifup
+===================================================================
+--- lib/ifup   (revision 12567)
++++ lib/ifup   (working copy)
+@@ -24,6 +24,8 @@
+ # device name must be ifcfg-somename
+ DEV=$1
++SYSCTLDEVICE=$(echo ${DEVICE} | sed 's/\./\//g')
++
+ [ -z "$DEV" ] && {
+       nls "Usage: %s <device name>" "ifup" >&2
+       exit 1
+@@ -118,7 +120,7 @@
+ fi
+ if is_yes "${IPV6_NETWORKING}" && is_yes "${IPV6_DISABLE_AUTOCONF}"; then
+-      run_cmd "Disabling IPv6 autoconfiguration" sysctl -w net.ipv6.conf.${DEVICE}.autoconf=0
++      run_cmd "Disabling IPv6 autoconfiguration" sysctl -w net.ipv6.conf.${SYSCTLDEVICE}.autoconf=0
+ fi
+ if is_wireless_device "${DEVICE}"; then
+@@ -232,7 +234,7 @@
+ # device have to have ip address set before
+ if is_yes "$PROXYARP"; then
+-      run_cmd "$(nls 'Enabling proxy ARP on %s' "${DEVICE}")" sysctl -w net.ipv4.conf.${DEVICE}.proxy_arp=1
++      run_cmd "$(nls 'Enabling proxy ARP on %s' "${DEVICE}")" sysctl -w net.ipv4.conf.${SYSCTLDEVICE}.proxy_arp=1
+ fi
+ if [ "$HANDLING" = "3" ]; then
index a342946663fd607fc8c53eb52d554badd0cc1b5a..e1410331690e742ebcff86e78fe2c68065a08803 100644 (file)
@@ -9,7 +9,7 @@ Summary(pl.UTF-8):      inittab i skrypty startowe z katalogu /etc/rc.d
 Summary(tr.UTF-8):     inittab ve /etc/rc.d dosyaları
 Name:          rc-scripts
 Version:       0.4.5.4
-Release:       2
+Release:       3
 License:       GPL v2
 Group:         Base
 #Source0:      ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz
@@ -18,6 +18,7 @@ Source0:      %{name}-%{version}.tar.gz
 Source1:       rc-local.service
 Source2:       sys-chroots.service
 Source3:       %{name}.tmpfiles
+Patch0:                %{name}-dot_named_ifaces.patch
 URL:           http://svn.pld-linux.org/trac/svn/wiki/packages/rc-scripts
 BuildRequires: autoconf
 BuildRequires: automake
@@ -117,6 +118,7 @@ programcıklar içerir.
 
 %prep
 %setup -q
+%patch0 -p0
 
 # hack, currently this results in errno@@GLIBC_PRIVATE symbol in ppp-watch:
 #GLIB_LIBS="-Wl,-static `$PKG_CONFIG --libs --static glib-2.0` -Wl,-Bdynamic"
This page took 0.035565 seconds and 4 git commands to generate.