xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Socket-based service activation daemon"
2HOMEPAGE = "https://github.com/xinetd-org/xinetd"
3DESCRIPTION = "xinetd is a powerful replacement for inetd, xinetd has access control mechanisms, extensive logging capabilities, the ability to make services available based on time, can place limits on the number of servers that can be started, and has deployable defence mechanisms to protect against port scanners, among other things."
4
5LICENSE = "xinetd"
6LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=55c5fdf02cfcca3fc9621b6f2ceae10f"
7
8UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
9
10SRC_URI = "git://github.com/openSUSE/xinetd.git;protocol=https;branch=master \
11           file://xinetd.init \
12           file://xinetd.default \
13           file://xinetd.service \
14           "
15
16SRCREV = "6a4af7786630ce48747d9687e2f18f45ea6684c4"
17
18S = "${WORKDIR}/git"
19
20# https://github.com/xinetd-org/xinetd/pull/10 is merged into this git tree revision
21CVE_CHECK_IGNORE += "CVE-2013-4342"
22
23inherit autotools update-rc.d systemd pkgconfig
24
25SYSTEMD_SERVICE:${PN} = "xinetd.service"
26
27INITSCRIPT_NAME = "xinetd"
28INITSCRIPT_PARAMS = "defaults"
29
30PACKAGECONFIG ??= "tcp-wrappers"
31PACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers"
32
33CFLAGS += "-D_GNU_SOURCE"
34
35CONFFILES:${PN} = "${sysconfdir}/xinetd.conf"
36
37do_install:append() {
38       install -d "${D}${sysconfdir}/init.d"
39       install -d "${D}${sysconfdir}/default"
40       install -m 755 "${WORKDIR}/xinetd.init" "${D}${sysconfdir}/init.d/xinetd"
41       install -m 644 "${WORKDIR}/xinetd.default" "${D}${sysconfdir}/default/xinetd"
42
43       # Install systemd unit files
44       install -d ${D}${systemd_system_unitdir}
45       install -m 0644 ${WORKDIR}/xinetd.service ${D}${systemd_system_unitdir}
46       sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
47              -e 's,@SBINDIR@,${sbindir},g' \
48              ${D}${systemd_system_unitdir}/xinetd.service
49}
50
51RDEPENDS:${PN} += "perl"
52