mirror of
https://git.yoctoproject.org/poky
synced 2026-04-01 14:02:23 +02:00
Where recipes use S = ${WORKDIR}, change them to set UNPACKDIR to
a subdir of WORKDIR and make S point at this instead.
I've chosen not to force S into any standard UNPACKDIR we may pick in
future just so the S = UNPACKDIR case is clearly visible by the
directory naming under WORKDIR as that should aid usability.
(From OE-Core rev: d9328e3b0b062f0621de3d114584b44f384a1c02)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
52 lines
1.0 KiB
BlitzBasic
52 lines
1.0 KiB
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}/sources"
|
|
UNPACKDIR = "${S}"
|
|
|
|
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} () {
|
|
|
|
test -d $D${sysconfdir}/init.d || exit 0
|
|
cd $D${sysconfdir}/init.d
|
|
|
|
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"
|