net-dialup/rp-l2tp: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Thu, 28 Apr 2016 21:52:01 +0000 (16:52 -0500)
committerAustin English <wizardedit@gentoo.org>
Thu, 28 Apr 2016 21:59:32 +0000 (16:59 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-dialup/rp-l2tp/files/rp-l2tpd-init
net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild [new file with mode: 0644]

index a541255f5902e2b186bdb4347ad7ddcd0c3a1644..b8029c6d08c07209253ecb78b1e84e8cbc748439 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
diff --git a/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild b/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild
new file mode 100644 (file)
index 0000000..315cdd8
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="User-space implementation of L2TP for Linux and other UNIX systems"
+HOMEPAGE="http://sourceforge.net/projects/rp-l2tp/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc x86"
+SLOT="0"
+
+src_prepare() {
+       tc-export AR CC RANLIB
+       epatch \
+               "${FILESDIR}/${P}-gentoo.patch" \
+               "${FILESDIR}/${P}-flags.patch" \
+               "${FILESDIR}/${P}-build.patch"
+       epatch_user
+}
+
+src_install() {
+       emake RPM_INSTALL_ROOT="${D}" install
+
+       dodoc README
+       newdoc l2tp.conf rp-l2tpd.conf
+       docinto libevent
+       dodoc libevent/Doc/*
+       docompress -x "/usr/share/doc/${PF}/libevent"
+
+       newinitd "${FILESDIR}/rp-l2tpd-init" rp-l2tpd
+}