2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Enhances systemd compatilibity with existing SysVinit scripts"
|
2013-01-19 22:47:07 +00:00
|
|
|
|
|
|
|
LICENSE = "MIT"
|
2014-01-02 14:19:45 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
|
2013-01-19 22:47:07 +00:00
|
|
|
|
2014-03-05 17:17:18 +00:00
|
|
|
PR = "r29"
|
2013-01-19 22:47:07 +00:00
|
|
|
|
2013-03-01 10:48:31 +00:00
|
|
|
DEPENDS = "systemd-systemctl-native"
|
|
|
|
|
2015-07-14 14:36:59 +00:00
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
2013-01-19 22:47:07 +00:00
|
|
|
inherit allarch
|
|
|
|
|
2013-12-13 19:36:23 +00:00
|
|
|
ALLOW_EMPTY_${PN} = "1"
|
2013-01-19 22:47:07 +00:00
|
|
|
|
|
|
|
SYSTEMD_DISABLED_SYSV_SERVICES = " \
|
|
|
|
busybox-udhcpc \
|
|
|
|
hwclock \
|
|
|
|
networking \
|
2014-02-08 20:56:02 +00:00
|
|
|
nfsserver \
|
|
|
|
nfscommon \
|
2013-01-19 22:47:07 +00:00
|
|
|
syslog.busybox \
|
|
|
|
"
|
|
|
|
|
|
|
|
pkg_postinst_${PN} () {
|
|
|
|
cd $D${sysconfdir}/init.d
|
|
|
|
|
|
|
|
echo "Disabling the following sysv scripts: "
|
|
|
|
|
|
|
|
OPTS=""
|
|
|
|
|
|
|
|
if [ -n "$D" ]; then
|
|
|
|
OPTS="--root=$D"
|
|
|
|
fi
|
|
|
|
|
|
|
|
for i in ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do
|
2014-01-10 07:15:03 +00:00
|
|
|
if [ \( -e $i -o $i.sh \) -a ! \( -e $D${sysconfdir}/systemd/system/$i.service -o -e $D${systemd_unitdir}/system/$i.service \) ] ; then
|
2013-01-19 22:47:07 +00:00
|
|
|
echo -n "$i: " ; systemctl ${OPTS} mask $i.service
|
|
|
|
fi
|
|
|
|
done ; echo
|
|
|
|
}
|
|
|
|
|
|
|
|
RDPEPENDS_${PN} = "systemd"
|