net-dialup/rp-pppoe: Revbump to fix path to ifconfig (bug #602344).
authorLars Wendler <polynomial-c@gentoo.org>
Sun, 11 Dec 2016 21:15:21 +0000 (22:15 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Sun, 11 Dec 2016 21:15:40 +0000 (22:15 +0100)
Removed old.

Package-Manager: portage-2.3.3

net-dialup/rp-pppoe/files/rp-pppoe-3.11-kmode.patch
net-dialup/rp-pppoe/files/rp-pppoe-3.12-ifconfig-path.patch [new file with mode: 0644]
net-dialup/rp-pppoe/rp-pppoe-3.12-r1.ebuild [moved from net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild with 75% similarity]

index 039abd4877936ff988611b2997c4781126e43446..78a6a3b67541bfd4e76460834fa0b0754c2a93dc 100644 (file)
@@ -1,5 +1,5 @@
---- src/configure.in.old       2015-01-07 13:08:18.929959937 +0100
-+++ src/configure.in   2015-01-07 13:08:38.253406302 +0100
+--- a/src/configure.in
++++ b/src/configure.in
 @@ -26,6 +26,7 @@
  #include<net/ethernet.h>
  #include<linux/if.h>
diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.12-ifconfig-path.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.12-ifconfig-path.patch
new file mode 100644 (file)
index 0000000..2a56d40
--- /dev/null
@@ -0,0 +1,65 @@
+diff --git a/gui/tkpppoe.in b/gui/tkpppoe.in
+index 148c8c8..1d952d4 100755
+--- a/gui/tkpppoe.in
++++ b/gui/tkpppoe.in
+@@ -1573,7 +1573,7 @@ proc SetButtonStates {} {
+ #***********************************************************************
+ proc GetEthernetInterfaces {} {
+     set ifs {}
+-    set fp [open "|/sbin/ifconfig" "r"]
++    set fp [open "|/bin/ifconfig" "r"]
+     while {[gets $fp line] >= 0} {
+       if {[regexp {^eth[0-9]+} $line eth]} {
+           lappend ifs $eth
+diff --git a/scripts/pppoe-connect.in b/scripts/pppoe-connect.in
+index 2124422..e7eab32 100755
+--- a/scripts/pppoe-connect.in
++++ b/scripts/pppoe-connect.in
+@@ -28,7 +28,7 @@ exec_prefix=@exec_prefix@
+ localstatedir=/var
+
+ # Paths to programs
+-IFCONFIG=/sbin/ifconfig
++IFCONFIG=/bin/ifconfig
+ PPPD=@PPPD@
+ SETSID=@SETSID@
+ PPPOE=@sbindir@/pppoe
+diff --git a/scripts/pppoe-setup.in b/scripts/pppoe-setup.in
+index b378479..4122084 100755
+--- a/scripts/pppoe-setup.in
++++ b/scripts/pppoe-setup.in
+@@ -17,7 +17,7 @@ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+
+ # Paths to programs
+-IFCONFIG=/sbin/ifconfig
++IFCONFIG=/bin/ifconfig
+ PPPD=@PPPD@
+ PPPOE=@sbindir@/pppoe
+ ECHO=@ECHO@
+diff --git a/scripts/pppoe-start.in b/scripts/pppoe-start.in
+index 7e15804..b9dd7f0 100755
+--- a/scripts/pppoe-start.in
++++ b/scripts/pppoe-start.in
+@@ -29,7 +29,7 @@ exec_prefix=@exec_prefix@
+ # Paths to programs
+ CONNECT=@sbindir@/pppoe-connect
+ ECHO=@ECHO@
+-IFCONFIG=/sbin/ifconfig
++IFCONFIG=/bin/ifconfig
+
+ # Set to "C" locale so we can parse messages from commands
+ LANG=C
+diff --git a/scripts/pppoe-status b/scripts/pppoe-status
+index 9fe89cd..96d6ebd 100755
+--- a/scripts/pppoe-status
++++ b/scripts/pppoe-status
+@@ -73,7 +73,7 @@ for i in /etc/ppp/ppp*.pid /var/run/ppp*.pid ; do
+               exit 1
+           fi
+           echo "pppoe-status: Link is up and running on interface $IF"
+-          /sbin/ifconfig $IF
++          /bin/ifconfig $IF
+           exit 0
+       fi
+     fi
similarity index 75%
rename from net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild
rename to net-dialup/rp-pppoe/rp-pppoe-3.12-r1.ebuild
index 4739e1f59e3e9c393e6358b353de43739cfd3c02..a3e172fb6bd5aa894af9202060022e32850d4ee0 100644 (file)
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit eutils flag-o-matic autotools readme.gentoo
+inherit eutils flag-o-matic autotools readme.gentoo-r1
 
 PPP_P="ppp-2.4.7"
 
@@ -35,22 +35,29 @@ pkg_setup() {
        PPPD_VER=${PPPD_VER%%-*} #reduce it to ${PV}
 }
 
-src_prepare() {
+PATCHES=(
        # Patch to enable integration of pppoe-start and pppoe-stop with
        # baselayout-1.11.x so that the pidfile can be found reliably per interface
-       epatch "${FILESDIR}/${PN}-3.10-gentoo-netscripts.patch"
-
-       epatch "${FILESDIR}/${PN}-3.10-username-charset.patch" # bug 82410
-       epatch "${FILESDIR}/${PN}-3.10-plugin-options.patch"
-       epatch "${FILESDIR}/${PN}-3.10-autotools.patch"
-       has_version '<sys-kernel/linux-headers-2.6.35' && \
-               epatch "${FILESDIR}/${PN}-3.10-linux-headers.patch" #334197
-       epatch "${FILESDIR}/${PN}-3.10-posix-source-sigaction.patch"
-       epatch "${FILESDIR}/${PN}-3.11-gentoo.patch"
-       epatch "${FILESDIR}/${PN}-3.11-kmode.patch" #364941
-       epatch "${FILESDIR}/${PN}-3.12-linux-headers.patch"
-
-       epatch_user
+       "${FILESDIR}/${PN}-3.10-gentoo-netscripts.patch"
+
+       "${FILESDIR}/${PN}-3.10-username-charset.patch" # bug 82410
+       "${FILESDIR}/${PN}-3.10-plugin-options.patch"
+       "${FILESDIR}/${PN}-3.10-autotools.patch"
+       "${FILESDIR}/${PN}-3.10-posix-source-sigaction.patch"
+       "${FILESDIR}/${PN}-3.11-gentoo.patch"
+       "${FILESDIR}/${PN}-3.11-kmode.patch" #364941
+       "${FILESDIR}/${PN}-3.12-linux-headers.patch"
+       "${FILESDIR}/${PN}-3.12-ifconfig-path.patch" #602344
+)
+
+src_prepare() {
+       if has_version '<sys-kernel/linux-headers-2.6.35' ; then
+               PATCHES+=(
+                       "${FILESDIR}/${PN}-3.10-linux-headers.patch" #334197
+               )
+       fi
+
+       default
 
        cd "${S}"/src || die
        eautoreconf