diff options
Diffstat (limited to 'net-dialup/pptpd')
-rw-r--r-- | net-dialup/pptpd/ChangeLog | 11 | ||||
-rw-r--r-- | net-dialup/pptpd/files/pptpd-init-r1 | 20 | ||||
-rw-r--r-- | net-dialup/pptpd/pptpd-1.3.4-r1.ebuild | 62 |
3 files changed, 91 insertions, 2 deletions
diff --git a/net-dialup/pptpd/ChangeLog b/net-dialup/pptpd/ChangeLog index 606264408791..11fb0babe358 100644 --- a/net-dialup/pptpd/ChangeLog +++ b/net-dialup/pptpd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-dialup/pptpd -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/pptpd/ChangeLog,v 1.38 2009/06/04 15:44:59 pva Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/pptpd/ChangeLog,v 1.39 2011/06/20 09:32:25 pva Exp $ + +*pptpd-1.3.4-r1 (20 Jun 2011) + + 20 Jun 2011; Peter Volkov <pva@gentoo.org> +pptpd-1.3.4-r1.ebuild, + +files/pptpd-init-r1: + Make init script openrc compatible, bug 371575 thank Laszlo Valko for report. + Update EAPI. 04 Jun 2009; Peter Volkov <pva@gentoo.org> pptpd-1.3.4.ebuild: Fixed build problem in case different automake version is installed. Small diff --git a/net-dialup/pptpd/files/pptpd-init-r1 b/net-dialup/pptpd/files/pptpd-init-r1 new file mode 100644 index 000000000000..36af3f25fff0 --- /dev/null +++ b/net-dialup/pptpd/files/pptpd-init-r1 @@ -0,0 +1,20 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting pptpd" + start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping pptpd" + start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid + result=$? + start-stop-daemon --stop --quiet --exec /usr/sbin/pptpctrl + result=$(( $result + $? )) + eend $result +} diff --git a/net-dialup/pptpd/pptpd-1.3.4-r1.ebuild b/net-dialup/pptpd/pptpd-1.3.4-r1.ebuild new file mode 100644 index 000000000000..09484735b768 --- /dev/null +++ b/net-dialup/pptpd/pptpd-1.3.4-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/pptpd/pptpd-1.3.4-r1.ebuild,v 1.1 2011/06/20 09:32:25 pva Exp $ + +EAPI="4" +inherit eutils autotools flag-o-matic + +DESCRIPTION="Linux Point-to-Point Tunnelling Protocol Server" +HOMEPAGE="http://poptop.sourceforge.net/" +SRC_URI="mirror://sourceforge/poptop/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="tcpd gre-extreme-debug" + +DEPEND="net-dialup/ppp + tcpd? ( sys-apps/tcp-wrappers )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-gentoo.patch" + epatch "${FILESDIR}/${P}-more-reodering-fixes.patch" + + #Match pptpd-logwtmp.so's version with pppd's version (#89895) + local PPPD_VER=`best_version net-dialup/ppp` + PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} + PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision + sed -i -e "s:\\(#define[ \\t]*VERSION[ \\t]*\\)\".*\":\\1\"${PPPD_VER}\":" "plugins/patchlevel.h" + sed -e "/^LDFLAGS/{s:=:+=:}" -i plugins/Makefile + + eautoreconf +} + +src_configure() { + use gre-extreme-debug && append-flags "-DLOG_DEBUG_GRE_ACCEPTING_PACKET" + local myconf + use tcpd && myconf="--with-libwrap" + econf --enable-bcrelay \ + ${myconf} +} + +src_compile() { + emake COPTS="${CFLAGS}" +} + +src_install () { + einstall + + insinto /etc + doins samples/pptpd.conf + + insinto /etc/ppp + doins samples/options.pptpd + + newinitd "${FILESDIR}/pptpd-init-r1" pptpd + newconfd "${FILESDIR}/pptpd-confd" pptpd + + dodoc AUTHORS ChangeLog NEWS README* TODO + docinto samples + dodoc samples/* +} |