1 |
commit: bb78b76f97c8a13d4bd3f9fcb36f2a323ee1de2d |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 17 18:34:07 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 17 19:19:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb78b76f |
7 |
|
8 |
net-misc/sstp-client: migrate to glep 81 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781437 |
11 |
Closes: https://bugs.gentoo.org/717416 |
12 |
Closes: https://bugs.gentoo.org/696958 |
13 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
14 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
15 |
|
16 |
net-misc/sstp-client/sstp-client-1.0.12-r1.ebuild | 63 +++++++++++++++++++++++ |
17 |
1 file changed, 63 insertions(+) |
18 |
|
19 |
diff --git a/net-misc/sstp-client/sstp-client-1.0.12-r1.ebuild b/net-misc/sstp-client/sstp-client-1.0.12-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..9fb40250d36 |
22 |
--- /dev/null |
23 |
+++ b/net-misc/sstp-client/sstp-client-1.0.12-r1.ebuild |
24 |
@@ -0,0 +1,63 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit autotools linux-info |
31 |
+ |
32 |
+DESCRIPTION="A client implementation of Secure Socket Tunneling Protocol (SSTP)" |
33 |
+HOMEPAGE="http://sstp-client.sourceforge.net/" |
34 |
+SRC_URI="mirror://sourceforge/sstp-client/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2+-with-openssl-exception" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="amd64 ~arm ~arm64 x86" |
39 |
+IUSE="static" |
40 |
+ |
41 |
+DEPEND=" |
42 |
+ dev-libs/libevent:= |
43 |
+ dev-libs/openssl:0= |
44 |
+ net-dialup/ppp:= |
45 |
+" |
46 |
+RDEPEND=" |
47 |
+ ${DEPEND} |
48 |
+ acct-group/sstpc |
49 |
+ acct-user/sstpc |
50 |
+" |
51 |
+BDEPEND="virtual/pkgconfig" |
52 |
+ |
53 |
+CONFIG_CHECK="~NETFILTER_NETLINK" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}/${P}-remove-network-test.patch" |
57 |
+ "${FILESDIR}/${P}-fix-example.patch" |
58 |
+) |
59 |
+ |
60 |
+DOCS=( AUTHORS ChangeLog DEVELOPERS NEWS README TODO USING ) |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ local PPPD_VER="$(best_version net-dialup/ppp)" |
69 |
+ PPPD_VER=${PPPD_VER#*/*-} # reduce it to ${PV}-${PR} |
70 |
+ PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
71 |
+ |
72 |
+ local myeconfargs=( |
73 |
+ --enable-ppp-plugin |
74 |
+ --enable-group=sstpc |
75 |
+ --enable-user=sstpc |
76 |
+ --with-pppd-plugin-dir="/usr/$(get_libdir)/pppd/${PPPD_VER}" |
77 |
+ --with-runtime-dir="/run/sstpc" |
78 |
+ $(use_enable static) |
79 |
+ ) |
80 |
+ |
81 |
+ econf "${myeconfargs[@]}" |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ default |
86 |
+ find "${D}" -name '*.la' -delete || die |
87 |
+} |