1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic systemd toolchain-funcs autotools
8 DESCRIPTION="powerful replacement for inetd"
9 HOMEPAGE="https://github.com/xinetd-org/xinetd https://github.com/openSUSE/xinetd"
10 SRC_URI="https://github.com/openSUSE/xinetd/releases/download/${PV}/${P}.tar.xz"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
15 IUSE="perl rpc selinux tcpd"
18 rpc? ( net-libs/libtirpc:= )
19 selinux? ( sys-libs/libselinux )
20 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
24 perl? ( dev-lang/perl )
36 -e 's:/usr/bin/kill:/bin/kill:' \
37 "contrib/${PN}.service" || die
42 $(use_with tcpd libwrap) \
43 $(use_with selinux labeled-networking) \
51 use perl || rm -f "${ED}"/usr/sbin/xconv.pl
53 newinitd "${FILESDIR}"/xinetd.rc6 xinetd
54 newconfd "${FILESDIR}"/xinetd.confd xinetd
55 systemd_dounit "contrib/${PN}.service"
57 newdoc contrib/xinetd.conf xinetd.conf.dist.sample
58 dodoc README.md CHANGELOG