1 |
commit: 2198a5527a90c8c7c9a48d62a4f05c297792a21b |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 17 23:36:10 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 17 23:37:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2198a552 |
7 |
|
8 |
sys-apps/tcp-wrappers: bump to v7.6-28 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
sys-apps/tcp-wrappers/Manifest | 1 + |
14 |
sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild | 93 ++++++++++++++++++++++++ |
15 |
2 files changed, 94 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/tcp-wrappers/Manifest b/sys-apps/tcp-wrappers/Manifest |
18 |
index 6c115cdc4ac..d379adb218f 100644 |
19 |
--- a/sys-apps/tcp-wrappers/Manifest |
20 |
+++ b/sys-apps/tcp-wrappers/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST tcp-wrappers_7.6.q-22.debian.tar.gz 41730 BLAKE2B 2e507269b14e5cf3e1a599b4cdae40c2900b098a1e40fc1b74e6b5565183fc71e25306e8dd0863fb16e6e52a6c471aeccb73c0b7c42d6f3f98aa9f95274583fb SHA512 cee45f265c34ec1c4e9e81d54be636dcd9702964f9cf5bb076f72d6772d2dbc638d2ef366560b51c24a216724807826bb3b7bf9d5d0f5c0923b71de7d0b002a8 |
23 |
+DIST tcp-wrappers_7.6.q-28.debian.tar.xz 36104 BLAKE2B 209fd9730785db8afc8ebec581f7132cfb4352f8807d2cea4715daf5c11aa08a92cf084ab1ff31222f5b265f032286ce2dcf49a238e9dc5616161c400fce4f08 SHA512 2c63201937737c19b4e5ca97dbc0ede9fc2d3b8fc344f8854a7d2afc0109ccb9ee52af94ba8a8498da910336a4f473825daa7a0cca26a0d93e1078e67abe16b0 |
24 |
DIST tcp_wrappers_7.6.tar.gz 99438 BLAKE2B 961d9858866990f0f5e8c6bb782f5f39a03b267a8957dcd89734aeefcc85ca32554e032c73314e0a88110f3bb8a0dbdd81f093392307623a996b0232773e1e67 SHA512 2d9d003791f8d00912a36ae00579e2b8dd7ad8a7bf8eae259659bcaf5365b150540ff6c93c91765872c76041579b7a02b6e3c64528fb7f8235680399ba1d9dac |
25 |
|
26 |
diff --git a/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..00e58c8c433 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild |
31 |
@@ -0,0 +1,93 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+ |
37 |
+inherit toolchain-funcs flag-o-matic multilib-minimal usr-ldscript |
38 |
+ |
39 |
+MY_PV=$(ver_cut 1-2) |
40 |
+DEB_PV=$(ver_cut 3) |
41 |
+MY_P="${PN//-/_}_${MY_PV}" |
42 |
+DESCRIPTION="TCP Wrappers" |
43 |
+HOMEPAGE="http://ftp.porcupine.org/pub/security" |
44 |
+SRC_URI="http://ftp.porcupine.org/pub/security/${MY_P}.tar.gz |
45 |
+ mirror://debian/pool/main/t/${PN}/${PN}_${MY_PV}.q-${DEB_PV}.debian.tar.xz" |
46 |
+ |
47 |
+LICENSE="tcp_wrappers_license" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
50 |
+IUSE="ipv6 netgroups static-libs" |
51 |
+ |
52 |
+RDEPEND="" |
53 |
+ |
54 |
+S=${WORKDIR}/${MY_P} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ eapply $(sed -e 's:^:../debian/patches/:' ../debian/patches/series) |
58 |
+ eapply "${FILESDIR}"/${PN}-7.6-redhat-bug11881.patch |
59 |
+ |
60 |
+ eapply_user |
61 |
+ |
62 |
+ multilib_copy_sources |
63 |
+} |
64 |
+ |
65 |
+temake() { |
66 |
+ local mycppflags="-DHAVE_WEAKSYMS -DHAVE_STRERROR -DSYS_ERRLIST_DEFINED" |
67 |
+ use ipv6 && mycppflags+=" -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len" |
68 |
+ emake \ |
69 |
+ REAL_DAEMON_DIR="${EPREFIX}/usr/sbin" \ |
70 |
+ TLI= VSYSLOG= PARANOID= BUGS= \ |
71 |
+ AUTH="-DALWAYS_RFC931" \ |
72 |
+ AUX_OBJ="weak_symbols.o" \ |
73 |
+ DOT="-DAPPEND_DOT" \ |
74 |
+ HOSTNAME="-DALWAYS_HOSTNAME" \ |
75 |
+ NETGROUP=$(usex netgroups -DNETGROUPS "") \ |
76 |
+ STYLE="-DPROCESS_OPTIONS" \ |
77 |
+ LIBS=$(usex netgroups -lnsl "") \ |
78 |
+ LIB=$(usex static-libs libwrap.a "") \ |
79 |
+ AR="$(tc-getAR)" ARFLAGS=rc \ |
80 |
+ CC="$(tc-getCC)" \ |
81 |
+ RANLIB="$(tc-getRANLIB)" \ |
82 |
+ COPTS="${CFLAGS} ${CPPFLAGS} ${mycppflags}" \ |
83 |
+ LDFLAGS="${LDFLAGS}" \ |
84 |
+ "$@" || die |
85 |
+} |
86 |
+ |
87 |
+multilib_src_configure() { |
88 |
+ tc-export AR RANLIB |
89 |
+ temake config-check |
90 |
+} |
91 |
+ |
92 |
+multilib_src_compile() { |
93 |
+ temake all |
94 |
+} |
95 |
+ |
96 |
+multilib_src_install() { |
97 |
+ into /usr |
98 |
+ use static-libs && dolib.a libwrap.a |
99 |
+ dolib.so shared/libwrap.so* |
100 |
+ |
101 |
+ insinto /usr/include |
102 |
+ doins tcpd.h |
103 |
+ |
104 |
+ if multilib_is_native_abi; then |
105 |
+ gen_usr_ldscript -a wrap |
106 |
+ dosbin tcpd tcpdchk tcpdmatch safe_finger try-from |
107 |
+ fi |
108 |
+} |
109 |
+ |
110 |
+multilib_src_install_all() { |
111 |
+ doman *.[358] |
112 |
+ dosym hosts_access.5 /usr/share/man/man5/hosts.allow.5 |
113 |
+ dosym hosts_access.5 /usr/share/man/man5/hosts.deny.5 |
114 |
+ |
115 |
+ insinto /etc |
116 |
+ newins "${FILESDIR}"/hosts.allow.example hosts.allow |
117 |
+ |
118 |
+ dodoc BLURB CHANGES DISCLAIMER README* |
119 |
+} |
120 |
+ |
121 |
+pkg_preinst() { |
122 |
+ # don't clobber people with our default example config |
123 |
+ [[ -e ${EROOT}/etc/hosts.allow ]] && cp -pP "${EROOT}"/etc/hosts.allow "${ED}"/etc/hosts.allow |
124 |
+} |