diff options
author | 2022-09-10 14:06:33 +0100 | |
---|---|---|
committer | 2022-09-10 14:29:54 +0100 | |
commit | 33bd8437e8964991053c4ec1897ec015f84d577d (patch) | |
tree | 2bc43cd9a150d701a99da79e12ae4a13a868d771 /sys-apps/xinetd/xinetd-2.3.15.4-r1.ebuild | |
parent | dev-libs/libcgroup: add 3.0.0 (diff) | |
download | gentoo-33bd8437e8964991053c4ec1897ec015f84d577d.tar.gz gentoo-33bd8437e8964991053c4ec1897ec015f84d577d.tar.bz2 gentoo-33bd8437e8964991053c4ec1897ec015f84d577d.zip |
sys-apps/xinetd: fix build on musl & implicit function decls
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/xinetd/xinetd-2.3.15.4-r1.ebuild')
-rw-r--r-- | sys-apps/xinetd/xinetd-2.3.15.4-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-apps/xinetd/xinetd-2.3.15.4-r1.ebuild b/sys-apps/xinetd/xinetd-2.3.15.4-r1.ebuild new file mode 100644 index 000000000000..1f81038eb7bc --- /dev/null +++ b/sys-apps/xinetd/xinetd-2.3.15.4-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd + +DESCRIPTION="Powerful replacement for inetd" +HOMEPAGE="https://github.com/xinetd-org/xinetd https://github.com/openSUSE/xinetd" +SRC_URI="https://github.com/openSUSE/xinetd/releases/download/${PV}/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="perl rpc selinux tcpd" + +DEPEND=" + rpc? ( net-libs/libtirpc:= ) + selinux? ( sys-libs/libselinux ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 ) +" +RDEPEND=" + ${DEPEND} + perl? ( dev-lang/perl ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.3.15.4-0001-configure.ac-use-AC_USE_SYSTEM_EXTENSIONS.patch + "${FILESDIR}"/${PN}-2.3.15.4-0002-redirect-drop-deprecated-sys-signal.h-include.patch +) + +src_prepare() { + default + + sed -i \ + -e 's:/usr/bin/kill:/bin/kill:' \ + "contrib/${PN}.service" || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_with tcpd libwrap) \ + $(use_with selinux labeled-networking) \ + $(use_with rpc) \ + --with-loadavg +} + +src_install() { + default + + use perl || rm -f "${ED}"/usr/sbin/xconv.pl + + newinitd "${FILESDIR}"/xinetd.rc6 xinetd + newconfd "${FILESDIR}"/xinetd.confd xinetd + systemd_dounit "contrib/${PN}.service" + + newdoc contrib/xinetd.conf xinetd.conf.dist.sample + dodoc README.md CHANGELOG +} |