Annotation of /trunk/core/ppp/ppp-2.4.4-r6.smage2
Parent Directory | Revision Log
Revision 382 -
(hide annotations)
(download)
Wed Dec 24 00:11:02 2008 UTC (15 years, 9 months ago) by niro
File size: 2668 byte(s)
Wed Dec 24 00:11:02 2008 UTC (15 years, 9 months ago) by niro
File size: 2668 byte(s)
-rev bump to 2.4.4-r6; rebuild
1 | niro | 382 | # $Header: /magellan-cvs/smage/ppp/ppp-2.4.4-r5.smage2,v 1.1 2008/02/16 00:47:29 niro Exp $ |
2 | |||
3 | PNAME="ppp" | ||
4 | PVER="2.4.4" | ||
5 | PBUILD="r6" | ||
6 | |||
7 | PCATEGORIE="net-dialup" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="PPP (Point-to-Point Protocol) client and utilities." | ||
11 | HOMEPAGE="http://ppp.samba.org/" | ||
12 | |||
13 | DEPEND=">= sys-libs/libcap-1.10 | ||
14 | >= sys-libs/pam-0.99" | ||
15 | |||
16 | SDEPEND=">= sys-apps/sed-4" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | sminclude mtools | ||
22 | |||
23 | RC_REV="1.4" | ||
24 | |||
25 | SRC_URI=( | ||
26 | ftp://ftp.samba.org/pub/${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/ppp.rc-${RC_REV} | ||
29 | mirror://${PNAME}/ppp.confd | ||
30 | mirror://${PNAME}/ip-up | ||
31 | mirror://${PNAME}/ip-down | ||
32 | mirror://${PNAME}/modules.ppp | ||
33 | mirror://${PNAME}/provider.example | ||
34 | ) | ||
35 | |||
36 | UP2DATE="updatecmd ${HOMEPAGE} | grep latest | sed 's/.* \(.*\), .*/\1/'" | ||
37 | |||
38 | src_prepare() | ||
39 | { | ||
40 | munpack ${SRCFILE} || die | ||
41 | cd ${SRCDIR} | ||
42 | |||
43 | # enable ipv6 support | ||
44 | sed -i "s:^#HAVE_INET6:HAVE_INET6:" pppd/Makefile.linux || die | ||
45 | |||
46 | # enable pam support | ||
47 | sed -i "s:^#USE_PAM=y:USE_PAM=y:" pppd/Makefile.linux || die | ||
48 | |||
49 | # fix libdir on 64bit arches | ||
50 | sed -i "s:/lib/pppd:/$(mlibdir)/pppd:" pppd/pathnames.h || die | ||
51 | sed -i "s:/lib/pppd:/$(mlibdir)/pppd:" pppd/pppd.8 || die | ||
52 | sed -i "s:^\(LIBDIR =\).*:\1 \$(DESTDIR)/$(mlibdir)/pppd/\$(VERSION):" \ | ||
53 | pppd/plugins/Makefile.linux || die | ||
54 | } | ||
55 | |||
56 | src_compile() | ||
57 | { | ||
58 | cd ${SRCDIR} | ||
59 | mconfigure || die | ||
60 | mmake || die | ||
61 | |||
62 | # compile pppgetpass too | ||
63 | mmake -C contrib/pppgetpass pppgetpass.vt || die | ||
64 | } | ||
65 | |||
66 | src_install() | ||
67 | { | ||
68 | cd ${SRCDIR} | ||
69 | |||
70 | mmake INSTROOT=${BINDIR} install || die | ||
71 | mmake INSTROOT=${BINDIR} install-etcppp || die | ||
72 | |||
73 | # fix permissions | ||
74 | mchmod u+s-w /usr/sbin/pppd || die | ||
75 | |||
76 | # pam related stuff | ||
77 | minstallpam pppd/ppp.pam ppp || die | ||
78 | |||
79 | # install module aliases | ||
80 | minstalldir /etc/modules.d || die | ||
81 | minstallfile -s modules.ppp /etc/modules.d/ppp || die | ||
82 | |||
83 | # helper scripts | ||
84 | minstallexec -s ip-up /etc/ppp || die | ||
85 | minstallexec -s ip-down /etc/ppp || die | ||
86 | |||
87 | # install our initscript | ||
88 | minstallrc ppp.rc-${RC_REV} ppp || die | ||
89 | minstallconf ppp.confd ppp || die | ||
90 | |||
91 | # install a provider example | ||
92 | mkeepdir /etc/ppp/peers || die | ||
93 | minstallfile -s provider.example /etc/ppp/peers || die | ||
94 | |||
95 | # some nice scripts and progs | ||
96 | minstallexec scripts/pon /usr/sbin || die | ||
97 | minstallexec scripts/poff /usr/sbin || die | ||
98 | minstallexec scripts/plog /usr/sbin || die | ||
99 | minstallexec contrib/pppgetpass/pppgetpass.vt /usr/sbin/pppgetpass || die | ||
100 | |||
101 | # missing man pages | ||
102 | minstallman scripts/pon.1 || die | ||
103 | minstallman contrib/pppgetpass/pppgetpass.8 || die | ||
104 | |||
105 | # more example scripts | ||
106 | minstalldir /usr/share/doc/${PNAME}-${PVER} || die | ||
107 | cp -R scripts ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die | ||
108 | |||
109 | minstalldocs Changes* FAQ PLUGINS README* SETUP || die | ||
110 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |