1 |
commit: f9aae1c7721080d702b2e98621c58afaa95387e9 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 23 02:28:33 2018 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 23 02:29:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9aae1c7 |
7 |
|
8 |
net-dialup/openl2tp: remove old |
9 |
|
10 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
12 |
|
13 |
net-dialup/openl2tp/openl2tp-1.8.ebuild | 127 -------------------------------- |
14 |
1 file changed, 127 deletions(-) |
15 |
|
16 |
diff --git a/net-dialup/openl2tp/openl2tp-1.8.ebuild b/net-dialup/openl2tp/openl2tp-1.8.ebuild |
17 |
deleted file mode 100644 |
18 |
index 707cccebd5a..00000000000 |
19 |
--- a/net-dialup/openl2tp/openl2tp-1.8.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,127 +0,0 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit linux-info |
28 |
- |
29 |
-DESCRIPTION="Userspace tools for kernel L2TP implementation" |
30 |
-HOMEPAGE="http://www.openl2tp.org/" |
31 |
-SRC_URI="mirror://sourceforge/openl2tp/${P}.tar.gz" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="~amd64 ~x86" |
36 |
-IUSE="+client debug dmalloc doc +examples rpc server stats" |
37 |
- |
38 |
-REQUIRED_USE="|| ( client server )" |
39 |
- |
40 |
-CDEPEND=" |
41 |
- >=net-dialup/ppp-2.4.5 |
42 |
- >=net-libs/libtirpc-1.0.3 |
43 |
- sys-libs/readline:= |
44 |
- dmalloc? ( dev-libs/dmalloc ) |
45 |
-" |
46 |
-DEPEND="${CDEPEND} |
47 |
- >=net-libs/rpcsvc-proto-1.3.1-r1 |
48 |
- sys-devel/bison |
49 |
- sys-devel/flex |
50 |
-" |
51 |
-RDEPEND="${CDEPEND} |
52 |
- rpc? ( net-nds/rpcbind ) |
53 |
-" |
54 |
- |
55 |
-CONFIG_CHECK="~PPPOL2TP" |
56 |
- |
57 |
-PATCHES=( |
58 |
- "${FILESDIR}/${P}-werror.patch" |
59 |
- "${FILESDIR}/${P}-ldflags.patch" |
60 |
- "${FILESDIR}/${P}-pppd-2.patch" |
61 |
- "${FILESDIR}/${P}-man.patch" |
62 |
- "${FILESDIR}/${P}-l2tpconfig.patch" |
63 |
- "${FILESDIR}/${P}-parallelbuild.patch" |
64 |
- "${FILESDIR}/${P}-optionsfile.patch" |
65 |
- "${FILESDIR}/${P}-clientip_as_ipparam.patch" |
66 |
- "${FILESDIR}/${P}-setkey.patch" |
67 |
- "${FILESDIR}/${P}-unused-var.patch" |
68 |
- "${FILESDIR}/${P}-configure-Makefile.patch" |
69 |
- "${FILESDIR}/${P}-cflags.patch" |
70 |
- "${FILESDIR}/${P}-tirpc.patch" |
71 |
-) |
72 |
- |
73 |
-src_prepare() { |
74 |
- default |
75 |
- sed -i 's/CFLAGS.optimize/CFLAGS_optimize/g' Makefile */Makefile || die "Makefile sed failed" |
76 |
-} |
77 |
- |
78 |
-src_configure() { |
79 |
- declare -a myconf # not local, should be used at src_compile() |
80 |
- |
81 |
- use client || myconf+=( L2TP_FEATURE_LAC_SUPPORT=n |
82 |
- L2TP_FEATURE_LAIC_SUPPORT=n |
83 |
- L2TP_FEATURE_LAOC_SUPPORT=n ) |
84 |
- |
85 |
- use server || myconf+=( L2TP_FEATURE_LNS_SUPPORT=n |
86 |
- L2TP_FEATURE_LNIC_SUPPORT=n |
87 |
- L2TP_FEATURE_LNOC_SUPPORT=n ) |
88 |
- |
89 |
- use rpc || myconf+=( L2TP_FEATURE_RPC_MANAGEMENT=n ) |
90 |
- |
91 |
- use stats && myconf+=( L2TP_FEATURE_LOCAL_STAT_FILE=y ) |
92 |
- use debug && myconf+=( L2TP_DEBUG=y ) |
93 |
- use dmalloc && myconf+=( USE_DMALLOC=y ) |
94 |
- |
95 |
- # pppd plugin is only needed for pppd < 2.4.5 |
96 |
- unset PPPD_SUBDIR |
97 |
-} |
98 |
- |
99 |
-src_compile() { |
100 |
- emake ${myconf[@]} |
101 |
-} |
102 |
- |
103 |
-src_install() { |
104 |
- emake ${myconf[@]} DESTDIR="${D}" install |
105 |
- |
106 |
- if use examples; then |
107 |
- docinto event_socket |
108 |
- dodoc doc/{event_sock_example.c,README.event_sock} |
109 |
- docinto |
110 |
- dodoc -r "${FILESDIR}"/examples |
111 |
- fi |
112 |
- |
113 |
- if use doc; then |
114 |
- dodoc doc/*.txt |
115 |
- newdoc plugins/README README.plugins |
116 |
- dodoc -r ipsec |
117 |
- fi |
118 |
- |
119 |
- newinitd "${FILESDIR}"/openl2tpd.initd openl2tpd |
120 |
- # init.d script is quite different for RPC and non-RPC versions. |
121 |
- use rpc || sed -i s/userpc=\"yes\"/userpc=\"no\"/ "${D}/etc/init.d/openl2tpd" || die "sed failed" |
122 |
- newconfd "${FILESDIR}"/openl2tpd.confd openl2tpd |
123 |
-} |
124 |
- |
125 |
-pkg_postinst() { |
126 |
- if use rpc; then |
127 |
- ewarn |
128 |
- ewarn "RPC control does not provide any auth checks for control connection." |
129 |
- ewarn "Unless you need this you should disable it, for reference:" |
130 |
- ewarn "http://forums.openl2tp.org/viewtopic.php?f=4&t=41" |
131 |
- ewarn |
132 |
- ewarn "Therefore DO NOT USE RPC IN INSECURE ENVIRONMENTS!" |
133 |
- else |
134 |
- ewarn |
135 |
- ewarn "Without RPC support you won't be able to use l2tpconfig." |
136 |
- ewarn "Please read http://forums.openl2tp.org/viewtopic.php?f=4&t=41" |
137 |
- ewarn "for more information about the security risk before enabling." |
138 |
- ewarn |
139 |
- ewarn "If you are using numerical strings (e.g. login name containing only" |
140 |
- ewarn "digits) or special characters in password, please use double quotes" |
141 |
- ewarn "to enclose them." |
142 |
- fi |
143 |
- if use stats; then |
144 |
- ewarn |
145 |
- ewarn "To enable status files openl2tpd must be started with -S option." |
146 |
- ewarn "Upstream warns about runtime overhead with status files enabled." |
147 |
- fi |
148 |
-} |