diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-05-30 21:13:21 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-05-30 21:13:21 +0000 |
commit | 9ecb59fb6d6c9e32441ff8796d32d2252d853b6a (patch) | |
tree | 475af74bbfa09c598d6cba481d23bd4ad7154fc7 /net-dialup | |
parent | Version bump, closing bug #116045, security bug #134010, bug #134505 and bug ... (diff) | |
download | historical-9ecb59fb6d6c9e32441ff8796d32d2252d853b6a.tar.gz historical-9ecb59fb6d6c9e32441ff8796d32d2252d853b6a.tar.bz2 historical-9ecb59fb6d6c9e32441ff8796d32d2252d853b6a.zip |
Interblock l2tpd with xl2tpd. Install only basic configuration files and change init script to check the existence of the l2tpd.conf file (#134029).
Package-Manager: portage-2.0.54-r2
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/l2tpd/ChangeLog | 7 | ||||
-rw-r--r-- | net-dialup/l2tpd/Manifest | 14 | ||||
-rw-r--r-- | net-dialup/l2tpd/files/l2tpd-init | 16 | ||||
-rw-r--r-- | net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild | 13 |
4 files changed, 35 insertions, 15 deletions
diff --git a/net-dialup/l2tpd/ChangeLog b/net-dialup/l2tpd/ChangeLog index f711fac0cb73..499dbc226059 100644 --- a/net-dialup/l2tpd/ChangeLog +++ b/net-dialup/l2tpd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dialup/l2tpd # Copyright 2003-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/l2tpd/ChangeLog,v 1.15 2006/03/12 16:07:36 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/l2tpd/ChangeLog,v 1.16 2006/05/30 21:13:21 mrness Exp $ + + 30 May 2006; Alin Nastac <mrness@gentoo.org> files/l2tpd-init, + l2tpd-0.70_pre20031121.ebuild: + Interblock l2tpd with xl2tpd. Install only basic configuration files and + change init script to check the existence of the l2tpd.conf file (#134029). 12 Mar 2006; Alin Nastac <mrness@gentoo.org> -files/l2tpd-0.69-can-2004-0649.patch, -l2tpd-0.69-r2.ebuild, diff --git a/net-dialup/l2tpd/Manifest b/net-dialup/l2tpd/Manifest index 5c6172edb2b1..b53c886a25df 100644 --- a/net-dialup/l2tpd/Manifest +++ b/net-dialup/l2tpd/Manifest @@ -1,15 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 ec8b98d0c98fdd450246cf83fb5060d5 ChangeLog 2068 +MD5 83953908bf09487065698fe8df2aaff5 ChangeLog 2320 MD5 032a62f61bd560e76f0130861b79be73 files/digest-l2tpd-0.70_pre20031121 155 -MD5 acfec4f77489a740550c83d5d275477d files/l2tpd-init 473 -MD5 52d5f05008e95db13eb5825c471451e8 l2tpd-0.70_pre20031121.ebuild 1110 +MD5 650e9deed5657b0b1e9722c8316fd70d files/l2tpd-init 718 +MD5 095f265d892e1fe4bce2cfb3e8ceda2d l2tpd-0.70_pre20031121.ebuild 1164 MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.1 (GNU/Linux) +Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFEFEdZjG8pv1lIUX4RAugZAKCB2xfFx3J40AFRL/wHIYCivxwGOACgocXn -NVqA7+TP8Ee+mzyTGZscNng= -=uLQL +iD8DBQFEfLWGjG8pv1lIUX4RAqrkAKDSMR8O716kYLs1/SucyMSeUvRXjgCgvPDm +QCGafl6GDapU4xSrKvO7pG0= +=pJuq -----END PGP SIGNATURE----- diff --git a/net-dialup/l2tpd/files/l2tpd-init b/net-dialup/l2tpd/files/l2tpd-init index 72e88f7952fe..334ec7a9dd99 100644 --- a/net-dialup/l2tpd/files/l2tpd-init +++ b/net-dialup/l2tpd/files/l2tpd-init @@ -1,13 +1,25 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/l2tpd/files/l2tpd-init,v 1.3 2004/08/14 13:40:17 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/l2tpd/files/l2tpd-init,v 1.4 2006/05/30 21:13:21 mrness Exp $ depend() { need net } +checkconfig() { + if [[ ! -f /etc/l2tpd/l2tpd.conf ]] ; then + eerror "Missing /etc/l2tpd/l2tpd.conf configuration file!" + eerror "Example configuration file could be found in doc directory." + return 1 + fi + + return 0 +} + start() { + checkconfig || return 1 + ebegin "Starting l2tpd" start-stop-daemon --start --quiet --exec /usr/sbin/l2tpd eend $? diff --git a/net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild b/net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild index 3a4172b515cd..b06883cc32f5 100644 --- a/net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild +++ b/net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild,v 1.5 2006/03/12 16:07:36 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild,v 1.6 2006/05/30 21:13:21 mrness Exp $ inherit eutils @@ -16,6 +16,9 @@ KEYWORDS="x86 ~ppc" SLOT="0" IUSE="" +RDEPEND="!net-dialup/xl2tpd + net-dialup/ppp" + S="${WORKDIR}/${P/_/-}.orig" src_unpack() { @@ -32,12 +35,12 @@ src_install() { doman doc/*.[85] doman *.[85] - dodoc BUGS CHANGELOG LICENSE CREDITS README TODO \ + dodoc BUGS CHANGELOG CREDITS README TODO \ doc/rfc2661.txt doc/*.sample - insinto /etc/l2tpd - newins doc/l2tp-secrets.sample l2tp-secrets - newins doc/l2tpd.conf.sample l2tpd.conf + dodir /etc/l2tpd + head -n 2 doc/l2tp-secrets.sample > "${D}/etc/l2tpd/l2tp-secrets" + fperms 0600 /etc/l2tpd/l2tp-secrets newinitd "${FILESDIR}/l2tpd-init" l2tpd } |