Diff xinetd-2.3.15-r3 with a xinetd-2.3.15.3

/usr/portage/sys-apps/xinetd/xinetd-2.3.15.3.ebuild 2020-02-11 20:51:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="5"
5

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

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

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

  
17
DEPEND="tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
18
	rpc? ( net-libs/libtirpc:= )"
19
RDEPEND="${DEPEND}
20
	perl? ( dev-lang/perl )"
21
DEPEND="${DEPEND}
22
	virtual/pkgconfig"
23

  
24
src_prepare() {
25
	epatch "${FILESDIR}"/${PN}-2.3.14-DESTDIR.patch
26
	epatch "${FILESDIR}"/${PN}-2.3.14-install-contrib.patch
27
	epatch "${FILESDIR}"/${PN}-2.3.15-config.patch
28
	epatch "${FILESDIR}"/${PN}-2.3.15-creds.patch #488158
29
	find -name Makefile.in -exec sed -i 's:\<ar\>:$(AR):' {} +
30
}
16
DEPEND="
17
	selinux? ( sys-libs/libselinux )
18
	net-libs/libtirpc:=
19
	tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
20
"
21
RDEPEND="
22
	${DEPEND}
23
	perl? ( dev-lang/perl )
24
"
25
DEPEND="
26
	${DEPEND}
27
	virtual/pkgconfig
28
"
31 29

  
32 30
src_configure() {
33
	tc-export AR PKG_CONFIG
34
	if use rpc ; then
35
		append-cflags $(${PKG_CONFIG} --cflags libtirpc)
36
	else
37
		append-cppflags -DNO_RPC
38
		export ac_cv_header_{rpc_{rpc,rpcent,pmap_clnt},netdb}_h=no
39
	fi
40
	LIBS=$(${PKG_CONFIG} --libs libtirpc) \
41 31
	econf \
42 32
		$(use_with tcpd libwrap) \
33
		$(use_with selinux labeled-networking) \
43 34
		--with-loadavg
44 35
}
45 36

  
46 37
src_install() {
47
	emake DESTDIR="${ED}" install install-contrib
38
	default
39

  
48 40
	use perl || rm -f "${ED}"/usr/sbin/xconv.pl
49 41

  
50 42
	newinitd "${FILESDIR}"/xinetd.rc6 xinetd
......
52 44
	systemd_dounit "${FILESDIR}/${PN}.service"
53 45

  
54 46
	newdoc contrib/xinetd.conf xinetd.conf.dist.sample
55
	dodoc AUDIT INSTALL README TODO CHANGELOG
47
	dodoc README.md CHANGELOG
56 48
}
Thank you!