1 |
mrness 08/08/19 18:20:12 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: ppp-2.4.4-r21.ebuild |
5 |
Removed: ppp-2.4.4-r19.ebuild ppp-2.4.4-r20.ebuild |
6 |
Log: |
7 |
Export LDFLAGS from plugins/Makefile (#234915). |
8 |
Add usepeerwins option, thanks to Jaco Kroon <jaco at uls dot co dot za>; remove wins-ack USE flag (#234583). |
9 |
(Portage version: 2.1.4.4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.226 net-dialup/ppp/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/ChangeLog?rev=1.226&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/ChangeLog?rev=1.226&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/ChangeLog?r1=1.225&r2=1.226 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v |
21 |
retrieving revision 1.225 |
22 |
retrieving revision 1.226 |
23 |
diff -u -r1.225 -r1.226 |
24 |
--- ChangeLog 15 Aug 2008 08:55:22 -0000 1.225 |
25 |
+++ ChangeLog 19 Aug 2008 18:20:11 -0000 1.226 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for net-dialup/ppp |
28 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v 1.225 2008/08/15 08:55:22 mrness Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v 1.226 2008/08/19 18:20:11 mrness Exp $ |
31 |
+ |
32 |
+*ppp-2.4.4-r21 (19 Aug 2008) |
33 |
+ |
34 |
+ 19 Aug 2008; Alin Năstac <mrness@g.o> metadata.xml, |
35 |
+ -ppp-2.4.4-r19.ebuild, -ppp-2.4.4-r20.ebuild, +ppp-2.4.4-r21.ebuild: |
36 |
+ Export LDFLAGS from plugins/Makefile (#234915). Add usepeerwins option, |
37 |
+ thanks to Jaco Kroon <jaco at uls dot co dot za>; remove wins-ack USE |
38 |
+ flag (#234583). |
39 |
|
40 |
*ppp-2.4.4-r20 (15 Aug 2008) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.5 net-dialup/ppp/metadata.xml |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/metadata.xml?rev=1.5&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/metadata.xml?rev=1.5&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/metadata.xml?r1=1.4&r2=1.5 |
50 |
|
51 |
Index: metadata.xml |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/net-dialup/ppp/metadata.xml,v |
54 |
retrieving revision 1.4 |
55 |
retrieving revision 1.5 |
56 |
diff -u -r1.4 -r1.5 |
57 |
--- metadata.xml 15 Aug 2008 08:55:22 -0000 1.4 |
58 |
+++ metadata.xml 19 Aug 2008 18:20:11 -0000 1.5 |
59 |
@@ -27,7 +27,5 @@ |
60 |
<flag name="pam">Enables PAM (Pluggable Authentication Modules) |
61 |
support</flag> |
62 |
<flag name="radius">Enables RADIUS support</flag> |
63 |
- <flag name="wins-ack">Acknowledge the WINS servers provided by the peer |
64 |
- although it will not use them in any way</flag> |
65 |
</use> |
66 |
</pkgmetadata> |
67 |
|
68 |
|
69 |
|
70 |
1.1 net-dialup/ppp/ppp-2.4.4-r21.ebuild |
71 |
|
72 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/ppp-2.4.4-r21.ebuild?rev=1.1&view=markup |
73 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/ppp/ppp-2.4.4-r21.ebuild?rev=1.1&content-type=text/plain |
74 |
|
75 |
Index: ppp-2.4.4-r21.ebuild |
76 |
=================================================================== |
77 |
# Copyright 1999-2008 Gentoo Foundation |
78 |
# Distributed under the terms of the GNU General Public License v2 |
79 |
# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ppp-2.4.4-r21.ebuild,v 1.1 2008/08/19 18:20:11 mrness Exp $ |
80 |
|
81 |
inherit eutils toolchain-funcs linux-info pam |
82 |
|
83 |
DESCRIPTION="Point-to-Point Protocol (PPP)" |
84 |
HOMEPAGE="http://www.samba.org/ppp" |
85 |
SRC_URI="ftp://ftp.samba.org/pub/ppp/${P}.tar.gz |
86 |
mirror://gentoo/${P}-gentoo-20080819.tar.gz |
87 |
dhcp? ( http://www.netservers.co.uk/gpl/ppp-dhcpc.tgz )" |
88 |
|
89 |
LICENSE="BSD GPL-2" |
90 |
SLOT="0" |
91 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
92 |
IUSE="activefilter atm dhcp eap-tls gtk ipv6 mppe-mppc pam radius" |
93 |
|
94 |
DEPEND="activefilter? ( >=virtual/libpcap-0.9.4 ) |
95 |
atm? ( net-dialup/linux-atm ) |
96 |
pam? ( virtual/pam ) |
97 |
gtk? ( >=x11-libs/gtk+-2.8 ) |
98 |
eap-tls? ( net-misc/curl >=dev-libs/openssl-0.9.7 )" |
99 |
|
100 |
pkg_setup() { |
101 |
if use mppe-mppc; then |
102 |
echo |
103 |
ewarn "The mppe-mppc flag overwrites the pppd native MPPE support with MPPE-MPPC" |
104 |
ewarn "patch developed by Jan Dubiec." |
105 |
ewarn "The resulted pppd will work only with patched kernels with version <= 2.6.14." |
106 |
ewarn "You could obtain the kernel patch from MPPE-MPPC homepage:" |
107 |
ewarn " http://mppe-mppc.alphacron.de/" |
108 |
ewarn "CAUTION: MPPC is a U.S. patented algorithm!" |
109 |
ewarn "Ask yourself if you really need it and, if you do, consult your lawyer first." |
110 |
ebeep |
111 |
fi |
112 |
} |
113 |
|
114 |
src_unpack() { |
115 |
unpack ${A} |
116 |
cd "${S}" |
117 |
|
118 |
epatch "${WORKDIR}/patch/make-vars.patch" |
119 |
epatch "${WORKDIR}/patch/mpls.patch" |
120 |
epatch "${WORKDIR}/patch/killaddr-smarter.patch" |
121 |
epatch "${WORKDIR}/patch/wait-children.patch" |
122 |
epatch "${WORKDIR}/patch/maxoctets-2Glimit.patch" |
123 |
epatch "${WORKDIR}/patch/defaultgateway.patch" |
124 |
epatch "${WORKDIR}/patch/mschapv2-initialize-response.patch" |
125 |
epatch "${WORKDIR}/patch/linkpidfile.patch" |
126 |
epatch "${WORKDIR}/patch/qa-fixes.patch" |
127 |
epatch "${WORKDIR}/patch/kill-pg.patch" |
128 |
epatch "${WORKDIR}/patch/auth-fail.patch" |
129 |
epatch "${WORKDIR}/patch/defaultmetric.patch" |
130 |
epatch "${WORKDIR}/patch/dev-ppp.patch" |
131 |
epatch "${WORKDIR}/patch/gtk2.patch" |
132 |
epatch "${WORKDIR}/patch/pppoe-lcp-timeout.patch" |
133 |
epatch "${WORKDIR}/patch/passwordfd-read-early.patch" |
134 |
epatch "${WORKDIR}/patch/pppd-usepeerwins.patch" |
135 |
|
136 |
use eap-tls && { |
137 |
# see http://eaptls.spe.net/index.html for more info |
138 |
einfo "Enabling EAP-TLS support" |
139 |
epatch "${WORKDIR}/patch/eaptls-0.7-gentoo.patch" |
140 |
use mppe-mppc || epatch "${WORKDIR}/patch/eaptls-mppe-0.7.patch" |
141 |
} |
142 |
|
143 |
use mppe-mppc && { |
144 |
einfo "Enabling MPPE-MPPC support" |
145 |
epatch "${WORKDIR}/patch/mppe-mppc-1.1.patch" |
146 |
use eap-tls && epatch "${WORKDIR}/patch/eaptls-mppe-0.7-with-mppc.patch" |
147 |
} |
148 |
|
149 |
use atm && { |
150 |
einfo "Enabling PPPoATM support" |
151 |
sed -i "s/^#HAVE_LIBATM=yes/HAVE_LIBATM=yes/" pppd/plugins/pppoatm/Makefile.linux |
152 |
} |
153 |
|
154 |
use activefilter || { |
155 |
einfo "Disabling active filter" |
156 |
sed -i "s/^FILTER=y/#FILTER=y/" pppd/Makefile.linux |
157 |
} |
158 |
|
159 |
use pam && { |
160 |
einfo "Enabling PAM" |
161 |
sed -i "s/^#USE_PAM=y/USE_PAM=y/" pppd/Makefile.linux |
162 |
} |
163 |
|
164 |
use ipv6 && { |
165 |
einfo "Enabling IPv6" |
166 |
sed -i "s/#HAVE_INET6/HAVE_INET6/" pppd/Makefile.linux |
167 |
} |
168 |
|
169 |
einfo "Enabling CBCP" |
170 |
sed -i "s/^#CBCP=y/CBCP=y/" pppd/Makefile.linux |
171 |
|
172 |
use dhcp && { |
173 |
# copy the ppp-dhcp plugin files |
174 |
einfo "Copying ppp-dhcp plugin files..." |
175 |
tar -xzf "${DISTDIR}/ppp-dhcpc.tgz" -C pppd/plugins/ \ |
176 |
&& sed -i -e 's/SUBDIRS := rp-pppoe/SUBDIRS := rp-pppoe dhcp/' pppd/plugins/Makefile.linux \ |
177 |
|| die "ppp-dhcp plugin addition failed" |
178 |
epatch "${WORKDIR}/patch/dhcp-make-vars.patch" |
179 |
epatch "${WORKDIR}/patch/dhcp-sys_error_to_strerror.patch" |
180 |
} |
181 |
|
182 |
# Set correct libdir |
183 |
sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \ |
184 |
pppd/{pathnames.h,pppd.8} |
185 |
|
186 |
use radius && { |
187 |
#set the right paths in radiusclient.conf |
188 |
sed -i -e "s:/usr/local/etc:/etc:" \ |
189 |
-e "s:/usr/local/sbin:/usr/sbin:" pppd/plugins/radius/etc/radiusclient.conf |
190 |
#set config dir to /etc/ppp/radius |
191 |
sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \ |
192 |
pppd/plugins/radius/{*.8,*.c,*.h} \ |
193 |
pppd/plugins/radius/etc/* |
194 |
} |
195 |
} |
196 |
|
197 |
src_compile() { |
198 |
export CC="$(tc-getCC)" |
199 |
export AR="$(tc-getAR)" |
200 |
econf || die "configuration failed" |
201 |
emake COPTS="${CFLAGS} -D_GNU_SOURCE" || die "compile failed" |
202 |
|
203 |
#build pppgetpass |
204 |
cd contrib/pppgetpass |
205 |
if use gtk; then |
206 |
emake -f Makefile.linux || die "failed to build pppgetpass" |
207 |
else |
208 |
emake pppgetpass.vt || die "failed to build pppgetpass" |
209 |
fi |
210 |
} |
211 |
|
212 |
src_install() { |
213 |
local i |
214 |
for i in chat pppd pppdump pppstats |
215 |
do |
216 |
doman ${i}/${i}.8 |
217 |
dosbin ${i}/${i} |
218 |
done |
219 |
fperms u+s-w /usr/sbin/pppd |
220 |
|
221 |
# Install pppd header files |
222 |
pushd pppd && \ |
223 |
make INSTROOT="${D}" install-devel && \ |
224 |
popd || die "make install-devel failed" |
225 |
|
226 |
dosbin pppd/plugins/rp-pppoe/pppoe-discovery |
227 |
|
228 |
dodir /etc/ppp/peers |
229 |
insinto /etc/ppp |
230 |
insopts -m0600 |
231 |
newins etc.ppp/pap-secrets pap-secrets.example |
232 |
newins etc.ppp/chap-secrets chap-secrets.example |
233 |
|
234 |
insopts -m0644 |
235 |
doins etc.ppp/options |
236 |
|
237 |
exeinto /etc/ppp |
238 |
for i in ip-up ip-down ; do |
239 |
doexe "${WORKDIR}/scripts/${i}" || die "failed to install ${i} script" |
240 |
insinto /etc/ppp/${i}.d |
241 |
use ipv6 && dosym ${i} /etc/ppp/${i/ip/ipv6} |
242 |
doins "${WORKDIR}/scripts/${i}.d"/* || die "failed to install ${i}.d scripts" |
243 |
done |
244 |
|
245 |
pamd_mimic_system ppp auth account session |
246 |
|
247 |
local PLUGINS_DIR=/usr/$(get_libdir)/pppd/$(awk -F '"' '/VERSION/ {print $2}' pppd/patchlevel.h) |
248 |
#closing " for syntax coloring |
249 |
insinto "${PLUGINS_DIR}" |
250 |
insopts -m0755 |
251 |
doins pppd/plugins/minconn.so || die "minconn.so not build" |
252 |
doins pppd/plugins/passprompt.so || die "passprompt.so not build" |
253 |
doins pppd/plugins/passwordfd.so || die "passwordfd.so not build" |
254 |
doins pppd/plugins/winbind.so || die "winbind.so not build" |
255 |
doins pppd/plugins/rp-pppoe/rp-pppoe.so || die "rp-pppoe.so not build" |
256 |
if use atm; then |
257 |
doins pppd/plugins/pppoatm/pppoatm.so || die "pppoatm.so not build" |
258 |
fi |
259 |
if use dhcp; then |
260 |
doins pppd/plugins/dhcp/dhcpc.so || die "dhcpc.so not build" |
261 |
fi |
262 |
if use radius; then |
263 |
doins pppd/plugins/radius/radius.so || die "radius.so not build" |
264 |
doins pppd/plugins/radius/radattr.so || die "radattr.so not build" |
265 |
doins pppd/plugins/radius/radrealms.so || die "radrealms.so not build" |
266 |
|
267 |
#Copy radiusclient configuration files (#92878) |
268 |
insinto /etc/ppp/radius |
269 |
insopts -m0644 |
270 |
doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers} |
271 |
|
272 |
doman pppd/plugins/radius/pppd-radius.8 |
273 |
doman pppd/plugins/radius/pppd-radattr.8 |
274 |
fi |
275 |
|
276 |
insinto /etc/modprobe.d |
277 |
insopts -m0644 |
278 |
newins "${FILESDIR}/modules.ppp" ppp |
279 |
if use mppe-mppc; then |
280 |
sed -i -e 's/ppp_mppe/ppp_mppe_mppc/' "${D}/etc/modprobe.d/ppp" |
281 |
fi |
282 |
|
283 |
dodoc PLUGINS README* SETUP Changes-2.3 FAQ |
284 |
dodoc "${FILESDIR}/README.mpls" |
285 |
|
286 |
dosbin scripts/pon && \ |
287 |
dosbin scripts/poff && \ |
288 |
dosbin scripts/plog && \ |
289 |
doman scripts/pon.1 || die "failed to install pon&poff scripts" |
290 |
|
291 |
# Adding misc. specialized scripts to doc dir |
292 |
insinto /usr/share/doc/${PF}/scripts/chatchat |
293 |
doins scripts/chatchat/* || die "failed to install chat scripts in doc dir" |
294 |
insinto /usr/share/doc/${PF}/scripts |
295 |
doins scripts/* || die "failed to install scripts in doc dir" |
296 |
|
297 |
if use gtk; then |
298 |
dosbin contrib/pppgetpass/{pppgetpass.vt,pppgetpass.gtk} |
299 |
newsbin contrib/pppgetpass/pppgetpass.sh pppgetpass |
300 |
else |
301 |
newsbin contrib/pppgetpass/pppgetpass.vt pppgetpass |
302 |
fi |
303 |
doman contrib/pppgetpass/pppgetpass.8 |
304 |
} |
305 |
|
306 |
pkg_postinst() { |
307 |
if get_version ; then |
308 |
echo |
309 |
ewarn "If the following test report contains a missing kernel configuration option that you need," |
310 |
ewarn "you should reconfigure and rebuild your kernel before running pppd." |
311 |
CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY" |
312 |
local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)" |
313 |
local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline (optional, but highly recommended)" |
314 |
local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline (optional; used by 'sync' pppd option)" |
315 |
if use activefilter ; then |
316 |
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_FILTER" |
317 |
local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)" |
318 |
fi |
319 |
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_DEFLATE ~PPP_BSDCOMP" |
320 |
local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)" |
321 |
local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)" |
322 |
if use mppe-mppc ; then |
323 |
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE_MPPC" |
324 |
local WARNING_PPP_MPPE_MPPC="CONFIG_PPP_MPPE_MPPC:\t missing MPPE/MPPC encryption/compression (optional, mostly used by PPTP links)" |
325 |
else |
326 |
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE" |
327 |
local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)" |
328 |
fi |
329 |
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOE" |
330 |
local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional needed by rp-pppoe plugin)" |
331 |
if use atm ; then |
332 |
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOATM" |
333 |
local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)" |
334 |
fi |
335 |
check_extra_config |
336 |
fi |
337 |
|
338 |
if [ ! -e "${ROOT}/dev/.devfsd" ] && [ ! -e "${ROOT}/dev/.udev" ] && [ ! -e "${ROOT}/dev/ppp" ]; then |
339 |
mknod "${ROOT}/dev/ppp" c 108 0 |
340 |
fi |
341 |
if [ "$ROOT" = "/" ]; then |
342 |
[ -x /sbin/update-modules ] && /sbin/update-modules || /sbin/modules-update |
343 |
fi |
344 |
|
345 |
# create *-secrets files if not exists |
346 |
[ -f "${ROOT}/etc/ppp/pap-secrets" ] || \ |
347 |
cp -pP "${ROOT}/etc/ppp/pap-secrets.example" "${ROOT}/etc/ppp/pap-secrets" |
348 |
[ -f "${ROOT}/etc/ppp/chap-secrets" ] || \ |
349 |
cp -pP "${ROOT}/etc/ppp/chap-secrets.example" "${ROOT}/etc/ppp/chap-secrets" |
350 |
|
351 |
# lib name has changed |
352 |
sed -i -e "s:^pppoe.so:rp-pppoe.so:" "${ROOT}/etc/ppp/options" |
353 |
|
354 |
if use radius && [[ $previous_less_than_2_4_3_r5 = 0 ]] ; then |
355 |
echo |
356 |
ewarn "As of ${PN}-2.4.3-r5, the RADIUS configuration files have moved from" |
357 |
ewarn " /etc/radiusclient to /etc/ppp/radius." |
358 |
einfo "For your convenience, radiusclient directory was copied to the new location." |
359 |
fi |
360 |
|
361 |
echo |
362 |
elog "Pon, poff and plog scripts have been supplied for experienced users." |
363 |
elog "Users needing particular scripts (ssh,rsh,etc.) should check out the" |
364 |
elog "/usr/share/doc/${PF}/scripts directory." |
365 |
|
366 |
# move the old user-defined files into ip-{up,down}.d directories |
367 |
# TO BE REMOVED AFTER SEPT 2008 |
368 |
local i |
369 |
for i in ip-up ip-down; do |
370 |
if [ -f "${ROOT}"/etc/ppp/${i}.local ]; then |
371 |
mv /etc/ppp/${i}.local /etc/ppp/${i}.d/90-local.sh && \ |
372 |
ewarn "/etc/ppp/${i}.local has been moved to /etc/ppp/${i}.d/90-local.sh" |
373 |
fi |
374 |
done |
375 |
} |