Gentoo Archives: gentoo-commits

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