summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb')
-rw-r--r--meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb34
1 files changed, 20 insertions, 14 deletions
diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb
index 4f0f9531a1..2f727128a5 100644
--- a/meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb
+++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.4.bb
@@ -1,14 +1,14 @@
1SUMMARY = "Socket-based service activation daemon" 1SUMMARY = "Socket-based service activation daemon"
2HOMEPAGE = "https://github.com/xinetd-org/xinetd" 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."
3 4
4# xinetd is a BSD-like license 5LICENSE = "xinetd"
5# Apple and Gentoo say BSD here.
6LICENSE = "BSD"
7LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=55c5fdf02cfcca3fc9621b6f2ceae10f" 6LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=55c5fdf02cfcca3fc9621b6f2ceae10f"
8 7
9UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" 8UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
10 9
11SRC_URI = "git://github.com/openSUSE/xinetd.git;protocol=https \ 10SRC_URI = "git://github.com/openSUSE/xinetd.git;protocol=https;branch=master \
11 file://0001-Use-monotonic-time.patch \
12 file://xinetd.init \ 12 file://xinetd.init \
13 file://xinetd.default \ 13 file://xinetd.default \
14 file://xinetd.service \ 14 file://xinetd.service \
@@ -16,11 +16,12 @@ SRC_URI = "git://github.com/openSUSE/xinetd.git;protocol=https \
16 16
17SRCREV = "6a4af7786630ce48747d9687e2f18f45ea6684c4" 17SRCREV = "6a4af7786630ce48747d9687e2f18f45ea6684c4"
18 18
19S = "${WORKDIR}/git" 19# https://github.com/xinetd-org/xinetd/pull/10 is merged into this git tree revision
20CVE_STATUS[CVE-2013-4342] = "fixed-version: Fixed directly in git tree revision"
20 21
21inherit autotools update-rc.d systemd pkgconfig 22inherit autotools update-rc.d systemd pkgconfig
22 23
23SYSTEMD_SERVICE_${PN} = "xinetd.service" 24SYSTEMD_SERVICE:${PN} = "xinetd.service"
24 25
25INITSCRIPT_NAME = "xinetd" 26INITSCRIPT_NAME = "xinetd"
26INITSCRIPT_PARAMS = "defaults" 27INITSCRIPT_PARAMS = "defaults"
@@ -28,20 +29,25 @@ INITSCRIPT_PARAMS = "defaults"
28PACKAGECONFIG ??= "tcp-wrappers" 29PACKAGECONFIG ??= "tcp-wrappers"
29PACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers" 30PACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers"
30 31
31CONFFILES_${PN} = "${sysconfdir}/xinetd.conf" 32CFLAGS += "-D_GNU_SOURCE -std=gnu17"
32 33
33do_install_append() { 34CONFFILES:${PN} = "${sysconfdir}/xinetd.conf"
35
36do_install:append() {
34 install -d "${D}${sysconfdir}/init.d" 37 install -d "${D}${sysconfdir}/init.d"
35 install -d "${D}${sysconfdir}/default" 38 install -d "${D}${sysconfdir}/default"
36 install -m 755 "${WORKDIR}/xinetd.init" "${D}${sysconfdir}/init.d/xinetd" 39 install -m 755 "${UNPACKDIR}/xinetd.init" "${D}${sysconfdir}/init.d/xinetd"
37 install -m 644 "${WORKDIR}/xinetd.default" "${D}${sysconfdir}/default/xinetd" 40 install -m 644 "${UNPACKDIR}/xinetd.default" "${D}${sysconfdir}/default/xinetd"
38 41
39 # Install systemd unit files 42 # Install systemd unit files
40 install -d ${D}${systemd_unitdir}/system 43 install -d ${D}${systemd_system_unitdir}
41 install -m 0644 ${WORKDIR}/xinetd.service ${D}${systemd_unitdir}/system 44 install -m 0644 ${UNPACKDIR}/xinetd.service ${D}${systemd_system_unitdir}
42 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ 45 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
43 -e 's,@SBINDIR@,${sbindir},g' \ 46 -e 's,@SBINDIR@,${sbindir},g' \
44 ${D}${systemd_unitdir}/system/xinetd.service 47 ${D}${systemd_system_unitdir}/xinetd.service
45} 48}
46 49
47RDEPENDS_${PN} += "perl" 50# Script for converting inetd.conf files into xinetd.conf files
51PACKAGES =+ "${PN}-xconv"
52FILES:${PN}-xconv = "${bindir}/xconv.pl"
53RDEPENDS:${PN}-xconv += "perl"