1 |
commit: 5d65c3468abfff63034efda082dd10a632b563e8 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 22:14:52 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 22:36:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d65c346 |
7 |
|
8 |
net-proxy/dante: migrate to GLEP 81 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781461 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
net-proxy/dante/dante-1.4.1-r3.ebuild | 102 ++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 102 insertions(+) |
16 |
|
17 |
diff --git a/net-proxy/dante/dante-1.4.1-r3.ebuild b/net-proxy/dante/dante-1.4.1-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..3049bca8888 |
20 |
--- /dev/null |
21 |
+++ b/net-proxy/dante/dante-1.4.1-r3.ebuild |
22 |
@@ -0,0 +1,102 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit autotools systemd |
29 |
+ |
30 |
+DESCRIPTION="A free socks4,5 and msproxy implementation" |
31 |
+HOMEPAGE="https://www.inet.no/dante/" |
32 |
+SRC_URI="https://www.inet.no/dante/files/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86" |
37 |
+IUSE="debug kerberos pam selinux static-libs tcpd upnp" |
38 |
+ |
39 |
+CDEPEND=" |
40 |
+ kerberos? ( virtual/krb5 ) |
41 |
+ pam? ( sys-libs/pam ) |
42 |
+ tcpd? ( sys-apps/tcp-wrappers ) |
43 |
+ upnp? ( net-libs/miniupnpc:= ) |
44 |
+ userland_GNU? ( sys-apps/shadow ) |
45 |
+" |
46 |
+DEPEND=" |
47 |
+ ${CDEPEND} |
48 |
+ sys-devel/bison |
49 |
+ sys-devel/flex |
50 |
+" |
51 |
+RDEPEND=" |
52 |
+ ${CDEPEND} |
53 |
+ acct-user/sockd |
54 |
+ selinux? ( sec-policy/selinux-dante ) |
55 |
+" |
56 |
+ |
57 |
+DOCS="BUGS CREDITS NEWS README SUPPORT doc/README* doc/*.txt doc/SOCKS4.protocol" |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/${PN}-1.4.0-socksify.patch |
61 |
+ "${FILESDIR}"/${PN}-1.4.0-osdep-format-macro.patch |
62 |
+ "${FILESDIR}"/${PN}-1.4.0-cflags.patch |
63 |
+ "${FILESDIR}"/${PN}-1.4.0-HAVE_SENDBUF_IOCTL.patch |
64 |
+ "${FILESDIR}"/${PN}-1.4.1-sigpwr-siginfo.patch #517528 |
65 |
+ "${FILESDIR}"/${PN}-1.4.1-miniupnp14.patch #564680 |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ sed -i \ |
72 |
+ -e 's:/etc/socks\.conf:"${EPREFIX}"/etc/socks/socks.conf:' \ |
73 |
+ -e 's:/etc/sockd\.conf:"${EPREFIX}"/etc/socks/sockd.conf:' \ |
74 |
+ doc/{socksify.1,socks.conf.5,sockd.conf.5,sockd.8} \ |
75 |
+ || die |
76 |
+ |
77 |
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die |
78 |
+ |
79 |
+ eautoreconf |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ # hardcoded the libc name otherwise the scan on a amd64 multilib system |
84 |
+ # ends up finding /usr/lib32/libc.so.5. That cascades and causes the |
85 |
+ # preload/libdsocks to not be built. |
86 |
+ econf \ |
87 |
+ --with-socks-conf="${EPREFIX}"/etc/socks/socks.conf \ |
88 |
+ --with-sockd-conf="${EPREFIX}"/etc/socks/sockd.conf \ |
89 |
+ --enable-preload \ |
90 |
+ --enable-clientdl \ |
91 |
+ --enable-serverdl \ |
92 |
+ --enable-drt-fallback \ |
93 |
+ --with-libc=libc.so.6 \ |
94 |
+ $(use_enable debug) \ |
95 |
+ $(use_with kerberos gssapi) \ |
96 |
+ $(use_with pam) \ |
97 |
+ $(use_with upnp) \ |
98 |
+ $(use_enable static-libs static) \ |
99 |
+ $(use_with tcpd libwrap) |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ default |
104 |
+ |
105 |
+ # default configuration files |
106 |
+ insinto /etc/socks |
107 |
+ doins "${FILESDIR}"/sock?.conf |
108 |
+ pushd "${ED}"/etc/socks > /dev/null |
109 |
+ use pam && eapply -p0 "${FILESDIR}"/sockd.conf-with-pam.patch |
110 |
+ use tcpd && eapply -p0 "${FILESDIR}"/sockd.conf-with-libwrap.patch |
111 |
+ popd > /dev/null |
112 |
+ |
113 |
+ # init script |
114 |
+ newinitd "${FILESDIR}"/${PN}-1.3.2-sockd-init dante-sockd |
115 |
+ newconfd "${FILESDIR}"/dante-sockd-conf dante-sockd |
116 |
+ |
117 |
+ systemd_dounit "${FILESDIR}"/dante-sockd.service |
118 |
+ |
119 |
+ # example configuration files |
120 |
+ docinto examples |
121 |
+ dodoc example/*.conf |
122 |
+ |
123 |
+ find "${ED}" -name '*.la' -delete || die |
124 |
+} |