1*4882a593SmuzhiyunSUMMARY = "Socket-based service activation daemon" 2*4882a593SmuzhiyunHOMEPAGE = "https://github.com/xinetd-org/xinetd" 3*4882a593SmuzhiyunDESCRIPTION = "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*4882a593Smuzhiyun 5*4882a593SmuzhiyunLICENSE = "xinetd" 6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYRIGHT;md5=55c5fdf02cfcca3fc9621b6f2ceae10f" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunUPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunSRC_URI = "git://github.com/openSUSE/xinetd.git;protocol=https;branch=master \ 11*4882a593Smuzhiyun file://xinetd.init \ 12*4882a593Smuzhiyun file://xinetd.default \ 13*4882a593Smuzhiyun file://xinetd.service \ 14*4882a593Smuzhiyun " 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunSRCREV = "6a4af7786630ce48747d9687e2f18f45ea6684c4" 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunS = "${WORKDIR}/git" 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun# https://github.com/xinetd-org/xinetd/pull/10 is merged into this git tree revision 21*4882a593SmuzhiyunCVE_CHECK_IGNORE += "CVE-2013-4342" 22*4882a593Smuzhiyun 23*4882a593Smuzhiyuninherit autotools update-rc.d systemd pkgconfig 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunSYSTEMD_SERVICE:${PN} = "xinetd.service" 26*4882a593Smuzhiyun 27*4882a593SmuzhiyunINITSCRIPT_NAME = "xinetd" 28*4882a593SmuzhiyunINITSCRIPT_PARAMS = "defaults" 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunPACKAGECONFIG ??= "tcp-wrappers" 31*4882a593SmuzhiyunPACKAGECONFIG[tcp-wrappers] = "--with-libwrap,,tcp-wrappers" 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunCFLAGS += "-D_GNU_SOURCE" 34*4882a593Smuzhiyun 35*4882a593SmuzhiyunCONFFILES:${PN} = "${sysconfdir}/xinetd.conf" 36*4882a593Smuzhiyun 37*4882a593Smuzhiyundo_install:append() { 38*4882a593Smuzhiyun install -d "${D}${sysconfdir}/init.d" 39*4882a593Smuzhiyun install -d "${D}${sysconfdir}/default" 40*4882a593Smuzhiyun install -m 755 "${WORKDIR}/xinetd.init" "${D}${sysconfdir}/init.d/xinetd" 41*4882a593Smuzhiyun install -m 644 "${WORKDIR}/xinetd.default" "${D}${sysconfdir}/default/xinetd" 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun # Install systemd unit files 44*4882a593Smuzhiyun install -d ${D}${systemd_system_unitdir} 45*4882a593Smuzhiyun install -m 0644 ${WORKDIR}/xinetd.service ${D}${systemd_system_unitdir} 46*4882a593Smuzhiyun sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ 47*4882a593Smuzhiyun -e 's,@SBINDIR@,${sbindir},g' \ 48*4882a593Smuzhiyun ${D}${systemd_system_unitdir}/xinetd.service 49*4882a593Smuzhiyun} 50*4882a593Smuzhiyun 51*4882a593SmuzhiyunRDEPENDS:${PN} += "perl" 52