1 |
commit: 43fa4f6756914b15687821e50a312009dd299ddc |
2 |
Author: Torsten Alex <tee <AT> itc-gmbh <DOT> de> |
3 |
AuthorDate: Sun Aug 6 02:35:12 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 13 13:26:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43fa4f67 |
7 |
|
8 |
net-dialup/xl2tpd: EAPI 6 bump and other improvements. |
9 |
|
10 |
This commit: |
11 |
* adds myself as well as the proxy-maint project to metadata.xml. |
12 |
* bumps xl2tpd to 1.3.9. |
13 |
* bumps the EAPI to version 6. |
14 |
* cleans up the ebuilds and improves its overall quality. |
15 |
|
16 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
17 |
Closes: https://github.com/gentoo/gentoo/pull/5310 |
18 |
|
19 |
net-dialup/xl2tpd/Manifest | 1 + |
20 |
net-dialup/xl2tpd/metadata.xml | 11 +++++-- |
21 |
net-dialup/xl2tpd/xl2tpd-1.3.9.ebuild | 55 +++++++++++++++++++++++++++++++++++ |
22 |
3 files changed, 65 insertions(+), 2 deletions(-) |
23 |
|
24 |
diff --git a/net-dialup/xl2tpd/Manifest b/net-dialup/xl2tpd/Manifest |
25 |
index fd7f44773ff..996b37595fe 100644 |
26 |
--- a/net-dialup/xl2tpd/Manifest |
27 |
+++ b/net-dialup/xl2tpd/Manifest |
28 |
@@ -1,2 +1,3 @@ |
29 |
DIST xl2tpd-1.3.1.tar.gz 551923 SHA256 147ea96a957628bc31bba6fd5f5ef5522366691f936ce4c0a0988d9876e3ba14 SHA512 2265a19eda1521fd4314ad1b28cc1bb781d2f0edb06ad619afbb364f5896e23db7e444ac10709c1ae9b9ac648e4354aea7af57bb5bc20b706b00e2a131fc29d6 WHIRLPOOL b5465605ae5c3bbf73227f11958a43c66191bb557447ce224de044358e738331cf8e64e783bb5527517683cbcc59d57df9cc17c990f652fe7aed1ab2cfd7f9b2 |
30 |
DIST xl2tpd-1.3.6.tar.gz 553981 SHA256 49b069aa8d873e1d8f615ccc4212351e427bf681ba453fdd211256a8345bb7fb SHA512 868c65660e6a45fb8dc22b95542e9d6ca0dc8e5033cc9df04171a651ef273bc5d711a85f61d4a971d714089f7a10ee67460d8ab9f3c007fcffe0e11e81ae0bfd WHIRLPOOL 92bf661e0ae95bcf80cb8b8c5c9c8648d3aa5375a9dc598f0f4fa3be3bce2bc9a36a60eabf44da3dad24fb3f2b03e30b960d73e6a16c51c8ea25397639766328 |
31 |
+DIST xl2tpd-1.3.9.tar.gz 510538 SHA256 62f683ab4cda2941261e37828f2939b5a2e85b437e9a3cd86bbd660c26e04a1e SHA512 858e342e3f5b9c460c8fd041cb2873c79dbb9fbef1e5caf8c367a6c74ca175c2a020a4b152757892c24950eebf701324c0ba682eafd23cd370d36da7118cb3d9 WHIRLPOOL 186ed1f8729eacbf6aa35ac0af97fdf1124ff85cebd119ba0d7f6d303fbfa3292fb7c247c3308743fd2785de0ebaa8fd7adf7801b6f4db8102abf9211f84732a |
32 |
|
33 |
diff --git a/net-dialup/xl2tpd/metadata.xml b/net-dialup/xl2tpd/metadata.xml |
34 |
index 555f2c792d7..8066f7a44b9 100644 |
35 |
--- a/net-dialup/xl2tpd/metadata.xml |
36 |
+++ b/net-dialup/xl2tpd/metadata.xml |
37 |
@@ -1,8 +1,15 @@ |
38 |
<?xml version="1.0" encoding="UTF-8"?> |
39 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
40 |
<pkgmetadata> |
41 |
- <!-- maintainer-needed --> |
42 |
- <longdescription>The Layer 2 Tunneling Protocol (L2TP) daemon mantained by Xelerance Corporation.</longdescription> |
43 |
+ <maintainer type="person"> |
44 |
+ <email>tee@××××××××.de</email> |
45 |
+ <name>Torsten Alex</name> |
46 |
+ </maintainer> |
47 |
+ <maintainer type="project"> |
48 |
+ <email>proxy-maint@g.o</email> |
49 |
+ <name>Gentoo Proxy Maintainers Project</name> |
50 |
+ </maintainer> |
51 |
+ <longdescription>xl2tpd is a fork of l2tpd Layer 2 Tunneling Protocol (L2TP) daemon that can be used to transfer frames of OSI layer 2 protocols through an IP tunnel. While it provides authentication via CHAP or PAP it does not provide encryption itself and should therefore be externally secured (via IPSEC).</longdescription> |
52 |
<use> |
53 |
<flag name="dnsretry">Patch for host lookup retries, activated by redial feature</flag> |
54 |
<flag name="kernel">Enable kernel interface for PPPoL2TP</flag> |
55 |
|
56 |
diff --git a/net-dialup/xl2tpd/xl2tpd-1.3.9.ebuild b/net-dialup/xl2tpd/xl2tpd-1.3.9.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..e5b9615f9ca |
59 |
--- /dev/null |
60 |
+++ b/net-dialup/xl2tpd/xl2tpd-1.3.9.ebuild |
61 |
@@ -0,0 +1,55 @@ |
62 |
+# Copyright 1999-2017 Gentoo Foundation |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=6 |
66 |
+ |
67 |
+inherit systemd toolchain-funcs |
68 |
+ |
69 |
+DESCRIPTION="A modern version of the Layer 2 Tunneling Protocol (L2TP) daemon" |
70 |
+HOMEPAGE="http://www.xelerance.com/services/software/xl2tpd/" |
71 |
+SRC_URI="https://github.com/xelerance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="GPL-2" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86" |
76 |
+IUSE="dnsretry" |
77 |
+ |
78 |
+DEPEND=" |
79 |
+ net-libs/libpcap |
80 |
+ >sys-kernel/linux-headers-2.6" |
81 |
+ |
82 |
+RDEPEND=" |
83 |
+ ${DEPEND} |
84 |
+ net-dialup/ppp" |
85 |
+ |
86 |
+DOCS=( CREDITS README.xl2tpd BUGS CHANGES TODO doc/README.patents) |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ # The below patch is questionable. Why wasn't it submitted upstream? If it |
91 |
+ # ever breaks, it will just be removed. -darkside 20120914 |
92 |
+ # Patch has been discussed with upstream and is marked as feature by now: |
93 |
+ # https://github.com/xelerance/xl2tpd/issues/134 // -- tenX 2017-08-06 |
94 |
+ use dnsretry && eapply -p0 "${FILESDIR}/${PN}-dnsretry.patch" |
95 |
+} |
96 |
+ |
97 |
+src_compile() { |
98 |
+ tc-export CC |
99 |
+ emake OSFLAGS="-DLINUX" |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ emake PREFIX=/usr DESTDIR="${D}" install |
104 |
+ |
105 |
+ insinto /etc/xl2tpd |
106 |
+ newins doc/l2tpd.conf.sample xl2tpd.conf |
107 |
+ newins doc/l2tp-secrets.sample l2tp-secrets |
108 |
+ fperms 0600 /etc/xl2tpd/l2tp-secrets |
109 |
+ |
110 |
+ newinitd "${FILESDIR}"/xl2tpd-init-r1 xl2tpd |
111 |
+ |
112 |
+ systemd_dounit "${FILESDIR}"/xl2tpd.service |
113 |
+ systemd_dotmpfilesd "${FILESDIR}"/xl2tpd.conf |
114 |
+ |
115 |
+ einstalldocs |
116 |
+} |