diff options
author | Alin Năstac <mrness@gentoo.org> | 2005-03-07 23:16:50 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2005-03-07 23:16:50 +0000 |
commit | 166b89dbfbb525f92f503cbcc58afc41ac93e51f (patch) | |
tree | 60a5864a8ca5fedb2c3e653129882f9ea748dc85 /net-dialup/rp-pppoe | |
parent | Security bump: Fix #74070, #77666, #78362, #78363, #77923, #81106, #82141. (diff) | |
download | gentoo-2-166b89dbfbb525f92f503cbcc58afc41ac93e51f.tar.gz gentoo-2-166b89dbfbb525f92f503cbcc58afc41ac93e51f.tar.bz2 gentoo-2-166b89dbfbb525f92f503cbcc58afc41ac93e51f.zip |
support special chars in username (#82410)
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-dialup/rp-pppoe')
-rw-r--r-- | net-dialup/rp-pppoe/ChangeLog | 9 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/Manifest | 12 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r8 | 2 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/files/rp-pppoe-3.5-username-charset.patch | 59 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/rp-pppoe-3.5-r8.ebuild | 82 |
5 files changed, 153 insertions, 11 deletions
diff --git a/net-dialup/rp-pppoe/ChangeLog b/net-dialup/rp-pppoe/ChangeLog index 5e67af3dd274..cba738e880bc 100644 --- a/net-dialup/rp-pppoe/ChangeLog +++ b/net-dialup/rp-pppoe/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-dialup/rp-pppoe # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/rp-pppoe/ChangeLog,v 1.51 2005/03/04 06:38:11 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/rp-pppoe/ChangeLog,v 1.52 2005/03/07 23:16:50 mrness Exp $ + +*rp-pppoe-3.5-r8 (08 Mar 2005) + + 08 Mar 2005; Alin Nastac <mrness@gentoo.org> + +files/rp-pppoe-3.5-username-charset.patch, +rp-pppoe-3.5-r8.ebuild: + Add support for special chars in username (#82410), thanks to Pierluigi + Petrelli <pierluigipetrelli@tin.it>. 04 Mar 2005; Alin Nastac <mrness@gentoo.org> -files/rp-pppoe-3.5-pidfile.patch, -rp-pppoe-3.5-r2.ebuild, diff --git a/net-dialup/rp-pppoe/Manifest b/net-dialup/rp-pppoe/Manifest index 76a20649fc57..cda526e0c896 100644 --- a/net-dialup/rp-pppoe/Manifest +++ b/net-dialup/rp-pppoe/Manifest @@ -1,17 +1,9 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 ef0ca141f79586d79fd6c8937a794033 rp-pppoe-3.5-r7.ebuild 2416 +MD5 ef0ca141f79586d79fd6c8937a794033 rp-pppoe-3.5-r8.ebuild 2416 MD5 db1eafda46ac95a70c89e0c68a5f1b4d ChangeLog 7266 MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163 MD5 3ec97394e888b357e2c6020b3ab0155c files/rp-pppoe-3.5-dsa-557.patch 5581 MD5 4e9fa8d65d286e5e37e953e7c822c70e files/rp-pppoe-3.5-gentoo-netscripts.patch 5180 MD5 d455684124113e2349a9c674b55b493e files/digest-rp-pppoe-3.5-r7 125 +MD5 d455684124113e2349a9c674b55b493e files/digest-rp-pppoe-3.5-r8 125 MD5 966f79051cec3049cc3abb79ca6d3ab1 files/rp-pppoe.rc 498 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.6 (GNU/Linux) - -iD8DBQFCKAJejiC39V7gKu0RAoRkAKCBVq4diHvkaAQeV0SfERubAI46pQCeIpqC -VEfUR+NAwCXKY18xEKw7HVY= -=zMF5 ------END PGP SIGNATURE----- diff --git a/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r8 b/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r8 new file mode 100644 index 000000000000..e67ec4d3fe8f --- /dev/null +++ b/net-dialup/rp-pppoe/files/digest-rp-pppoe-3.5-r8 @@ -0,0 +1,2 @@ +MD5 97972f8f8f6a3ab9b7070333a6a29c4b rp-pppoe-3.5.tar.gz 189321 +MD5 848f6c3cafeb6074ffeb293c3af79b7c ppp-2.4.3.tar.gz 688092 diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.5-username-charset.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.5-username-charset.patch new file mode 100644 index 000000000000..931bc38eb1ba --- /dev/null +++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.5-username-charset.patch @@ -0,0 +1,59 @@ +diff -Naur rp-pppoe-3.5.orig/scripts/adsl-setup.in rp-pppoe-3.5/scripts/adsl-setup.in +--- rp-pppoe-3.5.orig/scripts/adsl-setup.in 2002-07-08 17:38:24.000000000 +0300 ++++ rp-pppoe-3.5/scripts/adsl-setup.in 2005-03-08 01:06:46.248252496 +0200 +@@ -86,12 +86,16 @@ + $ECHO "USER NAME" + $ECHO "" + $ECHO -n ">>> Enter your PPPoE user name (default $USER): " +- read U ++ read Uu ++ ++ U=`echo $Uu | sed -e "s/&/\\\\\&/g"` ; ++ + + if [ "$U" = "" ] ; then + U="$USER" + fi + ++ + # Under Linux, "fix" the default interface if eth1 is not available + if test `uname -s` = "Linux" ; then + $IFCONFIG $ETH > /dev/null 2>&1 || ETH=eth0 +@@ -221,7 +225,7 @@ + $ECHO "** Summary of what you entered **" + $ECHO "" + $ECHO "Ethernet Interface: $E" +- $ECHO "User name: $U" ++ $ECHO "User name: $Uu" + if [ "$D" = "no" ] ; then + $ECHO "Activate-on-demand: No" + else +@@ -288,7 +292,12 @@ + fi + + # Some #$(*& ISP's use a slash in the user name... +-sed -e "s&^USER=.*&USER='$U'&" \ ++for SEP in ':' ';' '/' '!' '|' '_' '-' '@' ; do ++ if [ "$U" = `echo $U | sed "sI${SEP}II"` ]; then ++ break; ++ fi ++done ++sed -e "s${SEP}^USER=.*${SEP}USER='$U'${SEP}"\ + -e "s&^ETH=.*Ð='$E'&" \ + -e "s&^PIDFILE=.*&PIDFILE=\"$VARRUN/\$CF_BASE-adsl.pid\"&" \ + -e "s/^FIREWALL=.*/FIREWALL=$FIREWALL/" \ +@@ -337,10 +346,10 @@ + cp /dev/null /etc/ppp/chap-secrets-bak + fi + +-egrep -v "^$U|^\"$U\"" /etc/ppp/pap-secrets-bak > /etc/ppp/pap-secrets +-$ECHO "\"$U\" * \"$PWD1\"" >> /etc/ppp/pap-secrets +-egrep -v "^$U|^\"$U\"" /etc/ppp/chap-secrets-bak > /etc/ppp/chap-secrets +-$ECHO "\"$U\" * \"$PWD1\"" >> /etc/ppp/chap-secrets ++egrep -v "^$Uu|^\"$Uu\"" /etc/ppp/pap-secrets-bak > /etc/ppp/pap-secrets ++$ECHO "\"$Uu\" * \"$PWD1\"" >> /etc/ppp/pap-secrets ++egrep -v "^$Uu|^\"$Uu\"" /etc/ppp/chap-secrets-bak > /etc/ppp/chap-secrets ++$ECHO "\"$Uu\" * \"$PWD1\"" >> /etc/ppp/chap-secrets + + $ECHO "" + $ECHO "" diff --git a/net-dialup/rp-pppoe/rp-pppoe-3.5-r8.ebuild b/net-dialup/rp-pppoe/rp-pppoe-3.5-r8.ebuild new file mode 100644 index 000000000000..01c9a6911315 --- /dev/null +++ b/net-dialup/rp-pppoe/rp-pppoe-3.5-r8.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/rp-pppoe/rp-pppoe-3.5-r8.ebuild,v 1.1 2005/03/07 23:16:50 mrness Exp $ + +inherit eutils + +DESCRIPTION="A user-mode PPPoE client and server suite for Linux" +HOMEPAGE="http://www.roaringpenguin.com/" +SRC_URI="http://www.roaringpenguin.com/penguin/pppoe/${P}.tar.gz + ftp://ftp.samba.org/pub/ppp/ppp-2.4.3.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~sparc ~x86" +IUSE="X tcltk" + +DEPEND="net-dialup/ppp + X? ( tcltk? ( + virtual/x11 + dev-lang/tcl + dev-lang/tk ) )" + +src_unpack() { + unpack ${A} || die "failed to unpack" + cd ${S} || die "${S} not found" + + # Patch to enable integration of adsl-start and adsl-stop with + # baselayout-1.11.x so that the pidfile can be found reliably per interface + #These 2 patches should be merged some day + epatch ${FILESDIR}/${P}-gentoo-netscripts.patch + + epatch ${FILESDIR}/${P}-dsa-557.patch #66296 + + epatch ${FILESDIR}/${P}-username-charset.patch #82410 + + #Avoid "setXid, dynamically linked and using lazy bindings" QA notice + sed -i -e 's:\(@CC@\) \(-o pppoe-wrapper wrapper.o\):\1 -Wl,-z,now \2:' gui/Makefile.in + + # sanbdox violation workaround + sed -i -e 's/modprobe/#modprobe/' src/configure || die "sed failed" +} + +src_compile() { + addpredict /dev/ppp + + cd ${S}/src + econf --enable-plugin=../../ppp-2.4.3 || die "econf failed" + emake || die "emake failed" + + if use X && use tcltk; then + make -C ${S}/gui || die "gui make failed" + fi +} + +src_install () { + cd ${S}/src + make RPM_INSTALL_ROOT=${D} docdir=/usr/share/doc/${PF} install \ + || die "install failed" + + #Don't use compiled rp-pppoe plugin; use it from the current version of pppd + rm ${D}/etc/ppp/plugins/rp-pppoe.so + local PPPD_VER=`best_version net-dialup/ppp` + PPPD_VER=${PPPD_VER:15} #reduce it to ${PV}-${PR} + PPPD_VER=${PPPD_VER/-*/} #reduce it to ${PV} + if [ -n "${PPPD_VER}" ] && [ -f /usr/lib/pppd/${PPPD_VER}/rp-pppoe.so ] ; then + dosym /usr/lib/pppd/${PPPD_VER}/rp-pppoe.so /etc/ppp/plugins/rp-pppoe.so + fi + + prepalldocs + + if use X && use tcltk; then + make -C ${S}/gui install RPM_INSTALL_ROOT=${D} \ + datadir=/usr/share/doc/${PF}/ || die "gui install failed" + dosym /usr/share/doc/${PF}/tkpppoe /usr/share/tkpppoe + fi + + exeinto /etc/init.d ; newexe ${FILESDIR}/rp-pppoe.rc rp-pppoe +} + +pkg_postinst() { + einfo "Use adsl-setup to configure your dialup connection" +} |