8 install -d ${D}${sysconfdir}/xinetd.d
9 for srcfile in ${WORKDIR}/*.xinetd.in; do
10 dstfile=`basename $srcfile .xinetd.in`
11 sed -e 's,@BINDIR@,${bindir},' \
12 -e 's,@SBINDIR@,${sbindir},' \
13 $srcfile > ${D}${sysconfdir}/xinetd.d/$dstfile
14 chmod 644 ${D}${sysconfdir}/xinetd.d/$dstfile
19 [ -z "$D" ] && PID=`pidof xinetd` && kill -HUP $PID || true
22 python populate_packages_append () {
23 packages = d.getVar('PACKAGES', True).split()
24 pkgdest = d.getVar('PKGDEST', True)
25 sysconfdir = d.getVar('sysconfdir', True)
28 xinetd_dir = '%s/%s/%s/xinetd.d' % (pkgdest, pkg, sysconfdir)
29 if not os.path.exists(xinetd_dir):
32 bb.note("adding xinetd dependency to %s" % pkg)
34 rdepends = d.getVar('RDEPENDS_%s' % pkg, True)
38 d.setVar('RDEPENDS_%s' % pkg, rdepends)
40 bb.note('adding xinetd postinst and postrm scripts to %s' % pkg)
42 postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True)
44 postinst = '#!/bin/sh\n'
45 postinst += d.getVar('xinetd_reload', True)
46 d.setVar('pkg_postinst_%s' % pkg, postinst)
48 postrm = d.getVar('pkg_postrm_%s' % pkg, True) or d.getVar('pkg_postrm', True)
50 postrm = '#!/bin/sh\n'
51 postrm += d.getVar('xinetd_reload', True)
52 d.setVar('pkg_postrm_%s' % pkg, postrm)