mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-05 05:04:44 +02:00

There is no need to have two assignments; also setting S from UNPACKDIR (and not vice versa) is more logical as unpack task comes first, and tasks that come after unpack use S to access unpack results. Also adjust reference test data in selftest/recipeutils to reflect changes in test recipes. (From OE-Core rev: f64b7e5fb3181734c8dde87b27e872a026261a74) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
940 B
BlitzBasic
35 lines
940 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://COPYRIGHT;md5=349c872e0066155e1818b786938876a4"
|
|
|
|
SRC_URI = "file://skeleton \
|
|
file://skeleton_test.c \
|
|
file://COPYRIGHT \
|
|
"
|
|
|
|
S = "${UNPACKDIR}"
|
|
|
|
do_compile () {
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${S}/skeleton_test.c -o ${B}/skeleton-test
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${sysconfdir}/init.d
|
|
cat ${S}/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 ${S}/skeleton-test ${D}${sbindir}/
|
|
}
|
|
|
|
RDEPENDS:${PN} = "initscripts"
|
|
|
|
CONFFILES:${PN} += "${sysconfdir}/init.d/skeleton"
|