Diff xinetd-2.3.15.3 with a xinetd-2.3.15.3-r2

/usr/portage/sys-apps/xinetd/xinetd-2.3.15.3-r2.ebuild 2018-06-21 05:39:00.000000000 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2018 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
5
inherit flag-o-matic systemd toolchain-funcs
4
EAPI="6"
5

  
6
inherit flag-o-matic systemd toolchain-funcs autotools
6 7

  
7 8
DESCRIPTION="powerful replacement for inetd"
8
HOMEPAGE="https://github.com/openSUSE/xinetd"
9
HOMEPAGE="https://github.com/xinetd-org/xinetd https://github.com/openSUSE/xinetd"
9 10
SRC_URI="https://github.com/openSUSE/xinetd/releases/download/${PV}/${P}.tar.xz"
10 11

  
11 12
LICENSE="BSD"
12 13
SLOT="0"
13
KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
14
IUSE="perl selinux tcpd"
14
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
15
IUSE="perl rpc selinux tcpd"
15 16

  
16 17
DEPEND="
18
	rpc? ( net-libs/libtirpc:= )
17 19
	selinux? ( sys-libs/libselinux )
18
	net-libs/libtirpc:=
19 20
	tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
20 21
"
21 22
RDEPEND="
......
27 28
	virtual/pkgconfig
28 29
"
29 30

  
31
PATCHES=(
32
	"${FILESDIR}"/${P}-no-rpc.patch #651838
33
	"${FILESDIR}"/${P}-rpc-configure.patch #651838
34
)
35

  
36
src_prepare() {
37
	default
38
	eautoreconf
39

  
40
	sed -i \
41
		-e 's:/usr/bin/kill:/bin/kill:' \
42
		"contrib/${PN}.service" || die
43
}
44

  
30 45
src_configure() {
31 46
	econf \
32 47
		$(use_with tcpd libwrap) \
33 48
		$(use_with selinux labeled-networking) \
49
		$(use_with rpc) \
34 50
		--with-loadavg
35 51
}
36 52

  
......
41 57

  
42 58
	newinitd "${FILESDIR}"/xinetd.rc6 xinetd
43 59
	newconfd "${FILESDIR}"/xinetd.confd xinetd
44
	systemd_dounit "${FILESDIR}/${PN}.service"
60
	systemd_dounit "contrib/${PN}.service"
45 61

  
46 62
	newdoc contrib/xinetd.conf xinetd.conf.dist.sample
47 63
	dodoc README.md CHANGELOG
Thank you!