Portage is a package management system used by Gentoo Linux
# ChangeLog for net-dialup/ppp
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v 1.219 2008/06/29 11:05:30 klausman Exp $
28 Jun 2008; Tobias Klausmann
Stable on alpha, bug #227183
*ppp-2.4.4-r17 (27 Jun 2008)
27 Jun 2008; Alin Năstac
+ppp-2.4.4-r17.ebuild:
Re-add script directory to ppp-2.4.4-gentoo tarball and make sure it never
happens again (#229757). Fix passwordfd-read-early patch (#229773).
*ppp-2.4.4-r16 (25 Jun 2008)
25 Jun 2008; Alin Năstac
Patch passwordfd plugin to read password as soon as it gets the fd number -
openrc use stdin for that, fd that could be closed by pppd before plugin
reads the password (#209294).
21 Jun 2008; Markus Rothe
Stable on ppc64; bug #227183
21 Jun 2008; Raúl Porcel
ia64/sparc stable wrt #227183
19 Jun 2008; Christian Faulhammer
stable x86, bug 227183
17 Jun 2008; Jeroen Roovers
Stable for HPPA (bug #227183).
14 Jun 2008; Zac Medico
ppp-2.4.4-r15.ebuild:
Bug #226505 - For compatibility with phase execution order in
>=portage-2.1.5, call has_version inside pkg_preinst instead of
pkg_postinst.
14 May 2008; Diego Pettenò
Depend on virtual/pam as the code builds fine with OpenPAM.
*ppp-2.4.4-r15 (12 Apr 2008)
12 Apr 2008; Alin Năstac
Re-write kill-pg.patch (#181145 and #216183). Fix LCP timeout error
(#210852). Fix QA warning (#211160). Install modprobe.d file (#213879).
31 Mar 2008;
Drop to ~mips due to unstable deps
20 Feb 2008; Alin Năstac
Re-add bindnow LDFLAGS (#210837).
*ppp-2.4.4-r14 (20 Feb 2008)
20 Feb 2008; Alin Năstac
+ppp-2.4.4-r14.ebuild:
Improve pam file (#210824). Drop bindnow LDFLAGS.
13 Jan 2008; Alin Năstac
-files/ip-up, -ppp-2.4.4-r9.ebuild, -ppp-2.4.4-r11.ebuild:
Remove obsolete revisions.
23 Dec 2007; Stuart Longland
Tested and working on MIPS. Marked stable.
05 Nov 2007; Raúl Porcel
sparc stable wrt #194820
02 Nov 2007; Steve Dibb
amd64 stable, bug 194820
14 Oct 2007; Markus Rothe
Stable on ppc64; bug #194820
11 Oct 2007; Raúl Porcel
alpha/ia64 stable wrt #194820
09 Oct 2007; Jeroen Roovers
Stable for HPPA (bug #194820).
06 Oct 2007; Christian Faulhammer
stable x86, bug 194820
06 Oct 2007; Lars Weiler
stable ppc, bug #194820
*ppp-2.4.4-r13 (03 Sep 2007)
03 Sep 2007; Alin Năstac
+ppp-2.4.4-r13.ebuild:
Improve up/down scripts (#190143).
*ppp-2.4.4-r12 (31 Aug 2007)
31 Aug 2007; Alin Năstac
+ppp-2.4.4-r12.ebuild:
Use gtk+-2 library (#189350). Add support for /etc/ppp/ip-{up,down}.d
directories (#190143).
*ppp-2.4.4-r11 (17 Aug 2007)
17 Aug 2007; Alin Năstac
+ppp-2.4.4-r11.ebuild:
Create /dev/ppp instead loading ppp_generic module (#163098).
07 Aug 2007; Alin Năstac
Add defaultmetric option and allow setting the default route even if one
already exist (but has a different metric). Load ppp_generic kernel module
before trying to open /dev/ppp (#163098).
04 Aug 2007; Tobias Scherbaum
ppc stable, bug #184696
*ppp-2.4.4-r10 (07 Aug 2007)
07 Aug 2007; Alin Năstac
Add defaultmetric option. Load ppp_generic kernel module before trying to
open /dev/ppp (#163098).
28 Jul 2007; Christoph Mende
Stable on amd64 wrt bug #184696
23 Jul 2007; Joshua Kinard
Stable on mips, per #184695.
12 Jul 2007; Christian Faulhammer
stable x86, bug 184696
11 Jul 2007; Markus Rothe
Stable on ppc64; bug #184696
11 Jul 2007; Gustavo Zacarias
Stable on sparc wrt #184696
10 Jul 2007; Raúl Porcel
alpha/x86 stable wrt #184696
10 Jul 2007; Jeroen Roovers
Stable for HPPA (bug #184696).
*ppp-2.4.4-r9 (09 Jul 2007)
09 Jul 2007; Alin Năstac
-ppp-2.4.4-r8.ebuild, +ppp-2.4.4-r9.ebuild:
Install pppd header files (#184545).
*ppp-2.4.4-r8 (14 Jun 2007)
14 Jun 2007; Alin Năstac
+ppp-2.4.4-r8.ebuild:
Fix another grammar error (#180180).
*ppp-2.4.4-r7 (14 Jun 2007)
14 Jun 2007; Alin Năstac
+ppp-2.4.4-r7.ebuild:
Correct auth-fail paragraphs of the pppd man page (#180180).
*ppp-2.4.4-r6 (09 Jun 2007)
09 Jun 2007; Alin Năstac
Kill children instead process group when pppd is still attached to the
controlling terminal (#181145). Add auth-fail script, thanks to Jaco Kroon
*ppp-2.4.4-r5 (28 May 2007)
28 May 2007; Alin Năstac
Fix QA notice. Remove /var/run/ppp-$linkname.pid only on exit (#179978).
06 May 2007; Marius Mauch
Replacing einfo with elog
28 Apr 2007; Sven Wegener
Drop dodir from dodir/*into combination.
16 Apr 2007; Stefan Schweizer
Use update-modules thanks to jakub in bug 174749
13 Apr 2007; Alin Năstac
Remove old version.
13 Apr 2007; Jeroen Roovers
Stable for HPPA (bug #157525).
08 Apr 2007;
- added ~s390
27 Jan 2007; Alexander H. Færøy
Stable on MIPS; bug #157525
21 Jan 2007; Alin Năstac
Stable on amd64 (#157525).
05 Jan 2007; Alin Năstac
ppp-2.4.4-r4.ebuild:
Add -D_GNU_SOURCE to CFLAGS (#159877). Remove obsolete revision.
31 Dec 2006; Bryan Østergaard
Stable on Alpha, bug 157525.
23 Dec 2006; Alexander H. Færøy
Stable on IA64; bug #157525
17 Dec 2006; Tobias Scherbaum
Stable on ppc wrt bug #157525.
11 Dec 2006; Christian Faulhammer
stable x86, bug #157525
11 Dec 2006; Gustavo Zacarias
Stable on sparc wrt #157525
09 Dec 2006; Markus Rothe
Stable on ppc64; bug #157525
*ppp-2.4.4-r4 (24 Nov 2006)
24 Nov 2006; Alin Nastac
Correct initialization of mschap-v2 response buffer, thanks to Guillaume
Knispel
*ppp-2.4.4-r3 (03 Nov 2006)
03 Nov 2006; Alin Nastac
+ppp-2.4.4-r3.ebuild:
Fix wait-children patch (#153798).
24 Oct 2006; Alin Nastac
-files/confd.ppp0, files/ip-down, -files/ip-down.baselayout, files/ip-up,
-files/ip-up.baselayout, -files/net.ppp0, -files/options-pppoe,
-files/options-pptp, -files/plog, -files/poff, -files/pon, -files/pon.1,
-files/pppoe.html, -ppp-2.4.2-r15.ebuild, ppp-2.4.3-r16.ebuild,
-ppp-2.4.4-r1.ebuild, ppp-2.4.4-r2.ebuild:
Remove obsolete versions.
24 Oct 2006; Fernando J. Pereda
Alpha stable as per bug #148472
14 Oct 2006; Aron Griffis
Mark 2.4.3-r16 stable on ia64. #148472
*ppp-2.4.4-r2 (05 Oct 2006)
05 Oct 2006; Alin Nastac
Set the gateway in the default route, just as ppp-2.4.3 used to set (the
default gateway is needed by openswan's %defaultroute).
23 Sep 2006; Tobias Scherbaum
ppp-2.4.3-r16.ebuild:
hppa stable, bug #148472
10 Sep 2006; Alin Nastac
-ppp-2.4.4.ebuild, ppp-2.4.4-r1.ebuild:
Fix broken build against openssl-0.9.8 (#146780).
04 Sep 2006; Joshua Kinard
Marked stable on mips.
30 Aug 2006; Michael Hanselmann
Stable on ppc.
*ppp-2.4.4-r1 (28 Aug 2006)
28 Aug 2006; Alin Nastac
+ppp-2.4.4-r1.ebuild:
Take maintainership of this package. Extend limit of maxoctets parameter
to UINT_MAX, thanks to Serhij S. Stasyuk
*ppp-2.4.4 (22 Aug 2006)
22 Aug 2006; Alin Nastac
Version bump (#144690).
16 Aug 2006; Gustavo Zacarias
Stable on sparc
16 Aug 2006; Markus Rothe
Stable on ppc64
14 Aug 2006; Alin Nastac
ppp-2.4.3-r16.ebuild:
Stable on amd64 and x86.
*ppp-2.4.3-r16 (07 Jul 2006)
07 Jul 2006; Alin Nastac
Fix local privilege escaladation (#139477).
13 Jun 2006;
ppp-2.4.3-r15.ebuild:
Change update-modules to modules-update.
23 May 2006; Alin Nastac
ppp-2.4.3-r15.ebuild:
Remove old test version. Take advantage of the new features implemented in
linux-info.eclass (#133026).
16 May 2006; Alin Nastac
Fix recursive definitions of COPTS make variable (#133309).
15 May 2006; Alin Nastac
Fix build error on systems where libcrypt is not installed in /usr/lib
(#133309).
*ppp-2.4.3-r15 (07 May 2006)
07 May 2006; Alin Nastac
+ppp-2.4.3-r15.ebuild:
Remove old revision. Fix makefiles wrt CFLAGS and LDFLAGS used by the user
(#132115). Extend kernel configuration tests performed in pkg_postinst
function.
03 May 2006; Torsten Veller
Cross-compile fix for
24 Apr 2006; Joshua Kinard
Marked stable on mips.
*ppp-2.4.3-r14 (09 Apr 2006)
09 Apr 2006; Alin Nastac
+ppp-2.4.3-r14.ebuild:
Modprobe pppoatm silently in pppoatm plugin, for avoiding the annoyance of a
bogus error when PPPoA support is compiled into the kernel (#129282).
*ppp-2.4.3-r13 (23 Mar 2006)
23 Mar 2006; Alin Nastac
-ppp-2.4.3-r12.ebuild, +ppp-2.4.3-r13.ebuild:
Fix typo in ip-down script (#127339).
*ppp-2.4.3-r12 (20 Mar 2006)
20 Mar 2006; Alin Nastac
files/ip-up.baselayout, -ppp-2.4.3-r11.ebuild, +ppp-2.4.3-r12.ebuild:
Change the baselayout-1.12 compatible ip-up/ip-down scripts, at uberlord
request.
12 Mar 2006; Alin Nastac
ppp-2.4.3-r11.ebuild:
Remove old test version. Simplify dependencies. Quote $S, $D, $WORKDIR,
$FILESDIR and $ROOT.
*ppp-2.4.3-r11 (21 Feb 2006)
21 Feb 2006; Alin Nastac
Wait for user scripts to finish at the end of PPP session (#122795).
23 Jan 2006; Alin Nastac
ppp-2.4.2-r10.ebuild, ppp-2.4.2-r15.ebuild, -ppp-2.4.3-r9.ebuild,
ppp-2.4.3-r10.ebuild:
Remove old test version. Add warnings about MPPE-MPPC patch problems and
incompatibilities (#119705). If eap-tls is enabled, apply eap-tls-0.7-mppe
patch regardless whether mppe-mppc flag is enabled or not.
25 Dec 2005; Diego Pettenò
Use bindnow-flags function instead of -Wl,-z,now.
*ppp-2.4.3-r10 (29 Nov 2005)
29 Nov 2005; Alin Nastac
+files/ip-up.baselayout, -ppp-2.4.2-r12.ebuild, -ppp-2.4.3-r8.ebuild,
+ppp-2.4.3-r10.ebuild:
Remove old versions. Add support for the new pppd net module introduced by
sys-apps/baselayout-1.12.0_pre11.
14 Nov 2005; Luis Medinas
Marked Stable on amd64.
*ppp-2.4.3-r9 (05 Nov 2005)
05 Nov 2005; Alin Nastac
Add experimental support for EAP-TLS, selectable through eap-tls useflag
(#109935).
18 Oct 2005; Aron Griffis
Mark 2.4.2-r15 stable on alpha
24 Sep 2005; Markus Rothe
Stable on ppc64
22 Sep 2005; Alin Nastac
ppp-2.4.3-r8.ebuild:
Make kernel configuration checks non-fatal (#103396).
20 Sep 2005; Gustavo Zacarias
Stable on sparc
15 Sep 2005; Joseph Jezak
Marked ppc stable.
13 Sep 2005; Alin Nastac
Stable on x86.
09 Sep 2005; Tom Gall
ppp-2.4.2-r15.ebuild:
stable on ppc64 (r12) ~ppc64 (r15)
29 Aug 2005; Alin Nastac
ppp-2.4.2-r12.ebuild, ppp-2.4.2-r15.ebuild, -ppp-2.4.3-r6.ebuild,
ppp-2.4.3-r8.ebuild:
Fix cp -a usage for Gentoo BSD (#103487) and remove old test version.
24 Aug 2005; Aron Griffis
stable on ia64
*ppp-2.4.3-r8 (29 Jul 2005)
*ppp-2.4.2-r15 (29 Jul 2005)
29 Jul 2005; Alin Nastac
+ppp-2.4.2-r15.ebuild, -ppp-2.4.3-r7.ebuild, +ppp-2.4.3-r8.ebuild:
Fix on-demand links with outbound keyword in active-filter/pass-filter
(#99190).
*ppp-2.4.2-r14 (29 Jul 2005)
29 Jul 2005; Alin Nastac
+ppp-2.4.2-r14.ebuild, ppp-2.4.3-r7.ebuild:
Correct the activefilter patch and add kernel configuration checks (#99190).
*ppp-2.4.3-r7 (27 Jul 2005)
*ppp-2.4.2-r13 (27 Jul 2005)
27 Jul 2005; Alin Nastac
+ppp-2.4.3-r7.ebuild:
Add fixes for activefilter support (#99190) and remove interface name check
in rp-pppoe plugin (#100437). Add upstream CVS patches to ppp-2.4.3.
09 Jul 2005; Joseph Jezak
Marked ppc stable.
05 Jul 2005; Rene Nussbaumer
Stable on hppa.
04 Jul 2005; Gustavo Zacarias
Stable on sparc
03 Jul 2005; Alin Nastac
Stable on x86.
*ppp-2.4.3-r6 (12 Jun 2005)
*ppp-2.4.2-r12 (12 Jun 2005)
12 Jun 2005; Alin Nastac
+ppp-2.4.2-r12.ebuild, -ppp-2.4.3-r3.ebuild, -ppp-2.4.3-r5.ebuild,
+ppp-2.4.3-r6.ebuild:
Create {pap,chap}-secrets files based on example files (#95402). Remove old
test versions.
*ppp-2.4.3-r5 (26 May 2005)
26 May 2005; Alin Nastac
+ppp-2.4.3-r5.ebuild:
Move /etc/radiusclient directory installed by ppp-2.4.3 to /etc/ppp/radius
for avoiding collisions with net-dialup/radiusclient package (#92878).
*ppp-2.4.3-r4 (23 May 2005)
*ppp-2.4.2-r11 (23 May 2005)
23 May 2005; Alin Nastac
ppp-2.4.3-r3.ebuild, +ppp-2.4.3-r4.ebuild:
Add radius USE flag which controls installation of RADIUS plugins. Partially
solve conflicts with net-dialup/radiusclient by not installing radiusclient
library - ppp is statically linked with it (#92878). Install radiusclient
configuration files in ppp-2.4.3-r4 (#92977).
14 May 2005; Alin Nastac
-files/2.4.2/cbcp-dosfix.patch, -files/2.4.2/cflags.patch,
-files/2.4.2/chat-default, -files/2.4.2/control_c.patch,
-files/2.4.2/killaddr-smarter.patch.gz, -files/2.4.2/modules.ppp,
-files/2.4.2/mpls.patch.gz, -files/2.4.2/mppe-mppc-1.0.patch.gz,
-files/2.4.2/options-pppoe, -files/2.4.2/options-pptp,
-files/2.4.2/pcap.patch, -files/2.4.2/pppoatm-2.diff.gz,
-files/2.4.2/pppoatm.diff.gz, -files/2.4.2/pppoe.html,
-files/2.4.2/stdopt-mppe-mppc-0.82.patch.gz, -files/2.4.3/README.mpls,
-files/2.4.3/chat-default, -files/2.4.3/fixes-from-upstream-cvs.patch,
-files/2.4.3/killaddr-smarter.patch, -files/2.4.3/modules.ppp,
-files/2.4.3/mpls.patch, -files/2.4.3/options-pppoe,
-files/2.4.3/options-pptp, -files/2.4.3/ppp_flags.patch,
-files/2.4.3/pppoe.html, +files/README.mpls,
-files/gcc3.3-multiline.patch, -files/gcc33-amd64.patch,
+files/options-pppoe, +files/options-pptp,
-files/ppp-sys_error_to_strerror.patch, -ppp-2.4.1-r14.ebuild,
ppp-2.4.2-r10.ebuild, -ppp-2.4.3.ebuild, -ppp-2.4.3-r1.ebuild,
-ppp-2.4.3-r2.ebuild, ppp-2.4.3-r3.ebuild:
Fix multilib-strict issue (#92111) in 2.4.2. Remove obsolete versions.
Reorganize patches and FILESDIR stuff.
10 May 2005; Herbie Hopkins
Fixed multilib-strict issue, bug #92111
08 May 2005; Torsten Veller
using toolchain-funcs
*ppp-2.4.3-r3 (08 May 2005)
08 May 2005; Alin Nastac
metadata.xml, +ppp-2.4.3-r3.ebuild:
Fix plugins installation on amd64 (#74093).
*ppp-2.4.3-r2 (05 May 2005)
05 May 2005; Alin Nastac
Import fixes from upstream CVS (#74093).
16 Apr 2005; Alin Nastac
Fix net.ppp0 script regarding default route removal (#89017).
14 Apr 2005; Tom Gall
added ~ppc64, bug #89139
18 Mar 2005; Alin Nastac
Pass peer name as 6th param to the ip-up/ip-down scripts (#85700).
12 Feb 2005; Alin Nastac
Fix broken build of radiusclient plugin on SMP machines (#81544).
06 Feb 2005; Alin Nastac
files/ip-down, files/ip-up, files/net.ppp0, -files/2.4.2/confd.ppp0,
-files/2.4.2/ip-down, -files/2.4.2/ip-up, -files/2.4.2/net.ppp0,
-files/2.4.3/confd.ppp0, -files/2.4.3/ip-down, -files/2.4.3/ip-up,
-files/2.4.3/net.ppp0, ppp-2.4.2-r10.ebuild, ppp-2.4.3-r1.ebuild,
ppp-2.4.3.ebuild:
Use same scripts in all versions.
30 Jan 2005; Daniel Black
ppp-2.4.2-r10.ebuild, ppp-2.4.3-r1.ebuild, ppp-2.4.3.ebuild:
Transition dependancy from net-libs/libpcap to virtual/libpcap
21 Jan 2005; Christian Zoffoli
+files/ppp-sys_error_to_strerror.patch, ppp-2.4.2-r10.ebuild,
ppp-2.4.3.ebuild, ppp-2.4.3-r1.ebuild:
See bug #78679.
*ppp-2.4.3-r1 (09 Jan 2005)
09 Jan 2005; Alin Nastac
+files/2.4.3/fixes-from-upstream-cvs.patch, +ppp-2.4.3-r1.ebuild:
Add fixes from upstream CVS for bug IDs 1103-1106. See bug #58275 and #74093.
08 Jan 2005; Alin Nastac
-ppp-2.4.2-r9.ebuild:
Remove old ebuild.
06 Jan 2005; Alin Nastac
Mark stable on all arches.
29 Nov 2004; Alin Nastac
-files/ppp-2.4.1-MSCHAPv2-fix.patch, -ppp-2.4.2-r1.ebuild,
-ppp-2.4.2-r2.ebuild, -ppp-2.4.2-r6.ebuild, -ppp-2.4.2-r7.ebuild,
-ppp-2.4.2-r8.ebuild, -ppp-2.4.2.ebuild:
Remove old ebuilds.
*ppp-2.4.3 (27 Nov 2004)
27 Nov 2004; Alin Nastac
+files/2.4.3/confd.ppp0, +files/2.4.3/ip-down, +files/2.4.3/ip-up,
+files/2.4.3/killaddr-smarter.patch, +files/2.4.3/modules.ppp,
+files/2.4.3/mpls.patch, +files/2.4.3/net.ppp0, +files/2.4.3/options-pppoe,
+files/2.4.3/options-pptp, +files/2.4.3/ppp_flags.patch,
+files/2.4.3/pppoe.html, +ppp-2.4.3.ebuild:
Import ebuild for 2.4.3 from #72405, thanks to tove
18 Nov 2004; Alin Nastac
ppp-2.4.2-r9.ebuild:
Add pam library to dependencies. See bug #71577.
*ppp-2.4.2-r10 (14 Nov 2004)
14 Nov 2004; Alin Nastac
Install pam file for ppp (see #70957). Add failures when failed to install
essential parts.
*ppp-2.4.2-r9 (11 Nov 2004)
11 Nov 2004; Alin Nastac
files/2.4.2/ip-up, files/2.4.2/ip-down, +ppp-2.4.2-r9.ebuild:
Create a world readable resolv.conf (see #37886).
Leave it stable it is a trivial script correction.
*ppp-2.4.2-r8 (09 Nov 2004)
09 Nov 2004; Alin Nastac
files/2.4.2/ip-up, files/2.4.2/ip-down, +ppp-2.4.2-r8.ebuild:
Correctly pass empty params to ip-up.local and ip-down.local .
Leave it stable on all arches since is a trivial change. See bug #70440.
07 Nov 2004; Steve Arnold
+files/2.4.2/mppe-mppc-1.0.patch.gz, ppp-2.4.2-r2.ebuild:
updated mppe patch for bug 51744
05 Nov 2004; Hardave Riar
Stable on mips, bug #69152.
01 Nov 2004; Daniel Black
Permissions changed from 640 to 644 on ip-up/down scripts as per bug #37886
Thanks to Oliver Schoett
31 Oct 2004;
stable on ppc gsla: 69152
31 Oct 2004; Daniel Black
x86 stable
30 Oct 2004; Bryan Østergaard
Stable on alpha, bug 69152.
30 Oct 2004; Jason Wever
Stable on sparc wrt security bug #69152.
30 Oct 2004; Simon Stelling
stable on amd64 for security reasons (bug #69152)
*ppp-2.4.2-r7 (30 Oct 2004)
30 Oct 2004; Daniel Black
+files/2.4.2/cbcp-dosfix.patch, +ppp-2.4.2-r7.ebuild:
Added patch cbcp-dosfix.patch to fix remote DOS as per bug #69152. Thanks Dan
Margolis
*ppp-2.4.2-r6 (14 Oct 2004)
14 Oct 2004; Daniel Black
+ppp-2.4.2-r6.ebuild:
revision bump and remove old version to fix bug #67125. Thanks Ned for
the notification and Alin Nastac for the simple fix
*ppp-2.4.2-r5 (27 Sep 2004)
27 Sep 2004; Heinrich Wendel
+ppp-2.4.2-r5.ebuild:
add dhcp plugin, bug #62969
27 Sep 2004; Heinrich Wendel
fix setup for two modems, bug #43923
27 Sep 2004; Heinrich Wendel
fix activfilter useflag
27 Sep 2004; Heinrich Wendel
fix handling of INITSTRING, bug #49861
*ppp-2.4.2-r4 (27 Sep 2004)
27 Sep 2004; Heinrich Wendel
-ppp-2.4.2-r3.ebuild, +ppp-2.4.2-r4.ebuild:
add mppe-mppc support via useflag, bug #51027
27 Sep 2004; Heinrich Wendel
move radius plugin from /usr/lib to /usr/lib/ppp/2.4.2, bug #56747
27 Sep 2004; Heinrich Wendel
apply pcap patch to 2.4.1-r14, bug #51059
27 Sep 2004; Heinrich Wendel
+files/2.4.2/endless-loop.patch, ppp-2.4.2.ebuild:
fix endless loop, bug #58364
27 Sep 2004; Heinrich Wendel
remove unneccesary x86 dependencie of atm use flag, bug #55881
27 Sep 2004; Heinrich Wendel
load ppp module if not present, bug #55233
27 Sep 2004; Heinrich Wendel
files/2.4.2/ip-up:
fix resolv.conf permissions
25 Sep 2004; Mike Frysinger
ppp-2.4.2-r1.ebuild, ppp-2.4.2-r2.ebuild, ppp-2.4.2-r3.ebuild,
ppp-2.4.2.ebuild:
Do not install the pap/chap secrets files because if a user makes a binary
package, they could include their passwords without realizing it.
*ppp-2.4.2-r3 (24 Sep 2004)
24 Sep 2004; Daniel Black
-files/ppp-2.4.1-openssl-0.9.6-mppe-patch.gz,
-files/ppp-crypto-fix.patch.bz2, +files/2.4.2/control_c.patch,
ppp-2.4.1-r14.ebuild, +ppp-2.4.2-r3.ebuild:
Patch added to fix bug #57238. Thank to Thomas G
Removed unused patch files/ppp-2.4.1-openssl-0.9.6-mppe-patch.gz. Moved
files/ppp-crypto-fix.patch.bz2 to mirrors.
01 Jul 2004; Jeremy Huddleston
ppp-2.4.2-r1.ebuild, ppp-2.4.2-r2.ebuild, ppp-2.4.2.ebuild:
virtual/glibc -> virtual/libc
13 Jun 2004; Travis Tilley
pushing to stable -way- early to fix bug #53615
12 Jun 2004; Travis Tilley
this version compiles on amd64, re-adding ~amd64 keyword
09 Jun 2004; Aron Griffis
ppp-2.4.2-r1.ebuild, ppp-2.4.2-r2.ebuild, ppp-2.4.2.ebuild:
Fix use invocation
03 May 2004; Jason Eric Huebel
gnuconfig update
30 Apr 2004; Heinrich Wendel
ppp-2.4.2-r2.ebuild:
bug #49318
28 Apr 2004; Heinrich Wendel
link to libatm, bug #49133
*ppp-2.4.2-r2 (27 Apr 2004)
27 Apr 2004; Aron Griffis
ppp-2.4.2-r1.ebuild, ppp-2.4.2-r2.ebuild, ppp-2.4.2.ebuild:
Add inherit eutils
26 Apr 2004; Heinrich Wendel
files/2.4.2b3/cflags.patch, files/2.4.2b3/chat-default,
files/2.4.2b3/confd.ppp0, files/2.4.2b3/ip-down, files/2.4.2b3/ip-up,
files/2.4.2b3/killaddr-smarter.patch, files/2.4.2b3/modules.ppp,
files/2.4.2b3/mpls.patch, files/2.4.2b3/net.ppp0,
files/2.4.2b3/options-pppoe, files/2.4.2b3/options-pptp,
files/2.4.2b3/pppoe.html:
remove old version
26 Apr 2004; Heinrich Wendel
update pppoatm patch, bug #47574
add mppe alias, bug #47091
08 Mar 2004; Heinrich Wendel
install pppoatm.so, not only build it
06 Mar 2004; Heinrich Wendel
add support for udev
*ppp-2.4.2-r1 (06 Mar 2004)
06 Mar 2004; Heinrich Wendel
add atm to IUSE=""
06 Mar 2004; Heinrich Wendel
files/2.4.2/killaddr-smarter.patch, files/2.4.2/killaddr-smarter.patch.gz,
files/2.4.2/mpls.patch, files/2.4.2/mpls.patch.gz,
files/2.4.2/pppoatm.diff.gz, files/2.4.2/stdopt-mppe-mppc-0.82.patch.gz:
add atm support (bug #41607) and mppc support (bug #42212)
22 Feb 2004; Heinrich Wendel
bug #41914
14 Feb 2004; Aron Griffis
files/2.4.2/pcap.patch:
Patch for libpcap headers; fixes bug 41416
*ppp-2.4.2 (12 Feb 2004)
12 Feb 2004; Heinrich Wendel
version bump
18 Jan 2004; Heinrich Wendel
enable radius
17 Jan 2004; Heinrich Wendel
files/2.4.2b3/ip-up:
resolv.conf permissions again, took method from debian
12 Jan 2004; Heinrich Wendel
files/2.4.2b3/ip-up:
resolv.conf permissions again
01 Jan 2004;
Added mips to KEYWORDS
27 Dec 2003; Heinrich Wendel
fixed sleep command to work on all locales (bug #36571)
27 Dec 2003; Heinrich Wendel
fixed sed expression to only replace pppoe.so but not rp-pppoe.so
26 Dec 2003; Heinrich Wendel
automatically change pppoe.so to rp-pppoe.so (library name changed in 2.4.2)
23 Dec 2003; Brad House
freezes on compile on amd64, even after libtoolize addition
22 Dec 2003; Heinrich Wendel
ppp-2.4.1-r12.ebuild, ppp-2.4.1-r13.ebuild, ppp-2.4.2_beta3.ebuild:
removed old versions
22 Dec 2003; Heinrich Wendel
files/2.4.2b3/ip-up, files/2.4.2b3/net.ppp0:
speed up startup in special cases (bug #36195)
*ppp-2.4.2_beta3-r1 (22 Dec 2003)
22 Dec 2003; Heinrich Wendel
files/2.4.2b3/confd.ppp0, files/2.4.2b3/net.ppp0:
added support for leased-line pppd setups (bug #33290)
*ppp-2.4.2_beta3-r1 (22 Dec 2003)
22 Dec 2003; Heinrich Wendel
files/2.4.2b3/README.mpls, files/2.4.2b3/cflags.patch,
files/2.4.2b3/chat-default, files/2.4.2b3/confd.ppp0, files/2.4.2b3/ip-down,
files/2.4.2b3/ip-up, files/2.4.2b3/killaddr-smarter.patch,
files/2.4.2b3/modules.ppp, files/2.4.2b3/mpls.patch, files/2.4.2b3/net.ppp0,
files/2.4.2b3/options-pppoe, files/2.4.2b3/options-pptp,
files/2.4.2b3/pppoe.html:
major cleanups:
- moved all cflags fixed to one patch
- added mpls support
- use pon, poff, plog scripts from ppp distribution
- added killaddr-smarter patch (http://seclists.org/lists/linux-kernel/2001/Jan/ 5745.html)
- added options files for pppoe and pptp
- fixed resolv.conf issues
- fixed stopping of net.ppp0
- some minor things i forgot
many thx to:
- Robert Cernansky
- Cory Visi
- Francesco Pretto
- Steve Hudson
- BlueRaven
08 Dec 2003; Heinrich Wendel
added alpha to keywords, stable on sparc
05 Dec 2003; Heinrich Wendel
fixed chown syntax
19 Nov 2003; Heinrich Wendel
metadata.xml
*ppp-2.4.2_beta3 (02 Oct 2003)
02 Oct 2003; Heinrich Wendel
version bump
06 Sep 2003; Seemant Kulleen
surround username with quotes for the secrets file generation. This helps with
users who have funky characters in the usernames. Thanks to choenig__ in
#gentoo-bugs (Christian Hoenig
06 Sep 2003; Martin Holzer
removing pppatm
07 Aug 2003; Tavis Ormandy
stable on alpha
01 Jul 2003; Olivier Crete
fix for va_list on amd64 (its like ppc)
15 Jul 2003; Martin Schlemmer
Do not update /etc/ppp/peers if no NUMBER is set - this is for non
dialup users, thanks to Maciek Freudenheim
12 Jun 2003;
ppp-2.4.1-r14.ebuild:
add Header
26 May 2003; Luca Barbato
gcc-3.3 fix and moving the patches in src_unpack.
*ppp-2.4.1-r14 (22 May 2003)
04 Aug 2003; Guy Martin
Marked stable on hppa.
22 May 2003; Chuck Brewer
new testing ebuild, adds pppoatm.so that should work with this build
*ppp-2.4.1-r12 (22 May 2003)
22 May 2003; Chuck Brewer
Added stuff from baselayout to be provided by the ppp package, i.e.
net.ppp0,conf.d/net.ppp0 and chat-default
*ppp-2.4.1-r13 (24 Apr 2003)
24 Apr 2003; Chuck Brewer
Added ppp-2.4.1-r13.ebuild and digest to include support for p* and
ip-* scripts, perms fix, details in bug #18264
15 Apr 2003; Tavis Ormandy
Adding ~alpha keyword.
28 Mar 2003; Guy Martin
Added hppa to KEYWORDS.
02 Mar 2003; Seemant Kulleen
Moved to stable x86. Closing bug #12002
05 Feb 2003; Hannes Mehnert
added local activefilter useflag, thanks to Alexander Holler
06 Dec 2002; Rodney Rees
*ppp-2.4.1-r12 (15 Dec 2002)
15 Dec 2002; phoen][x
files/digest-ppp-2.4.1-r12 :
Fixed a pretty severe bug: /etc/modules.d/ppp was set +x - that caused
a strange behaviour with update-modules. See bug #12002 for more details.
Fixed the LICENSE setting: GPL -> GPL-2.
Revision bump to force portage to update ppp.
*ppp-2.4.1-r11 (28 Aug 2002)
13 Nov 2002; Hannes Mehnert
added sample /etc/ppp/ip-up script submitted in bug #8609, added IUSE
16 Sep 2002; Maarten Thibaut
Added sparc and sparc64 keywords. Revamped ChangeLog layout.
15 Sep 2002; phoen][x
Uploaded the tarball to ibiblio and modified SRC_URI.
This closes bug 7771.
05 Sep 2002; phoen][x
Enabled callback.
This closes bug 7373.
28 Aug 2002; phoen][x
Added ipv6 useflag support.
This closes bug 6972.
*ppp-2.4.1-r10 (31 Jul 2002)
16 Sep 2002; Maarten Thibaut
Added sparc and sparc64 keywords.
3 Aug 2002; Calum Selkirk
ppp-2.4.1-r9.ebuild :
Added ppc to KEYWORDS.
31 Jul 2002; Daniel Ahlberg
Security fix - added a patch to prevent race condition.
*ppp-2.4.1-r9
16 Jul 2002; Ben Lutgens
updated homepage
*ppp-2.4.1-r8 (09 Apr 2002)
22 May 2002; Mike Jones
Added (optional - USE crypt variable was used) MPPE support for ppp, enabling
clients who use the pptp server to have encrypted connections.
*ppp-2.4.1-r8 (09 Apr 2002)
09 Apr 2002; Daniel Robbins
path; closing bug #1629.
*ppp-2.4.1-r7 (08 Apr 2002)
08 Apr 2002; Daniel Robbins
new kernel pppoe-enabled ebuild submitted by Christian Loitsch.) Closes bug
#1527.
*ppp-2.4.1-r6 (01 Feb 2002)
1 Feb 2002; G.Bevin
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.
AUX README.mpls 530 RMD160 4814f25fa3d788311f37045188cf285fb588da67 SHA1 fdf4abff10b2593ca9012429cf684243cc74fec6 SHA256 5ef99aba902533fe9d17b7dfaf91e72b638cc70b9f811d1e518822ee80b5ff57
AUX modules.ppp 299 RMD160 ef5ee6fcf66dce67e5bd25220699c3df3ae6ee28 SHA1 d5d8646685dd7d4c0811812e2cb85fee71806d2b SHA256 8947dd48d3d0c128166edc9bb0917b9af88502296fad791d6d90bf165ca50db3
DIST ppp-2.4.4-gentoo-20070903.tar.gz 49574 RMD160 05ac480547465ba4907ea2df95f910cfef378171 SHA1 71f3ebae77b281d1aff2edd9303eb6e14ef77176 SHA256 79cfb44fd3868a139f11fee6f2a59ef9f2448b060d4b5584696be3048606b40d
DIST ppp-2.4.4-gentoo-20080412.tar.gz 47912 RMD160 19cb48bf5f283054bb9fb12b20d6456190d9f5eb SHA1 56ecb29bb910fb726ff3fbdf7425c27d63258e3b SHA256 4a4cd83b378c8d422a9c1ac135e8ffb4db46ab2ab819c9d9f65c4c8ebc2a8bba
DIST ppp-2.4.4-gentoo-20080627.tar.gz 50335 RMD160 e4bc81686336e08a51420f6cc73fdec36e22539d SHA1 8cfd8cd2eba516f0e971862fa1888eb2bf4382c4 SHA256 f5c40b643d130c1b95917ec9ecf2f45376d610452ce861b1b4dc5a2c8022a255
DIST ppp-2.4.4.tar.gz 688763 RMD160 ed289a4506c3af41a72f88103d5e0be44dec3da7 SHA1 9b91b0117e0a8bfaf8c4e894af79e0960dd36259 SHA256 58af45fc07e5f326eea2408df770ea40e4626d1a15e7d564dd054d74880e91ea
DIST ppp-dhcpc.tgz 33497 RMD160 63bf0d1cc52e91ea536fc593fb7a40502baecd90 SHA1 1a0b02788d522f2137d0b66c749ffe6c96cceb94 SHA256 977fd980bb1d285963d8e27a87b7601ea84317faadfdb40989b258d1853db644
EBUILD ppp-2.4.4-r14.ebuild 10476 RMD160 8b883a43b569d66421f82e6f912ac13498b6cd82 SHA1 4ca1bd229972fe9e726ed1f517e1cb4670696a6a SHA256 ea7f1162287fdd4a45f407d2950dca9c5ba30e134d163b2b6d80e666ee5823ff
EBUILD ppp-2.4.4-r15.ebuild 10636 RMD160 fdea6f41d927d6dbd72da2cd5f1ba3280a97c17a SHA1 d8ad7100ef521ff5196f7ce536f92a5c639c786a SHA256 4f78c5128c697a818c7745913eeb5de5276993559342b95f35d6226f1a510cc8
EBUILD ppp-2.4.4-r17.ebuild 10944 RMD160 759ca530a57d8ed3c83a430219d953adc1f6a7cd SHA1 9688a97836791b426b4d6fa7892b8db800a5e2ab SHA256 a6dc5595a939b3e366c412a0f94894e3bc165fce1a447ab32149fc2e85b90542
MISC ChangeLog 36425 RMD160 699934d5deb81d5c4643e0f8be7ae7f53b5dd1e5 SHA1 21384505944e5ea22a109dcdceddbe10f2cd552b SHA256 46388ab58024c8a8d04f94ead06019a85398c0278bd0992d1f671777a939074f
MISC metadata.xml 384 RMD160 98dac63bd0265c815e677f10fd2418231c01b19e SHA1 00f7ddc284f2338465ba8a1d1bc31da70dc6d7bc SHA256 a9f217d596c53c39f17c5e0675b4a9a484a1530b75c460ca7bf4896e6e732683
which implements the Point-to-Point Protocol
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ppp-2.4.4-r14.ebuild,v 1.4 2008/06/14 16:54:53 zmedico Exp $
inherit eutils flag-o-matic toolchain-funcs linux-info pam
DESCRIPTION="Point-to-Point Protocol (PPP)"
HOMEPAGE="http://www.samba.org/ppp"
SRC_URI="ftp://ftp.samba.org/pub/ppp/${P}.tar.gz
mirror://gentoo/${P}-gentoo-20070903.tar.gz
dhcp? ( http://www.netservers.co.uk/gpl/ppp-dhcpc.tgz )"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="activefilter atm dhcp eap-tls gtk ipv6 mppe-mppc pam radius"
DEPEND="activefilter? ( >=virtual/libpcap-0.9.4 )
atm? ( net-dialup/linux-atm )
pam? ( sys-libs/pam )
gtk? ( >=x11-libs/gtk+-2.8 )
eap-tls? ( net-misc/curl >=dev-libs/openssl-0.9.7 )"
pkg_setup() {
if use mppe-mppc; then
echo
ewarn "The mppe-mppc flag overwrites the pppd native MPPE support with MPPE-MPPC"
ewarn "patch developed by Jan Dubiec."
ewarn "The resulted pppd will work only with patched kernels with version <= 2.6.14."
ewarn "You could obtain the kernel patch from MPPE-MPPC homepage:"
ewarn " http://mppe-mppc.alphacron.de/"
ewarn "CAUTION: MPPC is a U.S. patented algorithm!"
ewarn "Ask yourself if you really need it and, if you do, consult your lawyer first."
ebeep
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}/patch/make-vars.patch"
epatch "${WORKDIR}/patch/mpls.patch"
epatch "${WORKDIR}/patch/killaddr-smarter.patch"
epatch "${WORKDIR}/patch/wait-children.patch"
epatch "${WORKDIR}/patch/maxoctets-2Glimit.patch"
epatch "${WORKDIR}/patch/defaultgateway.patch"
epatch "${WORKDIR}/patch/mschapv2-initialize-response.patch"
epatch "${WORKDIR}/patch/linkpidfile.patch"
epatch "${WORKDIR}/patch/qa-fixes.patch"
epatch "${WORKDIR}/patch/kill-pg.patch"
epatch "${WORKDIR}/patch/auth-fail.patch"
epatch "${WORKDIR}/patch/defaultmetric.patch"
epatch "${WORKDIR}/patch/dev-ppp.patch"
epatch "${WORKDIR}/patch/gtk2.patch"
use eap-tls && {
# see http://eaptls.spe.net/index.html for more info
einfo "Enabling EAP-TLS support"
epatch "${WORKDIR}/patch/eaptls-0.7-gentoo.patch"
use mppe-mppc || epatch "${WORKDIR}/patch/eaptls-mppe-0.7.patch"
}
use mppe-mppc && {
einfo "Enabling MPPE-MPPC support"
epatch "${WORKDIR}/patch/mppe-mppc-1.1.patch"
use eap-tls && epatch "${WORKDIR}/patch/eaptls-mppe-0.7-with-mppc.patch"
}
use atm && {
einfo "Enabling PPPoATM support"
sed -i "s/^#HAVE_LIBATM=yes/HAVE_LIBATM=yes/" pppd/plugins/pppoatm/Makefile.linux
}
use activefilter || {
einfo "Disabling active filter"
sed -i "s/^FILTER=y/#FILTER=y/" pppd/Makefile.linux
}
use pam && {
einfo "Enabling PAM"
sed -i "s/^#USE_PAM=y/USE_PAM=y/" pppd/Makefile.linux
}
use ipv6 && {
einfo "Enabling IPv6"
sed -i "s/#HAVE_INET6/HAVE_INET6/" pppd/Makefile.linux
}
einfo "Enabling CBCP"
sed -i "s/^#CBCP=y/CBCP=y/" pppd/Makefile.linux
use dhcp && {
# copy the ppp-dhcp plugin files
einfo "Copying ppp-dhcp plugin files..."
tar -xzf "${DISTDIR}/ppp-dhcpc.tgz" -C pppd/plugins/ \
&& sed -i -e 's/SUBDIRS := rp-pppoe/SUBDIRS := rp-pppoe dhcp/' pppd/plugins/Makefile.linux \
|| die "ppp-dhcp plugin addition failed"
epatch "${WORKDIR}/patch/dhcp-make-vars.patch"
epatch "${WORKDIR}/patch/dhcp-sys_error_to_strerror.patch"
}
# Set correct libdir
sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \
pppd/{pathnames.h,pppd.8}
use radius && {
#set the right paths in radiusclient.conf
sed -i -e "s:/usr/local/etc:/etc:" \
-e "s:/usr/local/sbin:/usr/sbin:" pppd/plugins/radius/etc/radiusclient.conf
#set config dir to /etc/ppp/radius
sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \
pppd/plugins/radius/{*.8,*.c,*.h} \
pppd/plugins/radius/etc/*
}
}
src_compile() {
export CC="$(tc-getCC)"
export AR="$(tc-getAR)"
append-ldflags $(bindnow-flags)
econf || die "configuration failed"
emake COPTS="${CFLAGS} -D_GNU_SOURCE" || die "compile failed"
#build pppgetpass
cd contrib/pppgetpass
if use gtk; then
emake -f Makefile.linux || die "failed to build pppgetpass"
else
emake pppgetpass.vt || die "failed to build pppgetpass"
fi
}
pkg_preinst() {
has_version "<${CATEGORY}/${PN}-2.4.3-r5"
previous_less_than_2_4_3_r5=$?
if use radius && [ -d "${ROOT}/etc/radiusclient" ] && \
[[ $previous_less_than_2_4_3_r5 = 0 ]] ; then
ebegin "Copy /etc/radiusclient to /etc/ppp/radius"
cp -pPR "${ROOT}/etc/radiusclient" "${ROOT}/etc/ppp/radius"
eend $?
fi
}
src_install() {
local i
for i in chat pppd pppdump pppstats
do
doman ${i}/${i}.8
dosbin ${i}/${i}
done
fperms u+s-w /usr/sbin/pppd
# Install pppd header files
pushd pppd && \
make INSTROOT="${D}" install-devel && \
popd || die "make install-devel failed"
dosbin pppd/plugins/rp-pppoe/pppoe-discovery
dodir /etc/ppp/peers
insinto /etc/ppp
insopts -m0600
newins etc.ppp/pap-secrets pap-secrets.example
newins etc.ppp/chap-secrets chap-secrets.example
insopts -m0644
doins etc.ppp/options
exeinto /etc/ppp
for i in ip-up ip-down ; do
doexe "${WORKDIR}/scripts/${i}"
insinto /etc/ppp/${i}.d
use ipv6 && dosym ${i} /etc/ppp/${i/ip/ipv6}
doins "${WORKDIR}/scripts/${i}.d"/*
done
pamd_mimic_system ppp auth account session
local PLUGINS_DIR=/usr/$(get_libdir)/pppd/$(awk -F '"' '/VERSION/ {print $2}' pppd/patchlevel.h)
#closing " for syntax coloring
insinto "${PLUGINS_DIR}"
insopts -m0755
doins pppd/plugins/minconn.so || die "minconn.so not build"
doins pppd/plugins/passprompt.so || die "passprompt.so not build"
doins pppd/plugins/passwordfd.so || die "passwordfd.so not build"
doins pppd/plugins/winbind.so || die "winbind.so not build"
doins pppd/plugins/rp-pppoe/rp-pppoe.so || die "rp-pppoe.so not build"
if use atm; then
doins pppd/plugins/pppoatm/pppoatm.so || die "pppoatm.so not build"
fi
if use dhcp; then
doins pppd/plugins/dhcp/dhcpc.so || die "dhcpc.so not build"
fi
if use radius; then
doins pppd/plugins/radius/radius.so || die "radius.so not build"
doins pppd/plugins/radius/radattr.so || die "radattr.so not build"
doins pppd/plugins/radius/radrealms.so || die "radrealms.so not build"
#Copy radiusclient configuration files (#92878)
insinto /etc/ppp/radius
insopts -m0644
doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers}
doman pppd/plugins/radius/pppd-radius.8
doman pppd/plugins/radius/pppd-radattr.8
fi
insinto /etc/modules.d
insopts -m0644
newins "${FILESDIR}/modules.ppp" ppp
if use mppe-mppc; then
sed -i -e 's/ppp_mppe/ppp_mppe_mppc/' "${D}/etc/modules.d/ppp"
fi
dodoc PLUGINS README* SETUP Changes-2.3 FAQ
dodoc "${FILESDIR}/README.mpls"
dosbin scripts/pon
dosbin scripts/poff
dosbin scripts/plog
doman scripts/pon.1
# Adding misc. specialized scripts to doc dir
insinto /usr/share/doc/${PF}/scripts/chatchat
doins scripts/chatchat/*
insinto /usr/share/doc/${PF}/scripts
doins scripts/*
if use gtk; then
dosbin contrib/pppgetpass/{pppgetpass.vt,pppgetpass.gtk}
newsbin contrib/pppgetpass/pppgetpass.sh pppgetpass
else
newsbin contrib/pppgetpass/pppgetpass.vt pppgetpass
fi
doman contrib/pppgetpass/pppgetpass.8
}
pkg_postinst() {
if get_version ; then
echo
ewarn "If the following test report contains a missing kernel configuration option that you need,"
ewarn "you should reconfigure and rebuild your kernel before running pppd."
CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY"
local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)"
local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline (optional, but highly recommended)"
local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline (optional; used by 'sync' pppd option)"
if use activefilter ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_FILTER"
local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)"
fi
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_DEFLATE ~PPP_BSDCOMP"
local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)"
local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)"
if use mppe-mppc ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE_MPPC"
local WARNING_PPP_MPPE_MPPC="CONFIG_PPP_MPPE_MPPC:\t missing MPPE/MPPC encryption/compression (optional, mostly used by PPTP links)"
else
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE"
local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)"
fi
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOE"
local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional needed by rp-pppoe plugin)"
if use atm ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOATM"
local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)"
fi
check_extra_config
fi
if [ ! -e "${ROOT}/dev/.devfsd" ] && [ ! -e "${ROOT}/dev/.udev" ] && [ ! -e "${ROOT}/dev/ppp" ]; then
mknod "${ROOT}/dev/ppp" c 108 0
fi
if [ "$ROOT" = "/" ]; then
[ -x /sbin/update-modules ] && /sbin/update-modules || /sbin/modules-update
fi
# create *-secrets files if not exists
[ -f "${ROOT}/etc/ppp/pap-secrets" ] || \
cp -pP "${ROOT}/etc/ppp/pap-secrets.example" "${ROOT}/etc/ppp/pap-secrets"
[ -f "${ROOT}/etc/ppp/chap-secrets" ] || \
cp -pP "${ROOT}/etc/ppp/chap-secrets.example" "${ROOT}/etc/ppp/chap-secrets"
# lib name has changed
sed -i -e "s:^pppoe.so:rp-pppoe.so:" "${ROOT}/etc/ppp/options"
if use radius && [[ $previous_less_than_2_4_3_r5 = 0 ]] ; then
echo
ewarn "As of ${PN}-2.4.3-r5, the RADIUS configuration files have moved from"
ewarn " /etc/radiusclient to /etc/ppp/radius."
einfo "For your convenience, radiusclient directory was copied to the new location."
fi
echo
elog "Pon, poff and plog scripts have been supplied for experienced users."
elog "Users needing particular scripts (ssh,rsh,etc.) should check out the"
elog "/usr/share/doc/${PF}/scripts directory."
# move the old user-defined files into ip-{up,down}.d directories
local i
for i in ip-up ip-down; do
if [ -f "${ROOT}"/etc/ppp/${i}.local ]; then
mv /etc/ppp/${i}.local /etc/ppp/${i}.d/90-local.sh && \
einfo "/etc/ppp/${i}.local has been moved to /etc/ppp/${i}.d/90-local.sh"
fi
done
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ppp-2.4.4-r15.ebuild,v 1.8 2008/06/29 11:05:30 klausman Exp $
inherit eutils flag-o-matic toolchain-funcs linux-info pam
DESCRIPTION="Point-to-Point Protocol (PPP)"
HOMEPAGE="http://www.samba.org/ppp"
SRC_URI="ftp://ftp.samba.org/pub/ppp/${P}.tar.gz
http://dev.gentoo.org/~mrness/distfiles/${P}-gentoo-20080412.tar.gz
dhcp? ( http://www.netservers.co.uk/gpl/ppp-dhcpc.tgz )"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 ~arm hppa ia64 ~mips ~ppc ppc64 ~s390 ~sh sparc x86"
IUSE="activefilter atm dhcp eap-tls gtk ipv6 mppe-mppc pam radius"
DEPEND="activefilter? ( >=virtual/libpcap-0.9.4 )
atm? ( net-dialup/linux-atm )
pam? ( virtual/pam )
gtk? ( >=x11-libs/gtk+-2.8 )
eap-tls? ( net-misc/curl >=dev-libs/openssl-0.9.7 )"
pkg_setup() {
if use mppe-mppc; then
echo
ewarn "The mppe-mppc flag overwrites the pppd native MPPE support with MPPE-MPPC"
ewarn "patch developed by Jan Dubiec."
ewarn "The resulted pppd will work only with patched kernels with version <= 2.6.14."
ewarn "You could obtain the kernel patch from MPPE-MPPC homepage:"
ewarn " http://mppe-mppc.alphacron.de/"
ewarn "CAUTION: MPPC is a U.S. patented algorithm!"
ewarn "Ask yourself if you really need it and, if you do, consult your lawyer first."
ebeep
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}/patch/make-vars.patch"
epatch "${WORKDIR}/patch/mpls.patch"
epatch "${WORKDIR}/patch/killaddr-smarter.patch"
epatch "${WORKDIR}/patch/wait-children.patch"
epatch "${WORKDIR}/patch/maxoctets-2Glimit.patch"
epatch "${WORKDIR}/patch/defaultgateway.patch"
epatch "${WORKDIR}/patch/mschapv2-initialize-response.patch"
epatch "${WORKDIR}/patch/linkpidfile.patch"
epatch "${WORKDIR}/patch/qa-fixes.patch"
epatch "${WORKDIR}/patch/kill-pg.patch"
epatch "${WORKDIR}/patch/auth-fail.patch"
epatch "${WORKDIR}/patch/defaultmetric.patch"
epatch "${WORKDIR}/patch/dev-ppp.patch"
epatch "${WORKDIR}/patch/gtk2.patch"
epatch "${WORKDIR}/patch/pppoe-lcp-timeout.patch"
use eap-tls && {
# see http://eaptls.spe.net/index.html for more info
einfo "Enabling EAP-TLS support"
epatch "${WORKDIR}/patch/eaptls-0.7-gentoo.patch"
use mppe-mppc || epatch "${WORKDIR}/patch/eaptls-mppe-0.7.patch"
}
use mppe-mppc && {
einfo "Enabling MPPE-MPPC support"
epatch "${WORKDIR}/patch/mppe-mppc-1.1.patch"
use eap-tls && epatch "${WORKDIR}/patch/eaptls-mppe-0.7-with-mppc.patch"
}
use atm && {
einfo "Enabling PPPoATM support"
sed -i "s/^#HAVE_LIBATM=yes/HAVE_LIBATM=yes/" pppd/plugins/pppoatm/Makefile.linux
}
use activefilter || {
einfo "Disabling active filter"
sed -i "s/^FILTER=y/#FILTER=y/" pppd/Makefile.linux
}
use pam && {
einfo "Enabling PAM"
sed -i "s/^#USE_PAM=y/USE_PAM=y/" pppd/Makefile.linux
}
use ipv6 && {
einfo "Enabling IPv6"
sed -i "s/#HAVE_INET6/HAVE_INET6/" pppd/Makefile.linux
}
einfo "Enabling CBCP"
sed -i "s/^#CBCP=y/CBCP=y/" pppd/Makefile.linux
use dhcp && {
# copy the ppp-dhcp plugin files
einfo "Copying ppp-dhcp plugin files..."
tar -xzf "${DISTDIR}/ppp-dhcpc.tgz" -C pppd/plugins/ \
&& sed -i -e 's/SUBDIRS := rp-pppoe/SUBDIRS := rp-pppoe dhcp/' pppd/plugins/Makefile.linux \
|| die "ppp-dhcp plugin addition failed"
epatch "${WORKDIR}/patch/dhcp-make-vars.patch"
epatch "${WORKDIR}/patch/dhcp-sys_error_to_strerror.patch"
}
# Set correct libdir
sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \
pppd/{pathnames.h,pppd.8}
use radius && {
#set the right paths in radiusclient.conf
sed -i -e "s:/usr/local/etc:/etc:" \
-e "s:/usr/local/sbin:/usr/sbin:" pppd/plugins/radius/etc/radiusclient.conf
#set config dir to /etc/ppp/radius
sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \
pppd/plugins/radius/{*.8,*.c,*.h} \
pppd/plugins/radius/etc/*
}
}
src_compile() {
export CC="$(tc-getCC)"
export AR="$(tc-getAR)"
append-ldflags -Wl,--allow-shlib-undefined # otherwise linking plugins might fail with undef errors (#210837)
econf || die "configuration failed"
emake COPTS="${CFLAGS} -D_GNU_SOURCE" || die "compile failed"
#build pppgetpass
cd contrib/pppgetpass
if use gtk; then
emake -f Makefile.linux || die "failed to build pppgetpass"
else
emake pppgetpass.vt || die "failed to build pppgetpass"
fi
}
pkg_preinst() {
has_version "<${CATEGORY}/${PN}-2.4.3-r5"
previous_less_than_2_4_3_r5=$?
if use radius && [ -d "${ROOT}/etc/radiusclient" ] && \
[[ $previous_less_than_2_4_3_r5 = 0 ]] ; then
ebegin "Copy /etc/radiusclient to /etc/ppp/radius"
cp -pPR "${ROOT}/etc/radiusclient" "${ROOT}/etc/ppp/radius"
eend $?
fi
}
src_install() {
local i
for i in chat pppd pppdump pppstats
do
doman ${i}/${i}.8
dosbin ${i}/${i}
done
fperms u+s-w /usr/sbin/pppd
# Install pppd header files
pushd pppd && \
make INSTROOT="${D}" install-devel && \
popd || die "make install-devel failed"
dosbin pppd/plugins/rp-pppoe/pppoe-discovery
dodir /etc/ppp/peers
insinto /etc/ppp
insopts -m0600
newins etc.ppp/pap-secrets pap-secrets.example
newins etc.ppp/chap-secrets chap-secrets.example
insopts -m0644
doins etc.ppp/options
exeinto /etc/ppp
for i in ip-up ip-down ; do
doexe "${WORKDIR}/scripts/${i}"
insinto /etc/ppp/${i}.d
use ipv6 && dosym ${i} /etc/ppp/${i/ip/ipv6}
doins "${WORKDIR}/scripts/${i}.d"/*
done
pamd_mimic_system ppp auth account session
local PLUGINS_DIR=/usr/$(get_libdir)/pppd/$(awk -F '"' '/VERSION/ {print $2}' pppd/patchlevel.h)
#closing " for syntax coloring
insinto "${PLUGINS_DIR}"
insopts -m0755
doins pppd/plugins/minconn.so || die "minconn.so not build"
doins pppd/plugins/passprompt.so || die "passprompt.so not build"
doins pppd/plugins/passwordfd.so || die "passwordfd.so not build"
doins pppd/plugins/winbind.so || die "winbind.so not build"
doins pppd/plugins/rp-pppoe/rp-pppoe.so || die "rp-pppoe.so not build"
if use atm; then
doins pppd/plugins/pppoatm/pppoatm.so || die "pppoatm.so not build"
fi
if use dhcp; then
doins pppd/plugins/dhcp/dhcpc.so || die "dhcpc.so not build"
fi
if use radius; then
doins pppd/plugins/radius/radius.so || die "radius.so not build"
doins pppd/plugins/radius/radattr.so || die "radattr.so not build"
doins pppd/plugins/radius/radrealms.so || die "radrealms.so not build"
#Copy radiusclient configuration files (#92878)
insinto /etc/ppp/radius
insopts -m0644
doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers}
doman pppd/plugins/radius/pppd-radius.8
doman pppd/plugins/radius/pppd-radattr.8
fi
insinto /etc/modprobe.d
insopts -m0644
newins "${FILESDIR}/modules.ppp" ppp
if use mppe-mppc; then
sed -i -e 's/ppp_mppe/ppp_mppe_mppc/' "${D}/etc/modprobe.d/ppp"
fi
dodoc PLUGINS README* SETUP Changes-2.3 FAQ
dodoc "${FILESDIR}/README.mpls"
dosbin scripts/pon
dosbin scripts/poff
dosbin scripts/plog
doman scripts/pon.1
# Adding misc. specialized scripts to doc dir
insinto /usr/share/doc/${PF}/scripts/chatchat
doins scripts/chatchat/*
insinto /usr/share/doc/${PF}/scripts
doins scripts/*
if use gtk; then
dosbin contrib/pppgetpass/{pppgetpass.vt,pppgetpass.gtk}
newsbin contrib/pppgetpass/pppgetpass.sh pppgetpass
else
newsbin contrib/pppgetpass/pppgetpass.vt pppgetpass
fi
doman contrib/pppgetpass/pppgetpass.8
}
pkg_postinst() {
if get_version ; then
echo
ewarn "If the following test report contains a missing kernel configuration option that you need,"
ewarn "you should reconfigure and rebuild your kernel before running pppd."
CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY"
local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)"
local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline (optional, but highly recommended)"
local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline (optional; used by 'sync' pppd option)"
if use activefilter ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_FILTER"
local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)"
fi
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_DEFLATE ~PPP_BSDCOMP"
local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)"
local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)"
if use mppe-mppc ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE_MPPC"
local WARNING_PPP_MPPE_MPPC="CONFIG_PPP_MPPE_MPPC:\t missing MPPE/MPPC encryption/compression (optional, mostly used by PPTP links)"
else
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE"
local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)"
fi
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOE"
local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional needed by rp-pppoe plugin)"
if use atm ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOATM"
local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)"
fi
check_extra_config
fi
if [ ! -e "${ROOT}/dev/.devfsd" ] && [ ! -e "${ROOT}/dev/.udev" ] && [ ! -e "${ROOT}/dev/ppp" ]; then
mknod "${ROOT}/dev/ppp" c 108 0
fi
if [ "$ROOT" = "/" ]; then
[ -x /sbin/update-modules ] && /sbin/update-modules || /sbin/modules-update
fi
# create *-secrets files if not exists
[ -f "${ROOT}/etc/ppp/pap-secrets" ] || \
cp -pP "${ROOT}/etc/ppp/pap-secrets.example" "${ROOT}/etc/ppp/pap-secrets"
[ -f "${ROOT}/etc/ppp/chap-secrets" ] || \
cp -pP "${ROOT}/etc/ppp/chap-secrets.example" "${ROOT}/etc/ppp/chap-secrets"
# lib name has changed
sed -i -e "s:^pppoe.so:rp-pppoe.so:" "${ROOT}/etc/ppp/options"
if use radius && [[ $previous_less_than_2_4_3_r5 = 0 ]] ; then
echo
ewarn "As of ${PN}-2.4.3-r5, the RADIUS configuration files have moved from"
ewarn " /etc/radiusclient to /etc/ppp/radius."
einfo "For your convenience, radiusclient directory was copied to the new location."
fi
echo
elog "Pon, poff and plog scripts have been supplied for experienced users."
elog "Users needing particular scripts (ssh,rsh,etc.) should check out the"
elog "/usr/share/doc/${PF}/scripts directory."
# move the old user-defined files into ip-{up,down}.d directories
local i
for i in ip-up ip-down; do
if [ -f "${ROOT}"/etc/ppp/${i}.local ]; then
mv /etc/ppp/${i}.local /etc/ppp/${i}.d/90-local.sh && \
einfo "/etc/ppp/${i}.local has been moved to /etc/ppp/${i}.d/90-local.sh"
fi
done
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ppp-2.4.4-r17.ebuild,v 1.1 2008/06/27 19:24:03 mrness Exp $
inherit eutils flag-o-matic toolchain-funcs linux-info pam
DESCRIPTION="Point-to-Point Protocol (PPP)"
HOMEPAGE="http://www.samba.org/ppp"
SRC_URI="ftp://ftp.samba.org/pub/ppp/${P}.tar.gz
http://dev.gentoo.org/~mrness/distfiles/${P}-gentoo-20080627.tar.gz
dhcp? ( http://www.netservers.co.uk/gpl/ppp-dhcpc.tgz )"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="activefilter atm dhcp eap-tls gtk ipv6 mppe-mppc pam radius"
DEPEND="activefilter? ( >=virtual/libpcap-0.9.4 )
atm? ( net-dialup/linux-atm )
pam? ( virtual/pam )
gtk? ( >=x11-libs/gtk+-2.8 )
eap-tls? ( net-misc/curl >=dev-libs/openssl-0.9.7 )"
pkg_setup() {
if use mppe-mppc; then
echo
ewarn "The mppe-mppc flag overwrites the pppd native MPPE support with MPPE-MPPC"
ewarn "patch developed by Jan Dubiec."
ewarn "The resulted pppd will work only with patched kernels with version <= 2.6.14."
ewarn "You could obtain the kernel patch from MPPE-MPPC homepage:"
ewarn " http://mppe-mppc.alphacron.de/"
ewarn "CAUTION: MPPC is a U.S. patented algorithm!"
ewarn "Ask yourself if you really need it and, if you do, consult your lawyer first."
ebeep
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}/patch/make-vars.patch"
epatch "${WORKDIR}/patch/mpls.patch"
epatch "${WORKDIR}/patch/killaddr-smarter.patch"
epatch "${WORKDIR}/patch/wait-children.patch"
epatch "${WORKDIR}/patch/maxoctets-2Glimit.patch"
epatch "${WORKDIR}/patch/defaultgateway.patch"
epatch "${WORKDIR}/patch/mschapv2-initialize-response.patch"
epatch "${WORKDIR}/patch/linkpidfile.patch"
epatch "${WORKDIR}/patch/qa-fixes.patch"
epatch "${WORKDIR}/patch/kill-pg.patch"
epatch "${WORKDIR}/patch/auth-fail.patch"
epatch "${WORKDIR}/patch/defaultmetric.patch"
epatch "${WORKDIR}/patch/dev-ppp.patch"
epatch "${WORKDIR}/patch/gtk2.patch"
epatch "${WORKDIR}/patch/pppoe-lcp-timeout.patch"
epatch "${WORKDIR}/patch/passwordfd-read-early.patch"
use eap-tls && {
# see http://eaptls.spe.net/index.html for more info
einfo "Enabling EAP-TLS support"
epatch "${WORKDIR}/patch/eaptls-0.7-gentoo.patch"
use mppe-mppc || epatch "${WORKDIR}/patch/eaptls-mppe-0.7.patch"
}
use mppe-mppc && {
einfo "Enabling MPPE-MPPC support"
epatch "${WORKDIR}/patch/mppe-mppc-1.1.patch"
use eap-tls && epatch "${WORKDIR}/patch/eaptls-mppe-0.7-with-mppc.patch"
}
use atm && {
einfo "Enabling PPPoATM support"
sed -i "s/^#HAVE_LIBATM=yes/HAVE_LIBATM=yes/" pppd/plugins/pppoatm/Makefile.linux
}
use activefilter || {
einfo "Disabling active filter"
sed -i "s/^FILTER=y/#FILTER=y/" pppd/Makefile.linux
}
use pam && {
einfo "Enabling PAM"
sed -i "s/^#USE_PAM=y/USE_PAM=y/" pppd/Makefile.linux
}
use ipv6 && {
einfo "Enabling IPv6"
sed -i "s/#HAVE_INET6/HAVE_INET6/" pppd/Makefile.linux
}
einfo "Enabling CBCP"
sed -i "s/^#CBCP=y/CBCP=y/" pppd/Makefile.linux
use dhcp && {
# copy the ppp-dhcp plugin files
einfo "Copying ppp-dhcp plugin files..."
tar -xzf "${DISTDIR}/ppp-dhcpc.tgz" -C pppd/plugins/ \
&& sed -i -e 's/SUBDIRS := rp-pppoe/SUBDIRS := rp-pppoe dhcp/' pppd/plugins/Makefile.linux \
|| die "ppp-dhcp plugin addition failed"
epatch "${WORKDIR}/patch/dhcp-make-vars.patch"
epatch "${WORKDIR}/patch/dhcp-sys_error_to_strerror.patch"
}
# Set correct libdir
sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \
pppd/{pathnames.h,pppd.8}
use radius && {
#set the right paths in radiusclient.conf
sed -i -e "s:/usr/local/etc:/etc:" \
-e "s:/usr/local/sbin:/usr/sbin:" pppd/plugins/radius/etc/radiusclient.conf
#set config dir to /etc/ppp/radius
sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \
pppd/plugins/radius/{*.8,*.c,*.h} \
pppd/plugins/radius/etc/*
}
}
src_compile() {
export CC="$(tc-getCC)"
export AR="$(tc-getAR)"
append-ldflags -Wl,--allow-shlib-undefined # otherwise linking plugins might fail with undef errors (#210837)
econf || die "configuration failed"
emake COPTS="${CFLAGS} -D_GNU_SOURCE" || die "compile failed"
#build pppgetpass
cd contrib/pppgetpass
if use gtk; then
emake -f Makefile.linux || die "failed to build pppgetpass"
else
emake pppgetpass.vt || die "failed to build pppgetpass"
fi
}
pkg_preinst() {
has_version "<${CATEGORY}/${PN}-2.4.3-r5"
previous_less_than_2_4_3_r5=$?
if use radius && [ -d "${ROOT}/etc/radiusclient" ] && \
[[ $previous_less_than_2_4_3_r5 = 0 ]] ; then
ebegin "Copy /etc/radiusclient to /etc/ppp/radius"
cp -pPR "${ROOT}/etc/radiusclient" "${ROOT}/etc/ppp/radius"
eend $?
fi
}
src_install() {
local i
for i in chat pppd pppdump pppstats
do
doman ${i}/${i}.8
dosbin ${i}/${i}
done
fperms u+s-w /usr/sbin/pppd
# Install pppd header files
pushd pppd && \
make INSTROOT="${D}" install-devel && \
popd || die "make install-devel failed"
dosbin pppd/plugins/rp-pppoe/pppoe-discovery
dodir /etc/ppp/peers
insinto /etc/ppp
insopts -m0600
newins etc.ppp/pap-secrets pap-secrets.example
newins etc.ppp/chap-secrets chap-secrets.example
insopts -m0644
doins etc.ppp/options
exeinto /etc/ppp
for i in ip-up ip-down ; do
doexe "${WORKDIR}/scripts/${i}" || die "failed to install ${i} script"
insinto /etc/ppp/${i}.d
use ipv6 && dosym ${i} /etc/ppp/${i/ip/ipv6}
doins "${WORKDIR}/scripts/${i}.d"/* || die "failed to install ${i}.d scripts"
done
pamd_mimic_system ppp auth account session
local PLUGINS_DIR=/usr/$(get_libdir)/pppd/$(awk -F '"' '/VERSION/ {print $2}' pppd/patchlevel.h)
#closing " for syntax coloring
insinto "${PLUGINS_DIR}"
insopts -m0755
doins pppd/plugins/minconn.so || die "minconn.so not build"
doins pppd/plugins/passprompt.so || die "passprompt.so not build"
doins pppd/plugins/passwordfd.so || die "passwordfd.so not build"
doins pppd/plugins/winbind.so || die "winbind.so not build"
doins pppd/plugins/rp-pppoe/rp-pppoe.so || die "rp-pppoe.so not build"
if use atm; then
doins pppd/plugins/pppoatm/pppoatm.so || die "pppoatm.so not build"
fi
if use dhcp; then
doins pppd/plugins/dhcp/dhcpc.so || die "dhcpc.so not build"
fi
if use radius; then
doins pppd/plugins/radius/radius.so || die "radius.so not build"
doins pppd/plugins/radius/radattr.so || die "radattr.so not build"
doins pppd/plugins/radius/radrealms.so || die "radrealms.so not build"
#Copy radiusclient configuration files (#92878)
insinto /etc/ppp/radius
insopts -m0644
doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers}
doman pppd/plugins/radius/pppd-radius.8
doman pppd/plugins/radius/pppd-radattr.8
fi
insinto /etc/modprobe.d
insopts -m0644
newins "${FILESDIR}/modules.ppp" ppp
if use mppe-mppc; then
sed -i -e 's/ppp_mppe/ppp_mppe_mppc/' "${D}/etc/modprobe.d/ppp"
fi
dodoc PLUGINS README* SETUP Changes-2.3 FAQ
dodoc "${FILESDIR}/README.mpls"
dosbin scripts/pon && \
dosbin scripts/poff && \
dosbin scripts/plog && \
doman scripts/pon.1 || die "failed to install pon&poff scripts"
# Adding misc. specialized scripts to doc dir
insinto /usr/share/doc/${PF}/scripts/chatchat
doins scripts/chatchat/* || die "failed to install chat scripts in doc dir"
insinto /usr/share/doc/${PF}/scripts
doins scripts/* || die "failed to install scripts in doc dir"
if use gtk; then
dosbin contrib/pppgetpass/{pppgetpass.vt,pppgetpass.gtk}
newsbin contrib/pppgetpass/pppgetpass.sh pppgetpass
else
newsbin contrib/pppgetpass/pppgetpass.vt pppgetpass
fi
doman contrib/pppgetpass/pppgetpass.8
}
pkg_postinst() {
if get_version ; then
echo
ewarn "If the following test report contains a missing kernel configuration option that you need,"
ewarn "you should reconfigure and rebuild your kernel before running pppd."
CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY"
local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)"
local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline (optional, but highly recommended)"
local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline (optional; used by 'sync' pppd option)"
if use activefilter ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_FILTER"
local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)"
fi
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_DEFLATE ~PPP_BSDCOMP"
local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)"
local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)"
if use mppe-mppc ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE_MPPC"
local WARNING_PPP_MPPE_MPPC="CONFIG_PPP_MPPE_MPPC:\t missing MPPE/MPPC encryption/compression (optional, mostly used by PPTP links)"
else
CONFIG_CHECK="${CONFIG_CHECK} ~PPP_MPPE"
local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)"
fi
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOE"
local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional needed by rp-pppoe plugin)"
if use atm ; then
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOATM"
local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)"
fi
check_extra_config
fi
if [ ! -e "${ROOT}/dev/.devfsd" ] && [ ! -e "${ROOT}/dev/.udev" ] && [ ! -e "${ROOT}/dev/ppp" ]; then
mknod "${ROOT}/dev/ppp" c 108 0
fi
if [ "$ROOT" = "/" ]; then
[ -x /sbin/update-modules ] && /sbin/update-modules || /sbin/modules-update
fi
# create *-secrets files if not exists
[ -f "${ROOT}/etc/ppp/pap-secrets" ] || \
cp -pP "${ROOT}/etc/ppp/pap-secrets.example" "${ROOT}/etc/ppp/pap-secrets"
[ -f "${ROOT}/etc/ppp/chap-secrets" ] || \
cp -pP "${ROOT}/etc/ppp/chap-secrets.example" "${ROOT}/etc/ppp/chap-secrets"
# lib name has changed
sed -i -e "s:^pppoe.so:rp-pppoe.so:" "${ROOT}/etc/ppp/options"
if use radius && [[ $previous_less_than_2_4_3_r5 = 0 ]] ; then
echo
ewarn "As of ${PN}-2.4.3-r5, the RADIUS configuration files have moved from"
ewarn " /etc/radiusclient to /etc/ppp/radius."
einfo "For your convenience, radiusclient directory was copied to the new location."
fi
echo
elog "Pon, poff and plog scripts have been supplied for experienced users."
elog "Users needing particular scripts (ssh,rsh,etc.) should check out the"
elog "/usr/share/doc/${PF}/scripts directory."
# move the old user-defined files into ip-{up,down}.d directories
local i
for i in ip-up ip-down; do
if [ -f "${ROOT}"/etc/ppp/${i}.local ]; then
mv /etc/ppp/${i}.local /etc/ppp/${i}.d/90-local.sh && \
einfo "/etc/ppp/${i}.local has been moved to /etc/ppp/${i}.d/90-local.sh"
fi
done
}