1 |
commit: 03b00f78d95f0b3f27ddb86850bb7e20b3330084 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 27 08:11:35 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 27 08:11:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03b00f78 |
7 |
|
8 |
net-dialup/ppp: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
11 |
|
12 |
net-dialup/ppp/Manifest | 2 - |
13 |
net-dialup/ppp/ppp-2.4.7-r3.ebuild | 221 ------------------------------------ |
14 |
net-dialup/ppp/ppp-2.4.7-r5.ebuild | 223 ------------------------------------- |
15 |
3 files changed, 446 deletions(-) |
16 |
|
17 |
diff --git a/net-dialup/ppp/Manifest b/net-dialup/ppp/Manifest |
18 |
index f8870f34e5e..8b38b71a7a4 100644 |
19 |
--- a/net-dialup/ppp/Manifest |
20 |
+++ b/net-dialup/ppp/Manifest |
21 |
@@ -1,5 +1,3 @@ |
22 |
-DIST ppp-2.4.7-patches-4.tar.xz 37308 BLAKE2B a53ab7c230fac7fea38910c5d9bb89b8ecb8728e899ed938292040e788b43ab8566797256329c9326ab1e6d7a02bf231df035a6e7b427f187eab554d600a7822 SHA512 f217f7272a791605101e0f1885350db8ff8b580a647e670461b81fe0026ee9050ce68b9b9635edee89ec1ada7adf000c7e6b3aa5a5dafec875ce715a9dfb84d2 |
23 |
-DIST ppp-2.4.7-patches-5.tar.xz 38680 BLAKE2B 56e4d3a5bc2486144791adf6ffb8a6cf0735f16fa8038a588f551d0fe7a71a15fe0d0630e4b5e3c4e0001ad161e22b660274885342807053277da14105958a69 SHA512 f8cdbb8fd4bf10eb5b4e911f1e8415f24d02297280aa6f5e63617c0533af41525bd54932eb050728320a2697efe5206d869f014bcfb8f8f3723ecefed1976adc |
24 |
DIST ppp-2.4.7-patches-6.tar.xz 39420 BLAKE2B 22754af6f266ff43f6b3cc2931ca33e9d0865ce08b8eed6961740a3a06ec69b6406c702a86e7f4a7b2f7dc9e2a751581ae58cd4398cff5e6646e53ee069e08d7 SHA512 16342010515e6d69d446656b52208e3f034c47aad8643a1e2f48fa410343f8a2e0bc8b5223b4bdc381050d9dc49a7b7ac6bc74b37380072eb91214b216d8afa2 |
25 |
DIST ppp-2.4.7-patches-7.tar.xz 40540 BLAKE2B 353814692aab3012f5d5ccdecc514d69357826ea7abe64a7581c562f333d868f9766f11516721cf0b116b4c1c8b01daee306d98ef7be356af6e8d16e22fc9fac SHA512 9d34c044ded09424a6d80047e88bb21130a9c2414c9ea4f52c7299d9db08b1391543b50cd97c0c8763e6943591fc325d01932b31966a1374dbfe5e977bbf4356 |
26 |
DIST ppp-2.4.7.tar.gz 688117 BLAKE2B e1c94ce31d98674536929d19e956e4013eb2b02c20c34e6184c0b99b50262ad1cd7fb6f4a1ed302872527a0c164af340e15ad1e2eaf191392c3f6ae2de21f5dd SHA512 e34ce24020af6a73e7a26c83c4f73a9c83fa455b7b363794dba27bf01f70368be06bff779777843949bd77f4bc9385d6ad455ea48bf8fff4e0d73cc8fef16ae2 |
27 |
|
28 |
diff --git a/net-dialup/ppp/ppp-2.4.7-r3.ebuild b/net-dialup/ppp/ppp-2.4.7-r3.ebuild |
29 |
deleted file mode 100644 |
30 |
index 896162d151b..00000000000 |
31 |
--- a/net-dialup/ppp/ppp-2.4.7-r3.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,221 +0,0 @@ |
34 |
-# Copyright 1999-2018 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=5 |
38 |
- |
39 |
-inherit eutils linux-info multilib pam toolchain-funcs |
40 |
- |
41 |
-PATCH_VER="4" |
42 |
-DESCRIPTION="Point-to-Point Protocol (PPP)" |
43 |
-HOMEPAGE="https://ppp.samba.org/" |
44 |
-SRC_URI="https://www.samba.org/ftp/pub/ppp/${P}.tar.gz |
45 |
- https://dev.gentoo.org/~polynomial-c/${P}-patches-${PATCH_VER}.tar.xz |
46 |
- http://www.netservers.net.uk/gpl/ppp-dhcpc.tgz" |
47 |
- |
48 |
-LICENSE="BSD GPL-2" |
49 |
-SLOT="0/${PV}" |
50 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86" |
51 |
-IUSE="activefilter atm dhcp eap-tls gtk ipv6 libressl pam radius" |
52 |
- |
53 |
-DEPEND="activefilter? ( net-libs/libpcap ) |
54 |
- atm? ( net-dialup/linux-atm ) |
55 |
- pam? ( virtual/pam ) |
56 |
- gtk? ( x11-libs/gtk+:2 ) |
57 |
- eap-tls? ( |
58 |
- net-misc/curl |
59 |
- !libressl? ( dev-libs/openssl:0= ) |
60 |
- libressl? ( dev-libs/libressl ) |
61 |
- )" |
62 |
-RDEPEND="${DEPEND}" |
63 |
-PDEPEND="net-dialup/ppp-scripts" |
64 |
- |
65 |
-src_prepare() { |
66 |
- mv "${WORKDIR}/dhcp" "${S}/pppd/plugins" || die |
67 |
- |
68 |
- use eap-tls || EPATCH_EXCLUDE+=" 8?_all_eaptls-*" |
69 |
- EPATCH_SUFFIX="patch" \ |
70 |
- epatch "${WORKDIR}"/patch |
71 |
- |
72 |
- if use atm ; then |
73 |
- einfo "Enabling PPPoATM support" |
74 |
- sed -i '/^#HAVE_LIBATM=yes/s:#::' \ |
75 |
- pppd/plugins/pppoatm/Makefile.linux || die |
76 |
- fi |
77 |
- |
78 |
- if ! use activefilter ; then |
79 |
- einfo "Disabling active filter" |
80 |
- sed -i '/^FILTER=y/s:^:#:' pppd/Makefile.linux || die |
81 |
- fi |
82 |
- |
83 |
- if use pam ; then |
84 |
- einfo "Enabling PAM" |
85 |
- sed -i '/^#USE_PAM=y/s:^#::' pppd/Makefile.linux || die |
86 |
- fi |
87 |
- |
88 |
- if use ipv6 ; then |
89 |
- einfo "Enabling IPv6" |
90 |
- sed -i '/#HAVE_INET6/s:#::' pppd/Makefile.linux || die |
91 |
- fi |
92 |
- |
93 |
- einfo "Enabling CBCP" |
94 |
- sed -i '/^#CBCP=y/s:#::' pppd/Makefile.linux || die |
95 |
- |
96 |
- if use dhcp ; then |
97 |
- einfo "Adding ppp-dhcp plugin files" |
98 |
- sed -i \ |
99 |
- -e '/^SUBDIRS :=/s:$: dhcp:' \ |
100 |
- pppd/plugins/Makefile.linux || die |
101 |
- fi |
102 |
- |
103 |
- # Set correct libdir |
104 |
- sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \ |
105 |
- pppd/{pathnames.h,pppd.8} || die |
106 |
- |
107 |
- if use radius ; then |
108 |
- #set the right paths in radiusclient.conf |
109 |
- sed -i -e "s:/usr/local/etc:/etc:" \ |
110 |
- -e "s:/usr/local/sbin:/usr/sbin:" \ |
111 |
- pppd/plugins/radius/etc/radiusclient.conf || die |
112 |
- #set config dir to /etc/ppp/radius |
113 |
- sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \ |
114 |
- pppd/plugins/radius/{*.8,*.c,*.h} \ |
115 |
- pppd/plugins/radius/etc/* || die |
116 |
- else |
117 |
- einfo "Disabling radius" |
118 |
- sed -i -e '/+= radius/s:^:#:' pppd/plugins/Makefile.linux || die |
119 |
- fi |
120 |
- |
121 |
- epatch_user # 549588 |
122 |
-} |
123 |
- |
124 |
-src_compile() { |
125 |
- tc-export AR CC |
126 |
- emake COPTS="${CFLAGS} -D_GNU_SOURCE" |
127 |
- |
128 |
- # build pppgetpass |
129 |
- cd contrib/pppgetpass || die |
130 |
- if use gtk ; then |
131 |
- emake -f Makefile.linux |
132 |
- else |
133 |
- emake pppgetpass.vt |
134 |
- fi |
135 |
-} |
136 |
- |
137 |
-src_install() { |
138 |
- local i |
139 |
- for i in chat pppd pppdump pppstats ; do |
140 |
- doman ${i}/${i}.8 |
141 |
- dosbin ${i}/${i} |
142 |
- done |
143 |
- fperms u+s-w /usr/sbin/pppd |
144 |
- |
145 |
- # Install pppd header files |
146 |
- emake -C pppd INSTROOT="${D}" install-devel |
147 |
- |
148 |
- dosbin pppd/plugins/rp-pppoe/pppoe-discovery |
149 |
- |
150 |
- dodir /etc/ppp/peers |
151 |
- insinto /etc/ppp |
152 |
- insopts -m0600 |
153 |
- newins etc.ppp/pap-secrets pap-secrets.example |
154 |
- newins etc.ppp/chap-secrets chap-secrets.example |
155 |
- |
156 |
- insopts -m0644 |
157 |
- doins etc.ppp/options |
158 |
- |
159 |
- pamd_mimic_system ppp auth account session |
160 |
- |
161 |
- local PLUGINS_DIR="/usr/$(get_libdir)/pppd/${PV}" |
162 |
- # closing " for syntax coloring |
163 |
- insinto "${PLUGINS_DIR}" |
164 |
- insopts -m0755 |
165 |
- doins pppd/plugins/minconn.so |
166 |
- doins pppd/plugins/passprompt.so |
167 |
- doins pppd/plugins/passwordfd.so |
168 |
- doins pppd/plugins/winbind.so |
169 |
- doins pppd/plugins/rp-pppoe/rp-pppoe.so |
170 |
- doins pppd/plugins/pppol2tp/openl2tp.so |
171 |
- doins pppd/plugins/pppol2tp/pppol2tp.so |
172 |
- if use atm ; then |
173 |
- doins pppd/plugins/pppoatm/pppoatm.so |
174 |
- fi |
175 |
- if use dhcp ; then |
176 |
- doins pppd/plugins/dhcp/dhcpc.so |
177 |
- fi |
178 |
- if use radius ; then |
179 |
- doins pppd/plugins/radius/rad{ius,attr,realms}.so |
180 |
- |
181 |
- #Copy radiusclient configuration files (#92878) |
182 |
- insinto /etc/ppp/radius |
183 |
- insopts -m0644 |
184 |
- doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers} |
185 |
- |
186 |
- doman pppd/plugins/radius/pppd-rad{ius,attr}.8 |
187 |
- fi |
188 |
- |
189 |
- insinto /etc/modprobe.d |
190 |
- insopts -m0644 |
191 |
- newins "${FILESDIR}/modules.ppp" ppp.conf |
192 |
- |
193 |
- dodoc PLUGINS README* SETUP Changes-2.3 FAQ |
194 |
- dodoc "${FILESDIR}/README.mpls" |
195 |
- |
196 |
- dosbin scripts/p{on,off,log} |
197 |
- doman scripts/pon.1 |
198 |
- |
199 |
- # Adding misc. specialized scripts to doc dir |
200 |
- insinto /usr/share/doc/${PF}/scripts/chatchat |
201 |
- doins scripts/chatchat/* |
202 |
- insinto /usr/share/doc/${PF}/scripts |
203 |
- doins scripts/* |
204 |
- |
205 |
- if use gtk ; then |
206 |
- dosbin contrib/pppgetpass/{pppgetpass.vt,pppgetpass.gtk} |
207 |
- newsbin contrib/pppgetpass/pppgetpass.sh pppgetpass |
208 |
- else |
209 |
- newsbin contrib/pppgetpass/pppgetpass.vt pppgetpass |
210 |
- fi |
211 |
- doman contrib/pppgetpass/pppgetpass.8 |
212 |
-} |
213 |
- |
214 |
-pkg_postinst() { |
215 |
- if linux-info_get_any_version && linux_config_src_exists ; then |
216 |
- echo |
217 |
- ewarn "If the following test report contains a missing kernel configuration option that you need," |
218 |
- ewarn "you should reconfigure and rebuild your kernel before running pppd." |
219 |
- CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY" |
220 |
- local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)" |
221 |
- local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline (optional, but highly recommended)" |
222 |
- local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline (optional; used by 'sync' pppd option)" |
223 |
- if use activefilter ; then |
224 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPP_FILTER" |
225 |
- local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)" |
226 |
- fi |
227 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPP_DEFLATE ~PPP_BSDCOMP ~PPP_MPPE" |
228 |
- local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)" |
229 |
- local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)" |
230 |
- local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)" |
231 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPPOE ~PACKET" |
232 |
- local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional, needed by rp-pppoe plugin)" |
233 |
- local WARNING_PACKET="CONFIG_PACKET:\t missing AF_PACKET support (optional, used by rp-pppoe and dhcpc plugins)" |
234 |
- if use atm ; then |
235 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPPOATM" |
236 |
- local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)" |
237 |
- fi |
238 |
- check_extra_config |
239 |
- fi |
240 |
- |
241 |
- # create *-secrets files if not exists |
242 |
- [ -f "${ROOT}/etc/ppp/pap-secrets" ] || \ |
243 |
- cp -pP "${ROOT}/etc/ppp/pap-secrets.example" "${ROOT}/etc/ppp/pap-secrets" |
244 |
- [ -f "${ROOT}/etc/ppp/chap-secrets" ] || \ |
245 |
- cp -pP "${ROOT}/etc/ppp/chap-secrets.example" "${ROOT}/etc/ppp/chap-secrets" |
246 |
- |
247 |
- # lib name has changed |
248 |
- sed -i -e "s:^pppoe.so:rp-pppoe.so:" "${ROOT}/etc/ppp/options" || die |
249 |
- |
250 |
- echo |
251 |
- elog "Pon, poff and plog scripts have been supplied for experienced users." |
252 |
- elog "Users needing particular scripts (ssh,rsh,etc.) should check out the" |
253 |
- elog "/usr/share/doc/${PF}/scripts directory." |
254 |
-} |
255 |
|
256 |
diff --git a/net-dialup/ppp/ppp-2.4.7-r5.ebuild b/net-dialup/ppp/ppp-2.4.7-r5.ebuild |
257 |
deleted file mode 100644 |
258 |
index 801baf73853..00000000000 |
259 |
--- a/net-dialup/ppp/ppp-2.4.7-r5.ebuild |
260 |
+++ /dev/null |
261 |
@@ -1,223 +0,0 @@ |
262 |
-# Copyright 1999-2018 Gentoo Foundation |
263 |
-# Distributed under the terms of the GNU General Public License v2 |
264 |
- |
265 |
-EAPI=6 |
266 |
- |
267 |
-inherit linux-info multilib pam toolchain-funcs |
268 |
- |
269 |
-PATCH_VER="5" |
270 |
-DESCRIPTION="Point-to-Point Protocol (PPP)" |
271 |
-HOMEPAGE="https://ppp.samba.org/" |
272 |
-SRC_URI="https://download.samba.org/pub/ppp/${P}.tar.gz |
273 |
- https://dev.gentoo.org/~polynomial-c/${P}-patches-${PATCH_VER}.tar.xz |
274 |
- http://www.netservers.net.uk/gpl/ppp-dhcpc.tgz" |
275 |
- |
276 |
-LICENSE="BSD GPL-2" |
277 |
-SLOT="0/${PV}" |
278 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
279 |
-IUSE="activefilter atm dhcp eap-tls gtk ipv6 libressl pam radius" |
280 |
- |
281 |
-DEPEND="activefilter? ( net-libs/libpcap ) |
282 |
- atm? ( net-dialup/linux-atm ) |
283 |
- pam? ( virtual/pam ) |
284 |
- gtk? ( x11-libs/gtk+:2 ) |
285 |
- eap-tls? ( |
286 |
- net-misc/curl |
287 |
- !libressl? ( dev-libs/openssl:0= ) |
288 |
- libressl? ( dev-libs/libressl ) |
289 |
- )" |
290 |
-RDEPEND="${DEPEND}" |
291 |
-PDEPEND="net-dialup/ppp-scripts" |
292 |
- |
293 |
-src_prepare() { |
294 |
- mv "${WORKDIR}/dhcp" "${S}/pppd/plugins" || die |
295 |
- |
296 |
- if ! use eap-tls ; then |
297 |
- rm "${WORKDIR}"/patch/8?_all_eaptls-* || die |
298 |
- fi |
299 |
- eapply "${WORKDIR}"/patch |
300 |
- |
301 |
- if use atm ; then |
302 |
- einfo "Enabling PPPoATM support" |
303 |
- sed -i '/^#HAVE_LIBATM=yes/s:#::' \ |
304 |
- pppd/plugins/pppoatm/Makefile.linux || die |
305 |
- fi |
306 |
- |
307 |
- if ! use activefilter ; then |
308 |
- einfo "Disabling active filter" |
309 |
- sed -i '/^FILTER=y/s:^:#:' pppd/Makefile.linux || die |
310 |
- fi |
311 |
- |
312 |
- if use pam ; then |
313 |
- einfo "Enabling PAM" |
314 |
- sed -i '/^#USE_PAM=y/s:^#::' pppd/Makefile.linux || die |
315 |
- fi |
316 |
- |
317 |
- if use ipv6 ; then |
318 |
- einfo "Enabling IPv6" |
319 |
- sed -i '/#HAVE_INET6/s:#::' pppd/Makefile.linux || die |
320 |
- echo "+ipv6" >> etc.ppp/options || die |
321 |
- fi |
322 |
- |
323 |
- einfo "Enabling CBCP" |
324 |
- sed -i '/^#CBCP=y/s:#::' pppd/Makefile.linux || die |
325 |
- |
326 |
- if use dhcp ; then |
327 |
- einfo "Adding ppp-dhcp plugin files" |
328 |
- sed \ |
329 |
- -e '/^SUBDIRS :=/s:$: dhcp:' \ |
330 |
- -i pppd/plugins/Makefile.linux || die |
331 |
- fi |
332 |
- |
333 |
- # Set correct libdir |
334 |
- sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \ |
335 |
- pppd/{pathnames.h,pppd.8} || die |
336 |
- |
337 |
- if use radius ; then |
338 |
- #set the right paths in radiusclient.conf |
339 |
- sed -e "s:/usr/local/etc:/etc:" \ |
340 |
- -e "s:/usr/local/sbin:/usr/sbin:" \ |
341 |
- -i pppd/plugins/radius/etc/radiusclient.conf || die |
342 |
- #set config dir to /etc/ppp/radius |
343 |
- sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \ |
344 |
- pppd/plugins/radius/{*.8,*.c,*.h} \ |
345 |
- pppd/plugins/radius/etc/* || die |
346 |
- else |
347 |
- einfo "Disabling radius" |
348 |
- sed -i -e '/+= radius/s:^:#:' pppd/plugins/Makefile.linux || die |
349 |
- fi |
350 |
- |
351 |
- eapply_user #549588 |
352 |
-} |
353 |
- |
354 |
-src_compile() { |
355 |
- tc-export AR CC |
356 |
- emake COPTS="${CFLAGS} -D_GNU_SOURCE" |
357 |
- |
358 |
- # build pppgetpass |
359 |
- cd contrib/pppgetpass || die |
360 |
- if use gtk ; then |
361 |
- emake -f Makefile.linux |
362 |
- else |
363 |
- emake pppgetpass.vt |
364 |
- fi |
365 |
-} |
366 |
- |
367 |
-src_install() { |
368 |
- local i |
369 |
- for i in chat pppd pppdump pppstats ; do |
370 |
- doman ${i}/${i}.8 |
371 |
- dosbin ${i}/${i} |
372 |
- done |
373 |
- fperms u+s-w /usr/sbin/pppd |
374 |
- |
375 |
- # Install pppd header files |
376 |
- emake -C pppd INSTROOT="${D}" install-devel |
377 |
- |
378 |
- dosbin pppd/plugins/rp-pppoe/pppoe-discovery |
379 |
- |
380 |
- dodir /etc/ppp/peers |
381 |
- insinto /etc/ppp |
382 |
- insopts -m0600 |
383 |
- newins etc.ppp/pap-secrets pap-secrets.example |
384 |
- newins etc.ppp/chap-secrets chap-secrets.example |
385 |
- |
386 |
- insopts -m0644 |
387 |
- doins etc.ppp/options |
388 |
- |
389 |
- pamd_mimic_system ppp auth account session |
390 |
- |
391 |
- local PLUGINS_DIR="/usr/$(get_libdir)/pppd/${PV}" |
392 |
- # closing " for syntax coloring |
393 |
- insinto "${PLUGINS_DIR}" |
394 |
- insopts -m0755 |
395 |
- doins pppd/plugins/minconn.so |
396 |
- doins pppd/plugins/passprompt.so |
397 |
- doins pppd/plugins/passwordfd.so |
398 |
- doins pppd/plugins/winbind.so |
399 |
- doins pppd/plugins/rp-pppoe/rp-pppoe.so |
400 |
- doins pppd/plugins/pppol2tp/openl2tp.so |
401 |
- doins pppd/plugins/pppol2tp/pppol2tp.so |
402 |
- if use atm ; then |
403 |
- doins pppd/plugins/pppoatm/pppoatm.so |
404 |
- fi |
405 |
- if use dhcp ; then |
406 |
- doins pppd/plugins/dhcp/dhcpc.so |
407 |
- fi |
408 |
- if use radius ; then |
409 |
- doins pppd/plugins/radius/rad{ius,attr,realms}.so |
410 |
- |
411 |
- #Copy radiusclient configuration files (#92878) |
412 |
- insinto /etc/ppp/radius |
413 |
- insopts -m0644 |
414 |
- doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers} |
415 |
- |
416 |
- doman pppd/plugins/radius/pppd-rad{ius,attr}.8 |
417 |
- fi |
418 |
- |
419 |
- insinto /etc/modprobe.d |
420 |
- insopts -m0644 |
421 |
- newins "${FILESDIR}/modules.ppp" ppp.conf |
422 |
- |
423 |
- dodoc PLUGINS README* SETUP Changes-2.3 FAQ |
424 |
- dodoc "${FILESDIR}/README.mpls" |
425 |
- |
426 |
- dosbin scripts/p{on,off,log} |
427 |
- doman scripts/pon.1 |
428 |
- |
429 |
- # Adding misc. specialized scripts to doc dir |
430 |
- insinto /usr/share/doc/${PF}/scripts/chatchat |
431 |
- doins scripts/chatchat/* |
432 |
- insinto /usr/share/doc/${PF}/scripts |
433 |
- doins scripts/* |
434 |
- |
435 |
- if use gtk ; then |
436 |
- dosbin contrib/pppgetpass/{pppgetpass.vt,pppgetpass.gtk} |
437 |
- newsbin contrib/pppgetpass/pppgetpass.sh pppgetpass |
438 |
- else |
439 |
- newsbin contrib/pppgetpass/pppgetpass.vt pppgetpass |
440 |
- fi |
441 |
- doman contrib/pppgetpass/pppgetpass.8 |
442 |
-} |
443 |
- |
444 |
-pkg_postinst() { |
445 |
- if linux-info_get_any_version && linux_config_src_exists ; then |
446 |
- echo |
447 |
- ewarn "If the following test report contains a missing kernel configuration option that you need," |
448 |
- ewarn "you should reconfigure and rebuild your kernel before running pppd." |
449 |
- CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY" |
450 |
- local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)" |
451 |
- local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline (optional, but highly recommended)" |
452 |
- local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline (optional; used by 'sync' pppd option)" |
453 |
- if use activefilter ; then |
454 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPP_FILTER" |
455 |
- local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)" |
456 |
- fi |
457 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPP_DEFLATE ~PPP_BSDCOMP ~PPP_MPPE" |
458 |
- local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)" |
459 |
- local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)" |
460 |
- local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)" |
461 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPPOE ~PACKET" |
462 |
- local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional, needed by rp-pppoe plugin)" |
463 |
- local WARNING_PACKET="CONFIG_PACKET:\t missing AF_PACKET support (optional, used by rp-pppoe and dhcpc plugins)" |
464 |
- if use atm ; then |
465 |
- CONFIG_CHECK="${CONFIG_CHECK} ~PPPOATM" |
466 |
- local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)" |
467 |
- fi |
468 |
- check_extra_config |
469 |
- fi |
470 |
- |
471 |
- # create *-secrets files if not exists |
472 |
- [ -f "${ROOT}/etc/ppp/pap-secrets" ] || \ |
473 |
- cp -pP "${ROOT}/etc/ppp/pap-secrets.example" "${ROOT}/etc/ppp/pap-secrets" |
474 |
- [ -f "${ROOT}/etc/ppp/chap-secrets" ] || \ |
475 |
- cp -pP "${ROOT}/etc/ppp/chap-secrets.example" "${ROOT}/etc/ppp/chap-secrets" |
476 |
- |
477 |
- # lib name has changed |
478 |
- sed -i -e "s:^pppoe.so:rp-pppoe.so:" "${ROOT}/etc/ppp/options" || die |
479 |
- |
480 |
- echo |
481 |
- elog "Pon, poff and plog scripts have been supplied for experienced users." |
482 |
- elog "Users needing particular scripts (ssh,rsh,etc.) should check out the" |
483 |
- elog "/usr/share/doc/${PF}/scripts directory." |
484 |
-} |