Gentoo Archives: gentoo-commits

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