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