Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/sstp-client/, net-misc/sstp-client/files/
Date: Tue, 10 May 2022 19:36:38
Message-Id: 1652211360.a67752097b07e8857a1041b13194a1659dfc4d43.sam@gentoo
1 commit: a67752097b07e8857a1041b13194a1659dfc4d43
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 18:03:56 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 19:36:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6775209
7
8 net-misc/sstp-client: add 1.0.17
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/sstp-client/Manifest | 1 +
13 ...tp-client-1.0.17-fix-bashism-configure.ac.patch | 23 ++++++++
14 net-misc/sstp-client/sstp-client-1.0.17.ebuild | 65 ++++++++++++++++++++++
15 3 files changed, 89 insertions(+)
16
17 diff --git a/net-misc/sstp-client/Manifest b/net-misc/sstp-client/Manifest
18 index 5bbc71ccec93..a45ddcf16074 100644
19 --- a/net-misc/sstp-client/Manifest
20 +++ b/net-misc/sstp-client/Manifest
21 @@ -1 +1,2 @@
22 DIST sstp-client-1.0.12.tar.gz 468683 BLAKE2B 4bb97465ee29eb6dd816a69b45c53e58e9de2cd5d7b5c9e39ea4ebbb3c3de0c21b3d95317114ae8c93bc3be359300bd6a55fa0512540bf25405fb47f8fb4e736 SHA512 d29128e59977fa844b0f2b02580284bb4e909994e5616c4dfa150b7a9807d0f34219355abe8c315c60c5f2482e3255824ce7e05566dbea9a7f13a1739d46468f
23 +DIST sstp-client-1.0.17.tar.gz 482831 BLAKE2B d19c752b3f061401f89eb46bd52091e3ab0a3c931c6646a55c1ee0e6dd7e9c501fba14b7c870a2514cb72fb0fd1d8bc89538562d4d99b9d58a081e0917734f5d SHA512 eff18eb894b2c96d46315b5ac7530fe50e8dd6e6c29ea946cd0e7c05c56416e85088fc65650fb77c05e3a747cb0b4e3575af5457515d240161027910abae9775
24
25 diff --git a/net-misc/sstp-client/files/sstp-client-1.0.17-fix-bashism-configure.ac.patch b/net-misc/sstp-client/files/sstp-client-1.0.17-fix-bashism-configure.ac.patch
26 new file mode 100644
27 index 000000000000..a3a41fb206a9
28 --- /dev/null
29 +++ b/net-misc/sstp-client/files/sstp-client-1.0.17-fix-bashism-configure.ac.patch
30 @@ -0,0 +1,23 @@
31 +https://gitlab.com/eivnaes/sstp-client/-/merge_requests/2
32 +
33 +From 3cae209750549b17c547c3025859c0468cd5fcf6 Mon Sep 17 00:00:00 2001
34 +From: Sam James <sam@g.o>
35 +Date: Tue, 10 May 2022 18:04:20 +0000
36 +Subject: [PATCH] configure.ac: fix bashism
37 +
38 +configure scripts are expected to work with POSIX compliant shells providing
39 +/bin/sh so use = instead of == to work with both Bash and other shells.
40 +
41 +Signed-off-by: Sam James <sam@g.o>
42 +--- a/configure.ac
43 ++++ b/configure.ac
44 +@@ -129,7 +129,7 @@ PKG_CHECK_EXISTS([pppd],
45 + AM_CONDITIONAL(WITH_PPP_PLUGIN, test "${enable_ppp_plugin}" = "yes")
46 + AC_ARG_WITH([pppd-auth-notify-support],
47 + AS_HELP_STRING([--with-pppd-auth-notify-support], [is the auth-notifier supported in this pppd version]))
48 +-AS_IF([test "x$with_pppd_auth_notify_support" == "xyes" ],
49 ++AS_IF([test "x$with_pppd_auth_notify_support" = "xyes" ],
50 + [AC_DEFINE(USE_PPPD_AUTH_HOOK,1,[Define if pppd has support for client side authentication complete notification])
51 + PPPD_AUTH_NOTIFIER="yes"],
52 + [PPPD_AUTH_NOTIFIER="no"])
53 +GitLab
54
55 diff --git a/net-misc/sstp-client/sstp-client-1.0.17.ebuild b/net-misc/sstp-client/sstp-client-1.0.17.ebuild
56 new file mode 100644
57 index 000000000000..57f15cf30687
58 --- /dev/null
59 +++ b/net-misc/sstp-client/sstp-client-1.0.17.ebuild
60 @@ -0,0 +1,65 @@
61 +# Copyright 1999-2022 Gentoo Authors
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=8
65 +
66 +inherit autotools linux-info
67 +
68 +DESCRIPTION="A client implementation of Secure Socket Tunneling Protocol (SSTP)"
69 +HOMEPAGE="http://sstp-client.sourceforge.net/"
70 +SRC_URI="mirror://sourceforge/sstp-client/${P}.tar.gz"
71 +
72 +LICENSE="GPL-2+-with-openssl-exception"
73 +SLOT="0"
74 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
75 +IUSE="static"
76 +
77 +DEPEND="dev-libs/libevent:=
78 + dev-libs/openssl:=
79 + net-dialup/ppp:="
80 +RDEPEND="${DEPEND}
81 + acct-group/sstpc
82 + acct-user/sstpc"
83 +BDEPEND="virtual/pkgconfig"
84 +
85 +CONFIG_CHECK="~NETFILTER_NETLINK"
86 +
87 +PATCHES=(
88 + "${FILESDIR}/${PN}-1.0.12-remove-network-test.patch"
89 + "${FILESDIR}/${PN}-1.0.12-fix-example.patch"
90 +
91 + "${FILESDIR}/${PN}-1.0.17-fix-bashism-configure.ac.patch"
92 +)
93 +
94 +DOCS=( AUTHORS ChangeLog DEVELOPERS NEWS README TODO USING )
95 +
96 +src_prepare() {
97 + default
98 +
99 + eautoreconf
100 +}
101 +
102 +src_configure() {
103 + local PPPD_VER="$(best_version net-dialup/ppp)"
104 + # Reduce it to ${PV}-${PR}
105 + PPPD_VER=${PPPD_VER#*/*-}
106 + # Main version without beta/pre/patch/revision
107 + PPPD_VER=${PPPD_VER%%[_-]*}
108 +
109 + local myeconfargs=(
110 + --enable-ppp-plugin
111 + --enable-group=sstpc
112 + --enable-user=sstpc
113 + --with-pppd-plugin-dir="/usr/$(get_libdir)/pppd/${PPPD_VER}"
114 + --with-runtime-dir="/run/sstpc"
115 + $(use_enable static)
116 + )
117 +
118 + econf "${myeconfargs[@]}"
119 +}
120 +
121 +src_install() {
122 + default
123 +
124 + find "${ED}" -name '*.la' -delete || die
125 +}