summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2010-11-27 10:06:57 +0000
committerAlin Năstac <mrness@gentoo.org>2010-11-27 10:06:57 +0000
commit569d3ee5e28721d58ec7c014632ec1f71f17a8ba (patch)
treed39fdbb9cf639852df6f5a44c104d78f10e39fbc /net-dialup
parentVersion bump wrt #346911. Thanks to r_weber@gmx.net for the report (diff)
downloadhistorical-569d3ee5e28721d58ec7c014632ec1f71f17a8ba.tar.gz
historical-569d3ee5e28721d58ec7c014632ec1f71f17a8ba.tar.bz2
historical-569d3ee5e28721d58ec7c014632ec1f71f17a8ba.zip
Fix PPPOE freeze when garbage packets are received iso PADO/PADS (#340267).
Add lcp-echo-adaptive option (#344273). Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/ppp/ChangeLog9
-rw-r--r--net-dialup/ppp/Manifest16
-rw-r--r--net-dialup/ppp/ppp-2.4.5-r1.ebuild (renamed from net-dialup/ppp/ppp-2.4.4-r24.ebuild)87
3 files changed, 52 insertions, 60 deletions
diff --git a/net-dialup/ppp/ChangeLog b/net-dialup/ppp/ChangeLog
index 72fd72c9657d..359bda637b8a 100644
--- a/net-dialup/ppp/ChangeLog
+++ b/net-dialup/ppp/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-dialup/ppp
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v 1.265 2010/11/02 07:01:42 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ChangeLog,v 1.266 2010/11/27 10:06:57 mrness Exp $
+
+*ppp-2.4.5-r1 (27 Nov 2010)
+
+ 27 Nov 2010; Alin Năstac <mrness@gentoo.org> -ppp-2.4.4-r24.ebuild,
+ +ppp-2.4.5-r1.ebuild:
+ Fix PPPOE freeze when garbage packets are received iso PADO/PADS
+ (#340267). Add lcp-echo-adaptive option (#344273).
02 Nov 2010; Jeroen Roovers <jer@gentoo.org> ppp-2.4.4-r25.ebuild:
Stable for PPC (bug #331611).
diff --git a/net-dialup/ppp/Manifest b/net-dialup/ppp/Manifest
index 158e58ff3794..43c1ca041400 100644
--- a/net-dialup/ppp/Manifest
+++ b/net-dialup/ppp/Manifest
@@ -1,13 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
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-20090816.tar.gz 53733 RMD160 180e88d0888588dda60a32c74b0cb4ed0d5a10ce SHA1 dd59065b88ac2453e022970ac1f7f97e28f392ed SHA256 90f1102cc62215f412089f0c60b415e198e97f2cba36951d8d8cb96bb80b714c
DIST ppp-2.4.4-gentoo-20091116.tar.gz 54932 RMD160 5f37dbae97a4e55ae25ed54d8ae521cb51064c50 SHA1 b35cbec42b3a0794281921e7879eab322f27da70 SHA256 52f174b3df36110d14c522869c507f64aef4d2d01db2dec2936cc9917c9fa716
DIST ppp-2.4.4.tar.gz 688763 RMD160 ed289a4506c3af41a72f88103d5e0be44dec3da7 SHA1 9b91b0117e0a8bfaf8c4e894af79e0960dd36259 SHA256 58af45fc07e5f326eea2408df770ea40e4626d1a15e7d564dd054d74880e91ea
DIST ppp-2.4.5-gentoo-20100903.tar.gz 38811 RMD160 5e64ea4ddd5f7823376709f6076f117acbdd6c17 SHA1 da55d88d3ea5557f3f92b949a6827a4701b32c91 SHA256 fab65eaae9116af6debee4fa35c412b8221e91e5cbc81115448fb4f81a27bf0f
+DIST ppp-2.4.5-gentoo-20101127.tar.gz 41562 RMD160 b9aa87b7f185eda2d022580ccbb9b23d2c2a4f42 SHA1 b63aa5c0c91458fe82a2be2cca2fbe264db2b301 SHA256 d49f51dd10dfc97f25bb5dbc4acc61c708d890da231295467ac3710751d2bcdd
DIST ppp-2.4.5.tar.gz 684342 RMD160 231682ab2314d182c893c64523fd89f571a258de SHA1 cb977b31584e3488e08a643aaa672fdb229d2e78 SHA256 43317afec9299f9920b96f840414c977f0385410202d48e56d2fdb8230003505
DIST ppp-dhcpc.tgz 33497 RMD160 63bf0d1cc52e91ea536fc593fb7a40502baecd90 SHA1 1a0b02788d522f2137d0b66c749ffe6c96cceb94 SHA256 977fd980bb1d285963d8e27a87b7601ea84317faadfdb40989b258d1853db644
-EBUILD ppp-2.4.4-r24.ebuild 10801 RMD160 ae15a19590af5144da6d417323869f64f79cfdf6 SHA1 b966a4c33f868e7e7b5655a9a3dc7f2ac546cb41 SHA256 c5b36302221127ba5bc627b596c4294f4a34f126066ccc553df4edfad1dee556
EBUILD ppp-2.4.4-r25.ebuild 10942 RMD160 349a3dd365dd53934b49443e8ff9989178abbc13 SHA1 8228ce93552325e82128b773990f95481f2aadc4 SHA256 30107fd0bf98d0e348110d108f89746a862b032d7a9cd533bb86347542cb1a02
+EBUILD ppp-2.4.5-r1.ebuild 10047 RMD160 c9bb7a2404b75c51bdf486c3009d1545a0c69d15 SHA1 34c001fcc6613661e69216f401adf8810829ebb4 SHA256 0bd6eb53a5b6d4da6558cd615d1f95a61db24acf7c83fb04be16670114cce361
EBUILD ppp-2.4.5.ebuild 9949 RMD160 d77771ea4997051501cfab1981c2568c1c1c2425 SHA1 d18116bbb7cd6641dbc765f5436a05400dc83aad SHA256 0e6feb6292936d4963e7a04b8464265edb7b58388b254faa71dbe02e02e66979
-MISC ChangeLog 42642 RMD160 513129f3925c963ea26d8b53d648da8b87580cc7 SHA1 ce23d2458ca296c5ff05c00e5d388e6478967f6f SHA256 ece0e94a943c7db5fb4646f900146d4b2828e00579ba14657f50cf67adc7d10a
+MISC ChangeLog 42890 RMD160 4c14b11964fd53ff35b7024d9bed9bfdc5c229dc SHA1 5ff8413ea4bd767a789c217de90626b108adef68 SHA256 1fc0d759d33a4d697150aa90af86577cd973dfaa7462bd0c8a64bcc74a1104ee
MISC metadata.xml 1440 RMD160 4ef716500746f41ceb71abbbd68f0411bc24697b SHA1 065c4a01606a00985340f038ed22b8229d37774f SHA256 111e9045c4c9533769cb65da6a2fc657b60ecd81ddfc0d68655872401e4653d5
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkzw2EwACgkQ1564UogppBJKswCgugLR55c1eBOir3qn7AdDJqP7
+Zg0AoMdopqMaZ9YM9WchSmJkkpQp7dY2
+=J4CU
+-----END PGP SIGNATURE-----
diff --git a/net-dialup/ppp/ppp-2.4.4-r24.ebuild b/net-dialup/ppp/ppp-2.4.5-r1.ebuild
index b6d8e41b7c8e..20c8cbb01579 100644
--- a/net-dialup/ppp/ppp-2.4.4-r24.ebuild
+++ b/net-dialup/ppp/ppp-2.4.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 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-r24.ebuild,v 1.12 2010/01/06 19:13:50 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/ppp-2.4.5-r1.ebuild,v 1.1 2010/11/27 10:06:57 mrness Exp $
EAPI="2"
@@ -9,66 +9,45 @@ inherit eutils 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-20090816.tar.gz
+ mirror://gentoo/${P}-gentoo-20101127.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"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="activefilter atm dhcp eap-tls gtk ipv6 pam radius"
-DEPEND="activefilter? ( >=virtual/libpcap-0.9.4 )
+DEPEND="activefilter? ( virtual/libpcap )
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 )"
+ gtk? ( x11-libs/gtk+:2 )
+ eap-tls? ( net-misc/curl dev-libs/openssl )"
RDEPEND="${DEPEND}"
-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_prepare() {
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"
epatch "${WORKDIR}/patch/pppd-usepeerwins.patch"
epatch "${WORKDIR}/patch/connect-errors.patch"
+ epatch "${WORKDIR}/patch/Makefile.patch"
+ epatch "${WORKDIR}/patch/pppol2tpv3-2.6.35.patch"
+ epatch "${WORKDIR}/patch/pado-timeout.patch"
+ epatch "${WORKDIR}/patch/lcp-echo-adaptive.patch"
use eap-tls && {
- # see http://eaptls.spe.net/index.html for more info
+ # see http://www.nikhef.nl/~janjust/ppp 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"
+ epatch "${WORKDIR}/patch/eaptls-mppe-0.98-gentoo.patch"
}
use atm && {
@@ -96,9 +75,9 @@ src_prepare() {
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 \
+ einfo "Adding ppp-dhcp plugin files..."
+ mv "${WORKDIR}/dhcp" "${S}/pppd/plugins" \
+ && sed -i -e 's/\(SUBDIRS := .*rp-pppoe.*\)$/\1 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"
@@ -108,7 +87,7 @@ src_prepare() {
sed -i -e "s:/lib/pppd:/$(get_libdir)/pppd:" \
pppd/{pathnames.h,pppd.8}
- use radius && {
+ if use radius; then
#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
@@ -116,7 +95,10 @@ src_prepare() {
sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \
pppd/plugins/radius/{*.8,*.c,*.h} \
pppd/plugins/radius/etc/*
- }
+ else
+ einfo "Disabling radius"
+ sed -i -e '/+= radius/s:^:#:' pppd/plugins/Makefile.linux
+ fi
}
src_configure() {
@@ -140,23 +122,23 @@ src_compile() {
src_install() {
local i
for i in chat pppd pppdump pppstats ; do
- doman ${i}/${i}.8
- dosbin ${i}/${i} || die
+ doman ${i}/${i}.8 || die "man page for ${i} not build"
+ dosbin ${i}/${i} || die "${i} not build"
done
fperms u+s-w /usr/sbin/pppd
# Install pppd header files
pushd pppd >/dev/null
- emake INSTROOT="${D}" install-devel || die
+ emake INSTROOT="${D}" install-devel || die "emake install-devel failed"
popd >/dev/null
- dosbin pppd/plugins/rp-pppoe/pppoe-discovery || die
+ dosbin pppd/plugins/rp-pppoe/pppoe-discovery || die "pppoe-discovery not build"
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
+ newins etc.ppp/pap-secrets pap-secrets.example || die "pap-secrets.example not found"
+ newins etc.ppp/chap-secrets chap-secrets.example || die "chap-secrets.example not found"
insopts -m0644
doins etc.ppp/options
@@ -180,6 +162,8 @@ src_install() {
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"
+ doins pppd/plugins/pppol2tp/openl2tp.so || die "openl2tp.so not build"
+ doins pppd/plugins/pppol2tp/pppol2tp.so || die "pppol2tp.so not build"
if use atm; then
doins pppd/plugins/pppoatm/pppoatm.so || die "pppoatm.so not build"
fi
@@ -203,9 +187,6 @@ src_install() {
insinto /etc/modprobe.d
insopts -m0644
newins "${FILESDIR}/modules.ppp" ppp.conf
- if use mppe-mppc; then
- sed -i -e 's/ppp_mppe/ppp_mppe_mppc/' "${D}/etc/modprobe.d/ppp.conf"
- fi
dodoc PLUGINS README* SETUP Changes-2.3 FAQ
dodoc "${FILESDIR}/README.mpls"
@@ -243,16 +224,10 @@ pkg_postinst() {
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"
+ CONFIG_CHECK="${CONFIG_CHECK} ~PPP_DEFLATE ~PPP_BSDCOMP ~PPP_MPPE"
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
+ local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)"
CONFIG_CHECK="${CONFIG_CHECK} ~PPPOE ~PACKET"
local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional, needed by rp-pppoe plugin)"
local WARNING_PACKET="CONFIG_PACKET:\t missing AF_PACKET support (optional, used by rp-pppoe and dhcpc plugins)"