Contents of /trunk/core/rp-pppoe/rp-pppoe-3.10-r4.smage2
Parent Directory | Revision Log
Revision 10259 -
(show annotations)
(download)
Fri Jan 20 13:43:37 2012 UTC (12 years, 8 months ago) by niro
File size: 1252 byte(s)
Fri Jan 20 13:43:37 2012 UTC (12 years, 8 months ago) by niro
File size: 1252 byte(s)
-import from magellan-next
1 | # $Id$ |
2 | |
3 | PNAME="rp-pppoe" |
4 | PVER="3.10" |
5 | PBUILD="r4" |
6 | |
7 | PCAT="net-dialup" |
8 | |
9 | DESCRIPTION="PPPoE (Point-to-Point Protocol over Ethernet) server and client for linux." |
10 | HOMEPAGE="http://www.roaringpenguin.com/products/pppoe" |
11 | |
12 | DEPEND=">= sys-apps/net-tools-1.60 |
13 | >= net-dialup/ppp-2.4" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}/src" |
17 | |
18 | RCVER=1.2 |
19 | |
20 | sminclude mbuild mtools |
21 | |
22 | SRC_URI=( |
23 | http://www.roaringpenguin.com/files/download/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/pppoe.rc-${RCVER} |
26 | mirror://${PNAME}/dsl-provider |
27 | ) |
28 | |
29 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" |
30 | |
31 | src_install() |
32 | { |
33 | cd ${SRCDIR} |
34 | mmake DESTDIR=${BINDIR} install || die |
35 | |
36 | # compress docs |
37 | gzip -9 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/* || die |
38 | |
39 | # initscripts (we may remove this and use ppp only!) |
40 | minstallrc pppoe.rc-${RCVER} pppoe || die |
41 | |
42 | # ppp helpers |
43 | minstalldir /etc/ppp/peers || die |
44 | minstallfile -s dsl-provider /etc/ppp/peers/dsl-provider || die |
45 | } |
46 | |
47 | postinstall() |
48 | { |
49 | echo |
50 | echo "To setup your ADSL internet-connection run 'pppoe-setup'," |
51 | echo "or use '/etc/ppp/peers/dsl-provider' via pppd. Do not forget" |
52 | echo "to symlink dsl-provider to /etc/ppp/peers/provider," |
53 | echo "or edit '/etc/conf.d/ppp to use 'dsl-provider'." |
54 | echo |
55 | } |