1 |
commit: 25e5fe7861d9eb70648fd3e12c4a0eee9a5ae91b |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 21:52:01 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 21:59:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25e5fe78 |
7 |
|
8 |
net-dialup/rp-l2tp: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
net-dialup/rp-l2tp/files/rp-l2tpd-init | 4 ++-- |
15 |
net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild | 36 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 38 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-dialup/rp-l2tp/files/rp-l2tpd-init b/net-dialup/rp-l2tp/files/rp-l2tpd-init |
19 |
index a541255..b8029c6 100644 |
20 |
--- a/net-dialup/rp-l2tp/files/rp-l2tpd-init |
21 |
+++ b/net-dialup/rp-l2tp/files/rp-l2tpd-init |
22 |
@@ -1,5 +1,5 @@ |
23 |
-#!/sbin/runscript |
24 |
-# Copyright 1999-2004 Gentoo Foundation |
25 |
+#!/sbin/openrc-run |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
# $Id$ |
29 |
|
30 |
|
31 |
diff --git a/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild b/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..315cdd8 |
34 |
--- /dev/null |
35 |
+++ b/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild |
36 |
@@ -0,0 +1,36 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI=5 |
42 |
+ |
43 |
+inherit eutils toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="User-space implementation of L2TP for Linux and other UNIX systems" |
46 |
+HOMEPAGE="http://sourceforge.net/projects/rp-l2tp/" |
47 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+KEYWORDS="amd64 ~ppc x86" |
51 |
+SLOT="0" |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ tc-export AR CC RANLIB |
55 |
+ epatch \ |
56 |
+ "${FILESDIR}/${P}-gentoo.patch" \ |
57 |
+ "${FILESDIR}/${P}-flags.patch" \ |
58 |
+ "${FILESDIR}/${P}-build.patch" |
59 |
+ epatch_user |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ emake RPM_INSTALL_ROOT="${D}" install |
64 |
+ |
65 |
+ dodoc README |
66 |
+ newdoc l2tp.conf rp-l2tpd.conf |
67 |
+ docinto libevent |
68 |
+ dodoc libevent/Doc/* |
69 |
+ docompress -x "/usr/share/doc/${PF}/libevent" |
70 |
+ |
71 |
+ newinitd "${FILESDIR}/rp-l2tpd-init" rp-l2tpd |
72 |
+} |