mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
* Drop PR = "r0" * Reorder lines so that packaging definitions are at the end (From OE-Core rev: e6cf787871518119205c7d764f5478fd853e2576) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
860 B
BlitzBasic
32 lines
860 B
BlitzBasic
SUMMARY = "The canonical example of init scripts"
|
|
SECTION = "base"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYRIGHT;md5=349c872e0066155e1818b786938876a4"
|
|
|
|
SRC_URI = "file://skeleton \
|
|
file://skeleton_test.c \
|
|
file://COPYRIGHT \
|
|
"
|
|
|
|
do_compile () {
|
|
${CC} ${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"
|