1 |
commit: 80a40793ca6aaad60760ebc803025453cd59b605 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 20 16:45:00 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 20 16:55:45 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80a40793 |
7 |
|
8 |
Revert "sys-apps/xinetd: drop old" |
9 |
|
10 |
This reverts commit 816a4db4f85bdb28d67d0a000c0981288e88c026. |
11 |
|
12 |
=sys-apps/xinetd-2.3.15-r3 still needed for fbsd. |
13 |
|
14 |
sys-apps/xinetd/Manifest | 1 + |
15 |
sys-apps/xinetd/xinetd-2.3.15-r2.ebuild | 54 +++++++++++++++++++++++++++++++ |
16 |
sys-apps/xinetd/xinetd-2.3.15-r3.ebuild | 56 +++++++++++++++++++++++++++++++++ |
17 |
3 files changed, 111 insertions(+) |
18 |
|
19 |
diff --git a/sys-apps/xinetd/Manifest b/sys-apps/xinetd/Manifest |
20 |
index 1e3b440acf0..12b8ad8295b 100644 |
21 |
--- a/sys-apps/xinetd/Manifest |
22 |
+++ b/sys-apps/xinetd/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST xinetd-2.3.15.3.tar.xz 383204 BLAKE2B dada7e1efb8c70d9b47efbb33de54e643e195fc043a2fe8b1b61a1d9e597a5a10feda8d6692e665af1f1690870e619098a9a2367df3a73f7821a91777532f1fa SHA512 3a744d5ce66da46743eec28d5b95a44709b1828187078984e59d7220ac325abce1198927e9156f343a4e16a9dc63e8846f1dcb0facbf05ea44c73aecbe7e504f |
25 |
DIST xinetd-2.3.15.4.tar.xz 384504 BLAKE2B e6981d7143c5e39d45a6274d003467f372b1e97637112c66a3fd3a1cb47fe948228d72c914cca5b2db1d65a626b83ff36f10768d343579aa48353d20e2541f4d SHA512 1d9bbf5f60b299746adf3e57a669bf1a554b50066563b65cdb7584f00dcab2d3d331df705eefb56b51c52a16b5ed6b109cd832c27df87c7f262bb304e17ddc0e |
26 |
+DIST xinetd-2.3.15.tar.gz 309774 BLAKE2B b5c933a2aa7a2ef4a2d58b53890f04569fe592005c646f39a00d4716325c8ac9b9aa3b8b4b2f2b861430c8415167ab1d394de3d3b4bd761239c5223b1d2b0419 SHA512 9d6fee1fbc90329629d84086ae7de5cd51c25af7b68e52aa704d6f74bee5f0e3d54ca1bcf780f90f74ddc8d336ae0abb5e5e368d43c426a26b8dd2c4676d26aa |
27 |
|
28 |
diff --git a/sys-apps/xinetd/xinetd-2.3.15-r2.ebuild b/sys-apps/xinetd/xinetd-2.3.15-r2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..99bf38e9a72 |
31 |
--- /dev/null |
32 |
+++ b/sys-apps/xinetd/xinetd-2.3.15-r2.ebuild |
33 |
@@ -0,0 +1,54 @@ |
34 |
+# Copyright 1999-2018 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="5" |
38 |
+ |
39 |
+inherit eutils flag-o-matic systemd toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="powerful replacement for inetd" |
42 |
+HOMEPAGE="http://www.xinetd.org/" |
43 |
+SRC_URI="http://www.xinetd.org/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" |
48 |
+IUSE="perl rpc tcpd" |
49 |
+ |
50 |
+DEPEND="tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 ) |
51 |
+ rpc? ( net-libs/libtirpc:= )" |
52 |
+RDEPEND="${DEPEND} |
53 |
+ perl? ( dev-lang/perl )" |
54 |
+DEPEND="${DEPEND} |
55 |
+ virtual/pkgconfig" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ epatch "${FILESDIR}"/${PN}-2.3.14-DESTDIR.patch |
59 |
+ epatch "${FILESDIR}"/${PN}-2.3.14-install-contrib.patch |
60 |
+ epatch "${FILESDIR}"/${PN}-2.3.14-config.patch |
61 |
+ epatch "${FILESDIR}"/${PN}-2.3.15-creds.patch #488158 |
62 |
+ find -name Makefile.in -exec sed -i 's:\<ar\>:$(AR):' {} + |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ if ! use rpc ; then |
67 |
+ append-cppflags -DNO_RPC |
68 |
+ export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no |
69 |
+ fi |
70 |
+ tc-export AR PKG_CONFIG |
71 |
+ LIBS=$(${PKG_CONFIG} --libs libtirpc) \ |
72 |
+ econf \ |
73 |
+ $(use_with tcpd libwrap) \ |
74 |
+ --with-loadavg |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ emake DESTDIR="${ED}" install install-contrib |
79 |
+ use perl || rm -f "${ED}"/usr/sbin/xconv.pl |
80 |
+ |
81 |
+ newinitd "${FILESDIR}"/xinetd.rc6 xinetd |
82 |
+ newconfd "${FILESDIR}"/xinetd.confd xinetd |
83 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
84 |
+ |
85 |
+ newdoc contrib/xinetd.conf xinetd.conf.dist.sample |
86 |
+ dodoc AUDIT INSTALL README TODO CHANGELOG |
87 |
+} |
88 |
|
89 |
diff --git a/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild b/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild |
90 |
new file mode 100644 |
91 |
index 00000000000..357e0c91b5a |
92 |
--- /dev/null |
93 |
+++ b/sys-apps/xinetd/xinetd-2.3.15-r3.ebuild |
94 |
@@ -0,0 +1,56 @@ |
95 |
+# Copyright 1999-2018 Gentoo Foundation |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+ |
98 |
+EAPI="5" |
99 |
+ |
100 |
+inherit eutils flag-o-matic systemd toolchain-funcs |
101 |
+ |
102 |
+DESCRIPTION="powerful replacement for inetd" |
103 |
+HOMEPAGE="http://www.xinetd.org/ https://github.com/xinetd-org/xinetd" |
104 |
+SRC_URI="http://www.xinetd.org/${P}.tar.gz" |
105 |
+ |
106 |
+LICENSE="BSD" |
107 |
+SLOT="0" |
108 |
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd" |
109 |
+IUSE="perl rpc tcpd" |
110 |
+ |
111 |
+DEPEND="tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 ) |
112 |
+ rpc? ( net-libs/libtirpc:= )" |
113 |
+RDEPEND="${DEPEND} |
114 |
+ perl? ( dev-lang/perl )" |
115 |
+DEPEND="${DEPEND} |
116 |
+ virtual/pkgconfig" |
117 |
+ |
118 |
+src_prepare() { |
119 |
+ epatch "${FILESDIR}"/${PN}-2.3.14-DESTDIR.patch |
120 |
+ epatch "${FILESDIR}"/${PN}-2.3.14-install-contrib.patch |
121 |
+ epatch "${FILESDIR}"/${PN}-2.3.15-config.patch |
122 |
+ epatch "${FILESDIR}"/${PN}-2.3.15-creds.patch #488158 |
123 |
+ find -name Makefile.in -exec sed -i 's:\<ar\>:$(AR):' {} + |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ tc-export AR PKG_CONFIG |
128 |
+ if use rpc ; then |
129 |
+ append-cflags $(${PKG_CONFIG} --cflags libtirpc) |
130 |
+ else |
131 |
+ append-cppflags -DNO_RPC |
132 |
+ export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no |
133 |
+ fi |
134 |
+ LIBS=$(${PKG_CONFIG} --libs libtirpc) \ |
135 |
+ econf \ |
136 |
+ $(use_with tcpd libwrap) \ |
137 |
+ --with-loadavg |
138 |
+} |
139 |
+ |
140 |
+src_install() { |
141 |
+ emake DESTDIR="${ED}" install install-contrib |
142 |
+ use perl || rm -f "${ED}"/usr/sbin/xconv.pl |
143 |
+ |
144 |
+ newinitd "${FILESDIR}"/xinetd.rc6 xinetd |
145 |
+ newconfd "${FILESDIR}"/xinetd.confd xinetd |
146 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
147 |
+ |
148 |
+ newdoc contrib/xinetd.conf xinetd.conf.dist.sample |
149 |
+ dodoc AUDIT INSTALL README TODO CHANGELOG |
150 |
+} |