Contents of /trunk/core/ppp/ppp-2.4.4-r9.smage2
Parent Directory | Revision Log
Revision 1552 -
(show annotations)
(download)
Mon May 11 09:47:51 2009 UTC (15 years, 4 months ago) by niro
File size: 5339 byte(s)
Mon May 11 09:47:51 2009 UTC (15 years, 4 months ago) by niro
File size: 5339 byte(s)
-several fixes from gentoo
1 | # $Id$ |
2 | |
3 | PNAME="ppp" |
4 | PVER="2.4.4" |
5 | PBUILD="r9" |
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.5" |
24 | IPUP_REV="1.2" |
25 | IPDOWN_REV="1.2" |
26 | |
27 | SRC_URI=( |
28 | ftp://ftp.samba.org/pub/${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${PNAME}-${PVER}-make-vars.patch |
31 | mirror://${PNAME}/${PNAME}-${PVER}-mpls.patch |
32 | mirror://${PNAME}/${PNAME}-${PVER}-killaddr-smarter.patch |
33 | mirror://${PNAME}/${PNAME}-${PVER}-wait-children.patch |
34 | mirror://${PNAME}/${PNAME}-${PVER}-maxoctets-2Glimit.patch |
35 | mirror://${PNAME}/${PNAME}-${PVER}-defaultgateway.patch |
36 | mirror://${PNAME}/${PNAME}-${PVER}-mschapv2-initialize-response.patch |
37 | mirror://${PNAME}/${PNAME}-${PVER}-linkpidfile.patch |
38 | mirror://${PNAME}/${PNAME}-${PVER}-qa-fixes.patch |
39 | mirror://${PNAME}/${PNAME}-${PVER}-kill-pg.patch |
40 | mirror://${PNAME}/${PNAME}-${PVER}-auth-fail.patch |
41 | mirror://${PNAME}/${PNAME}-${PVER}-defaultmetric.patch |
42 | mirror://${PNAME}/${PNAME}-${PVER}-dev-ppp.patch |
43 | mirror://${PNAME}/${PNAME}-${PVER}-gtk2.patch |
44 | mirror://${PNAME}/${PNAME}-${PVER}-pppoe-lcp-timeout.patch |
45 | mirror://${PNAME}/${PNAME}-${PVER}-passwordfd-read-early.patch |
46 | mirror://${PNAME}/${PNAME}-${PVER}-pppd-usepeerwins.patch |
47 | mirror://${PNAME}/ppp.rc-${RC_REV} |
48 | mirror://${PNAME}/ppp.confd |
49 | mirror://${PNAME}/ip-up-${IPUP_REV} |
50 | mirror://${PNAME}/ip-down-${IPDOWN_REV} |
51 | mirror://${PNAME}/ip-upd-30-wins.sh |
52 | mirror://${PNAME}/ip-upd-40-dns.sh |
53 | mirror://${PNAME}/ip-upd-50-initd.sh |
54 | mirror://${PNAME}/ip-downd-30-wins.sh |
55 | mirror://${PNAME}/ip-downd-40-dns.sh |
56 | mirror://${PNAME}/ip-downd-50-initd.sh |
57 | mirror://${PNAME}/modules.ppp |
58 | mirror://${PNAME}/provider.example |
59 | ) |
60 | |
61 | UP2DATE="updatecmd ${HOMEPAGE} | grep latest | sed 's/.* \(.*\), .*/\1/'" |
62 | |
63 | src_prepare() |
64 | { |
65 | munpack ${SRCFILE} || die |
66 | cd ${SRCDIR} |
67 | |
68 | # several patches from gentoo |
69 | mpatch ${PNAME}-${PVER}-make-vars.patch || die |
70 | mpatch ${PNAME}-${PVER}-mpls.patch || die |
71 | mpatch ${PNAME}-${PVER}-killaddr-smarter.patch || die |
72 | mpatch ${PNAME}-${PVER}-wait-children.patch || die |
73 | mpatch ${PNAME}-${PVER}-maxoctets-2Glimit.patch || die |
74 | mpatch ${PNAME}-${PVER}-defaultgateway.patch || die |
75 | mpatch ${PNAME}-${PVER}-mschapv2-initialize-response.patch || die |
76 | mpatch ${PNAME}-${PVER}-linkpidfile.patch || die |
77 | mpatch ${PNAME}-${PVER}-qa-fixes.patch || die |
78 | mpatch ${PNAME}-${PVER}-kill-pg.patch || die |
79 | mpatch ${PNAME}-${PVER}-auth-fail.patch || die |
80 | mpatch ${PNAME}-${PVER}-defaultmetric.patch || die |
81 | mpatch ${PNAME}-${PVER}-dev-ppp.patch || die |
82 | mpatch ${PNAME}-${PVER}-gtk2.patch || die |
83 | mpatch ${PNAME}-${PVER}-pppoe-lcp-timeout.patch || die |
84 | mpatch ${PNAME}-${PVER}-passwordfd-read-early.patch || die |
85 | mpatch ${PNAME}-${PVER}-pppd-usepeerwins.patch || die |
86 | |
87 | # enable ipv6 support |
88 | sed -i "s:^#HAVE_INET6:HAVE_INET6:" pppd/Makefile.linux || die |
89 | |
90 | # enable pam support |
91 | sed -i "s:^#USE_PAM=y:USE_PAM=y:" pppd/Makefile.linux || die |
92 | |
93 | # fix libdir on 64bit arches |
94 | sed -i "s:/lib/pppd:/$(mlibdir)/pppd:" pppd/pathnames.h || die |
95 | sed -i "s:/lib/pppd:/$(mlibdir)/pppd:" pppd/pppd.8 || die |
96 | sed -i "s:^\(LIBDIR =\).*:\1 \$(DESTDIR)/$(mlibdir)/pppd/\$(VERSION):" \ |
97 | pppd/plugins/Makefile.linux || die |
98 | } |
99 | |
100 | src_compile() |
101 | { |
102 | cd ${SRCDIR} |
103 | mconfigure || die |
104 | mmake || die |
105 | |
106 | # compile pppgetpass too |
107 | mmake -C contrib/pppgetpass pppgetpass.vt || die |
108 | } |
109 | |
110 | src_install() |
111 | { |
112 | cd ${SRCDIR} |
113 | |
114 | minstalldir /etc/ppp || die |
115 | |
116 | mmake INSTROOT=${BINDIR} install || die |
117 | mmake INSTROOT=${BINDIR} install-etcppp || die |
118 | |
119 | # fix permissions |
120 | mchmod u+s-w /usr/sbin/pppd || die |
121 | |
122 | # pam related stuff |
123 | minstallpam pppd/ppp.pam ppp || die |
124 | |
125 | # install module aliases |
126 | minstalldir /etc/modules.d || die |
127 | minstallfile -s modules.ppp /etc/modules.d/ppp || die |
128 | |
129 | # helper scripts |
130 | minstallexec -s ip-up-${IPUP_REV} /etc/ppp/ip-up || die |
131 | minstallexec -s ip-down-${IPDOWN_REV} /etc/ppp/ip-down || die |
132 | |
133 | # ip-up helpers |
134 | minstalldir /etc/ppp/ip-up.d || die |
135 | minstallexec -s ip-upd-30-wins.sh /etc/ppp/ip-up.d/30-wins.sh || die |
136 | minstallexec -s ip-upd-40-dns.sh /etc/ppp/ip-up.d/40-dns.sh || die |
137 | minstallexec -s ip-upd-50-initd.sh /etc/ppp/ip-up.d/50-initd.sh || die |
138 | |
139 | # ip-down helpers |
140 | minstalldir /etc/ppp/ip-down.d || die |
141 | minstallexec -s ip-downd-30-wins.sh /etc/ppp/ip-down.d/30-wins.sh || die |
142 | minstallexec -s ip-downd-40-dns.sh /etc/ppp/ip-down.d/40-dns.sh || die |
143 | minstallexec -s ip-downd-50-initd.sh /etc/ppp/ip-down.d/50-initd.sh || die |
144 | |
145 | # install our initscript |
146 | minstallrc ppp.rc-${RC_REV} ppp || die |
147 | minstallconf ppp.confd ppp || die |
148 | |
149 | # install a provider example |
150 | mkeepdir /etc/ppp/peers || die |
151 | minstallfile -s provider.example /etc/ppp/peers || die |
152 | |
153 | # some nice scripts and progs |
154 | minstallexec scripts/pon /usr/sbin || die |
155 | minstallexec scripts/poff /usr/sbin || die |
156 | minstallexec scripts/plog /usr/sbin || die |
157 | minstallexec contrib/pppgetpass/pppgetpass.vt /usr/sbin/pppgetpass || die |
158 | |
159 | # missing man pages |
160 | minstallman scripts/pon.1 || die |
161 | minstallman contrib/pppgetpass/pppgetpass.8 || die |
162 | |
163 | # more example scripts |
164 | minstalldir /usr/share/doc/${PNAME}-${PVER} || die |
165 | cp -R scripts ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die |
166 | |
167 | minstalldocs Changes* FAQ PLUGINS README* SETUP || die |
168 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |