From 0c44a81c4dcf50d4c01d24a497ac27698d482cde Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Sun, 11 Dec 2016 22:15:21 +0100 Subject: net-dialup/rp-pppoe: Revbump to fix path to ifconfig (bug #602344). Removed old. Package-Manager: portage-2.3.3 --- .../rp-pppoe/files/rp-pppoe-3.11-kmode.patch | 4 +- .../files/rp-pppoe-3.12-ifconfig-path.patch | 65 +++++++++++++ net-dialup/rp-pppoe/rp-pppoe-3.12-r1.ebuild | 108 +++++++++++++++++++++ net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild | 101 ------------------- 4 files changed, 175 insertions(+), 103 deletions(-) create mode 100644 net-dialup/rp-pppoe/files/rp-pppoe-3.12-ifconfig-path.patch create mode 100644 net-dialup/rp-pppoe/rp-pppoe-3.12-r1.ebuild delete mode 100644 net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.11-kmode.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.11-kmode.patch index 039abd487793..78a6a3b67541 100644 --- a/net-dialup/rp-pppoe/files/rp-pppoe-3.11-kmode.patch +++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.11-kmode.patch @@ -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 #include 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 index 000000000000..2a56d40fabcf --- /dev/null +++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.12-ifconfig-path.patch @@ -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 diff --git a/net-dialup/rp-pppoe/rp-pppoe-3.12-r1.ebuild b/net-dialup/rp-pppoe/rp-pppoe-3.12-r1.ebuild new file mode 100644 index 000000000000..a3e172fb6bd5 --- /dev/null +++ b/net-dialup/rp-pppoe/rp-pppoe-3.12-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils flag-o-matic autotools readme.gentoo-r1 + +PPP_P="ppp-2.4.7" + +DESCRIPTION="A user-mode PPPoE client and server suite for Linux" +HOMEPAGE="https://www.roaringpenguin.com/products/pppoe" +SRC_URI="http://www.roaringpenguin.com/files/download/${P}.tar.gz + ftp://ftp.samba.org/pub/ppp/${PPP_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="tk" + +RDEPEND=" + net-dialup/ppp:= + tk? ( dev-lang/tk:= ) +" +# see bug #230491 +DEPEND="|| ( =sys-kernel/linux-headers-2.6.25 ) + ${RDEPEND}" + +DOC_CONTENTS="Use pppoe-setup to configure your dialup connection" + +pkg_setup() { + # This is needed in multiple phases + PPPD_VER=$(best_version net-dialup/ppp) + PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} + PPPD_VER=${PPPD_VER%%-*} #reduce it to ${PV} +} + +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 + "${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 '