commit:     8398ff514accbd3a5ff05d51733024a885e6d6b6
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 13 21:38:08 2015 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Nov 13 21:38:19 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8398ff51

net-dialup/rp-pppoe: Bump to version 3.12

Package-Manager: portage-2.2.24
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 net-dialup/rp-pppoe/Manifest             |   1 +
 net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild | 100 +++++++++++++++++++++++++++++++
 2 files changed, 101 insertions(+)

diff --git a/net-dialup/rp-pppoe/Manifest b/net-dialup/rp-pppoe/Manifest
index df03efa..bc19c7b 100644
--- a/net-dialup/rp-pppoe/Manifest
+++ b/net-dialup/rp-pppoe/Manifest
@@ -1,4 +1,5 @@
 DIST ppp-2.4.3.tar.gz 688092 SHA256 
1e0fddb5f53613dd14ab10b25435e88092fed1eff09b4ac4448d5be01f3b0b11 SHA512 
221f0925ec8bb73df740cd563a34f387ce8bf2417d2797e7f360563d8de6524e1cdf058c185eaefc9cb3703828d32c6f1b74595916683e08168ce792c5f8333e
 WHIRLPOOL 
c6a7538f107adca4f7fcdfccec5aef4ebba248958c05b94badcf0f1a2ebde667cf55f9adf3bd8eae8c0e6a37ed54c1f836117412d1135363bdfa279197981c6e
 DIST ppp-2.4.7.tar.gz 688117 SHA256 
02e0a3dd3e4799e33103f70ec7df75348c8540966ee7c948e4ed8a42bbccfb30 SHA512 
e34ce24020af6a73e7a26c83c4f73a9c83fa455b7b363794dba27bf01f70368be06bff779777843949bd77f4bc9385d6ad455ea48bf8fff4e0d73cc8fef16ae2
 WHIRLPOOL 
48f3251e6b955ecfdaf9260b9ea5220d9e355fff836e2f5217ee0b15bf2c93e43f8207005f58bf1f97fb8ff0c76c56df8ecd8536f63c4d84d5940458ba0ba5c3
 DIST rp-pppoe-3.11.tar.gz 223234 SHA256 
86a1a4d92fcea74fa6dd45516c5975933fa978b36fafe71f76ea70b4b4747720 SHA512 
cb9579ad94f6b6cfd709e8061aacac0a007f1f58ffd50bd0603f5a2b612c0cf4831febdbfeee290b97932fd30f8ae7f707d532a291124c4aeae2333131d53905
 WHIRLPOOL 
5e0580b469973726696adc8754f4490877b748e04395873b63a7f6b87b682e0fe4d75f53b1cab674932fe7dcf4d7c99458979926f74589e6d4e15b07505720f6
+DIST rp-pppoe-3.12.tar.gz 224125 SHA256 
00794e04031546b0e9b8cf286f2a6d1ccfc4a621b2a3abb2d7ef2a7ab7cc86c2 SHA512 
1b9e4c806fcbad1bc21f7b74a780ae98682b10a69d91fb08df6dbd1fff86f6271995ebded43f926f8249a17cdddb541edccbbb3ee28e1a2dc89173ad61cd3de1
 WHIRLPOOL 
3285578003c1f03037517e468829e72cc4bbaeeb78f40bbcaf27a077ab3437fa4139bb7b141311658dbff55597da42d66c31155a180ed9acfefdc73dab1fffaf
 DIST rp-pppoe-3.8.tar.gz 212931 SHA256 
d916e9cfe1e62395f63a5361936fa855f6d0f0a37dc7227b394cdb725f553479 SHA512 
fd929978790645639800164ad1855862f2b2ec4597a2c4c76ea7691aafd7f6ab5797fc64034eefb574dcf6dd51c51eda91c461f70bf4f557d46fee656143effc
 WHIRLPOOL 
048789a83cfcd50d95779c2eb5f31553500288138e70c6daa511e91edcf4010e17d9d106e8f1338741b1be7b5a9bf058a6bfafea0ff27665d2e53667d5bf3427

diff --git a/net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild 
b/net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild
new file mode 100644
index 0000000..8c6928b
--- /dev/null
+++ b/net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic autotools readme.gentoo
+
+PPP_P="ppp-2.4.7"
+
+DESCRIPTION="A user-mode PPPoE client and server suite for Linux"
+HOMEPAGE="http://www.roaringpenguin.com/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.24 
>=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}
+}
+
+src_prepare() {
+       # 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_user
+
+       cd "${S}"/src || die
+       eautoreconf
+}
+
+src_configure() {
+       addpredict /dev/ppp
+
+       cd "${S}/src" || die
+       econf --enable-plugin=../../ppp-${PPPD_VER}
+}
+
+src_compile() {
+       cd "${S}/src" || die
+       emake
+
+       if use tk; then
+               emake -C "${S}/gui" || die "gui make failed"
+       fi
+}
+
+src_install () {
+       cd "${S}/src" || die
+       emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install
+
+       #Don't use compiled rp-pppoe plugin - see pkg_preinst below
+       local pppoe_plugin="${D}/etc/ppp/plugins/rp-pppoe.so"
+       if [ -f "${pppoe_plugin}" ] ; then
+               rm "${pppoe_plugin}" || die
+       fi
+
+       if use tk; then
+               emake -C "${S}/gui" \
+                       DESTDIR="${D}" \
+                       datadir=/usr/share/doc/${PF}/ \
+                       install
+               dosym /usr/share/doc/${PF}/tkpppoe /usr/share/tkpppoe
+       fi
+
+       readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+       # Use the rp-pppoe plugin that comes with net-dialup/pppd
+       if [ -n "${PPPD_VER}" ] && [ -f 
"${ROOT}/usr/lib/pppd/${PPPD_VER}/rp-pppoe.so" ] ; then
+               dosym /usr/lib/pppd/${PPPD_VER}/rp-pppoe.so 
/etc/ppp/plugins/rp-pppoe.so
+       fi
+}

Reply via email to