mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
We've been removing PR values from recipes at upgrade time for a while. In general anyone maintaining a binary distro would end up having to curate these themselves so the values in OE-Core aren't really that useful anymore. In many ways it makes sense to clear out the remaining ones (which are mostly for 'config' recipes that are unlikely to increase in PV) and leave a clean slate for anyone implementing a binary distro config. References are left in meta-selftest since the tests there do involve them and their removal upon upgrade. (From OE-Core rev: d4c346e8ab8f3cae25d1b01c7331ed9f6d4f96ef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
50 lines
970 B
BlitzBasic
50 lines
970 B
BlitzBasic
SUMMARY = "Enhances systemd compatilibity with existing SysVinit scripts"
|
|
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"
|
|
LICENSE = "MIT"
|
|
|
|
|
|
PACKAGE_WRITE_DEPS += "systemd-systemctl-native"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
inherit features_check
|
|
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
|
|
|
ALLOW_EMPTY:${PN} = "1"
|
|
|
|
REQUIRED_DISTRO_FEATURES += "systemd"
|
|
REQUIRED_DISTRO_FEATURES += "usrmerge"
|
|
|
|
SYSTEMD_DISABLED_SYSV_SERVICES = " \
|
|
busybox-udhcpc \
|
|
hwclock \
|
|
networking \
|
|
nfsserver \
|
|
nfscommon \
|
|
syslog.busybox \
|
|
"
|
|
|
|
pkg_postinst:${PN} () {
|
|
|
|
cd $D${sysconfdir}/init.d || exit 0
|
|
|
|
echo "Disabling the following sysv scripts: "
|
|
|
|
if [ -n "$D" ]; then
|
|
OPTS="--root=$D"
|
|
else
|
|
OPTS=""
|
|
fi
|
|
|
|
for i in ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do
|
|
if [ -e $i -o -e $i.sh ] && ! [ -e $D${sysconfdir}/systemd/system/$i.service -o -e $D${systemd_system_unitdir}/$i.service ] ; then
|
|
echo -n "$i: "
|
|
systemctl $OPTS mask $i.service
|
|
fi
|
|
done
|
|
echo
|
|
}
|
|
|
|
RDEPENDS:${PN} = "systemd"
|