/[gentoo-x86]/net-dialup/rp-pppoe/rp-pppoe-3.8-r2.ebuild
Gentoo

Contents of /net-dialup/rp-pppoe/rp-pppoe-3.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun May 12 04:00:43 2013 UTC (5 years, 6 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -5 lines
Remove redundant WANT_AUTOMAKE

(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dialup/rp-pppoe/rp-pppoe-3.8-r2.ebuild,v 1.12 2008/09/21 06:32:33 vapier Exp $
4
5 inherit eutils flag-o-matic autotools
6
7 DESCRIPTION="A user-mode PPPoE client and server suite for Linux"
8 HOMEPAGE="http://www.roaringpenguin.com/pppoe/"
9 SRC_URI="http://www.roaringpenguin.com/penguin/pppoe/${P}.tar.gz
10 ftp://ftp.samba.org/pub/ppp/ppp-2.4.3.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sh sparc x86"
15 IUSE="X"
16
17 RDEPEND="net-dialup/ppp
18 X? ( dev-lang/tk )"
19 # see bug #230491
20 DEPEND="|| ( <sys-kernel/linux-headers-2.6.24 >=sys-kernel/linux-headers-2.6.25 )
21 ${RDEPEND}"
22
23 src_unpack() {
24 unpack ${A} || die "failed to unpack"
25
26 # Patch to enable integration of pppoe-start and pppoe-stop with
27 # baselayout-1.11.x so that the pidfile can be found reliably per interface
28 epatch "${FILESDIR}/${P}-gentoo-netscripts.patch"
29
30 epatch "${FILESDIR}/${P}-username-charset.patch" # bug 82410
31 epatch "${FILESDIR}/${P}-plugin-options.patch"
32 epatch "${FILESDIR}/${P}-configure.patch"
33 epatch "${FILESDIR}/${P}-autoheader.patch"
34 epatch "${FILESDIR}/${P}-session-offset.patch" # bug 204476
35
36 cd "${S}"/src
37 eautoreconf
38 }
39
40 src_compile() {
41 addpredict /dev/ppp
42
43 cd "${S}/src"
44 econf --enable-plugin=../../ppp-2.4.3 || die "econf failed"
45 emake || die "emake failed"
46
47 if use X; then
48 make -C "${S}/gui" || die "gui make failed"
49 fi
50 }
51
52 src_install () {
53 cd "${S}/src"
54 make RPM_INSTALL_ROOT="${D}" docdir=/usr/share/doc/${PF} install \
55 || die "install failed"
56
57 #Don't use compiled rp-pppoe plugin - see pkg_preinst below
58 rm "${D}/etc/ppp/plugins/rp-pppoe.so"
59
60 prepalldocs
61
62 if use X; then
63 make -C "${S}/gui" install RPM_INSTALL_ROOT="${D}" \
64 datadir=/usr/share/doc/${PF}/ || die "gui install failed"
65 dosym /usr/share/doc/${PF}/tkpppoe /usr/share/tkpppoe
66 fi
67 }
68
69 pkg_preinst() {
70 # Use the rp-pppoe plugin that comes with net-dialup/pppd
71 local PPPD_VER=`best_version net-dialup/ppp`
72 PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
73 PPPD_VER=${PPPD_VER%%-*} #reduce it to ${PV}
74 if [ -n "${PPPD_VER}" ] && [ -f "${ROOT}/usr/lib/pppd/${PPPD_VER}/rp-pppoe.so" ] ; then
75 dosym /usr/lib/pppd/${PPPD_VER}/rp-pppoe.so /etc/ppp/plugins/rp-pppoe.so
76 fi
77 }
78
79 pkg_postinst() {
80 elog "Use pppoe-setup to configure your dialup connection."
81 }

  ViewVC Help
Powered by ViewVC 1.1.20