Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/tcp-wrappers/
Date: Mon, 12 Jul 2021 02:49:51
Message-Id: 1626058099.d3f24e117981dfca2b86c97525b8c82566bcc022.ajak@gentoo
1 commit: d3f24e117981dfca2b86c97525b8c82566bcc022
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 12 02:45:15 2021 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 12 02:48:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3f24e11
7
8 sys-apps/tcp-wrappers: add 7.6.31
9
10 Bumps to Debian patchset 31, fixes musl compilation.
11
12 Closes: https://bugs.gentoo.org/587498
13 Acked-by: Sam James <sam <AT> gentoo.org>
14 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
15
16 sys-apps/tcp-wrappers/Manifest | 1 +
17 sys-apps/tcp-wrappers/tcp-wrappers-7.6.31.ebuild | 108 +++++++++++++++++++++++
18 2 files changed, 109 insertions(+)
19
20 diff --git a/sys-apps/tcp-wrappers/Manifest b/sys-apps/tcp-wrappers/Manifest
21 index 619d7082e0a..e1ffaf9b6f0 100644
22 --- a/sys-apps/tcp-wrappers/Manifest
23 +++ b/sys-apps/tcp-wrappers/Manifest
24 @@ -1,2 +1,3 @@
25 DIST tcp-wrappers_7.6.q-28.debian.tar.xz 36104 BLAKE2B 209fd9730785db8afc8ebec581f7132cfb4352f8807d2cea4715daf5c11aa08a92cf084ab1ff31222f5b265f032286ce2dcf49a238e9dc5616161c400fce4f08 SHA512 2c63201937737c19b4e5ca97dbc0ede9fc2d3b8fc344f8854a7d2afc0109ccb9ee52af94ba8a8498da910336a4f473825daa7a0cca26a0d93e1078e67abe16b0
26 +DIST tcp-wrappers_7.6.q-31.debian.tar.xz 36256 BLAKE2B 3ffd8b014c120f54b9231f375d3ec77a1894db8c48e56a57b52c5d796be42b78a1ddc35a45c816a05a1cbc603b88e3fe6131b4a562fb9d2169685031ecbf44d5 SHA512 de2bd7b081fca0f182def93795014332baf7b5edf339eaf81dff82772aea1dc866ccddccd5273e7dc49cf760953e164a66f1e5945cb54f2b8dab090c11712c33
27 DIST tcp_wrappers_7.6.tar.gz 99438 BLAKE2B 961d9858866990f0f5e8c6bb782f5f39a03b267a8957dcd89734aeefcc85ca32554e032c73314e0a88110f3bb8a0dbdd81f093392307623a996b0232773e1e67 SHA512 2d9d003791f8d00912a36ae00579e2b8dd7ad8a7bf8eae259659bcaf5365b150540ff6c93c91765872c76041579b7a02b6e3c64528fb7f8235680399ba1d9dac
28
29 diff --git a/sys-apps/tcp-wrappers/tcp-wrappers-7.6.31.ebuild b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.31.ebuild
30 new file mode 100644
31 index 00000000000..7ab6995f3d7
32 --- /dev/null
33 +++ b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.31.ebuild
34 @@ -0,0 +1,108 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit flag-o-matic toolchain-funcs multilib-minimal usr-ldscript
41 +
42 +MY_PV=$(ver_cut 1-2)
43 +DEB_PV=$(ver_cut 3)
44 +MY_P="${PN//-/_}_${MY_PV}"
45 +DESCRIPTION="TCP Wrappers"
46 +HOMEPAGE="http://ftp.porcupine.org/pub/security"
47 +SRC_URI="http://ftp.porcupine.org/pub/security/${MY_P}.tar.gz
48 + mirror://debian/pool/main/t/${PN}/${PN}_${MY_PV}.q-${DEB_PV}.debian.tar.xz"
49 +S="${WORKDIR}/${MY_P}"
50 +
51 +LICENSE="tcp_wrappers_license"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
54 +IUSE="ipv6 netgroups static-libs"
55 +
56 +RDEPEND="netgroups? ( net-libs/libnsl:= )"
57 +DEPEND="${RDEPEND}"
58 +
59 +PATCHES=(
60 + "${FILESDIR}/${PN}-7.6-redhat-bug11881.patch"
61 + "${FILESDIR}/${PN}-7.6.28-no-external-malloc.patch"
62 +)
63 +
64 +src_prepare() {
65 + # Apply Debian patchset except for the series file which just lists
66 + # the patches
67 + eapply $(sed -e 's:^:../debian/patches/:' ../debian/patches/series || die)
68 +
69 + default
70 +
71 + multilib_copy_sources
72 +}
73 +
74 +temake() {
75 + append-cppflags "-DHAVE_WEAKSYMS -DHAVE_STRERROR -DSYS_ERRLIST_DEFINED"
76 +
77 + if use ipv6; then
78 + append-cppflags "-DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len"
79 + fi
80 +
81 + local myemakeargs=(
82 + REAL_DAEMON_DIR="${EPREFIX}/usr/sbin"
83 + TLI= VSYSLOG= PARANOID= BUGS=
84 + AUTH="-DALWAYS_RFC931"
85 + AUX_OBJ="weak_symbols.o"
86 + DOT="-DAPPEND_DOT"
87 + HOSTNAME="-DALWAYS_HOSTNAME"
88 + NETGROUP=$(usex netgroups -DNETGROUPS "")
89 + STYLE="-DPROCESS_OPTIONS"
90 + LIBS=$(usex netgroups -lnsl "")
91 + LIB=$(usex static-libs libwrap.a "")
92 + AR="$(tc-getAR)" ARFLAGS=rc
93 + CC="$(tc-getCC)"
94 + RANLIB="$(tc-getRANLIB)"
95 + COPTS="${CFLAGS} ${CPPFLAGS}"
96 + LDFLAGS="${LDFLAGS}"
97 + "$@"
98 + )
99 +
100 + emake "${myemakeargs[@]}"
101 +}
102 +
103 +multilib_src_configure() {
104 + tc-export AR RANLIB
105 + temake config-check
106 +}
107 +
108 +multilib_src_compile() {
109 + # https://bugs.gentoo.org/728348
110 + unset STRINGS
111 + temake all
112 +}
113 +
114 +multilib_src_install() {
115 + into /usr
116 + use static-libs && dolib.a libwrap.a
117 + dolib.so shared/libwrap.so*
118 +
119 + insinto /usr/include
120 + doins tcpd.h
121 +
122 + if multilib_is_native_abi; then
123 + gen_usr_ldscript -a wrap
124 + dosbin tcpd tcpdchk tcpdmatch safe_finger try-from
125 + fi
126 +}
127 +
128 +multilib_src_install_all() {
129 + doman *.[358]
130 + dosym hosts_access.5 /usr/share/man/man5/hosts.allow.5
131 + dosym hosts_access.5 /usr/share/man/man5/hosts.deny.5
132 +
133 + insinto /etc
134 + newins "${FILESDIR}"/hosts.allow.example hosts.allow
135 +
136 + dodoc BLURB CHANGES DISCLAIMER README*
137 +}
138 +
139 +pkg_preinst() {
140 + # don't clobber people with our default example config
141 + [[ -e ${EROOT}/etc/hosts.allow ]] && cp -pP "${EROOT}"/etc/hosts.allow "${ED}"/etc/hosts.allow
142 +}