mirror of
https://git.yoctoproject.org/poky-contrib
synced 2025-05-08 23:52:25 +08:00

An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. (From OE-Core rev: ceda3238cdbf1beb216ae9ddb242470d5dfc25e0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
33 lines
955 B
BlitzBasic
33 lines
955 B
BlitzBasic
SUMMARY = "The canonical example of init scripts"
|
|
SECTION = "base"
|
|
DESCRIPTION = "This recipe is a canonical example of init scripts"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYRIGHT;md5=349c872e0066155e1818b786938876a4"
|
|
|
|
SRC_URI = "file://skeleton \
|
|
file://skeleton_test.c \
|
|
file://COPYRIGHT \
|
|
"
|
|
|
|
do_compile () {
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/skeleton_test.c -o ${WORKDIR}/skeleton-test
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${sysconfdir}/init.d
|
|
cat ${WORKDIR}/skeleton | \
|
|
sed -e 's,/etc,${sysconfdir},g' \
|
|
-e 's,/usr/sbin,${sbindir},g' \
|
|
-e 's,/var,${localstatedir},g' \
|
|
-e 's,/usr/bin,${bindir},g' \
|
|
-e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/skeleton
|
|
chmod a+x ${D}${sysconfdir}/init.d/skeleton
|
|
|
|
install -d ${D}${sbindir}
|
|
install -m 0755 ${WORKDIR}/skeleton-test ${D}${sbindir}/
|
|
}
|
|
|
|
RDEPENDS:${PN} = "initscripts"
|
|
|
|
CONFFILES:${PN} += "${sysconfdir}/init.d/skeleton"
|