blob: b5f976708f4931ce3132299c33e77c0734923fcc [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Test recipe for recipetool appendfile"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
4
5INHIBIT_DEFAULT_DEPS = "1"
6
7SRC_URI = "file://installscript.sh \
8 file://selftest-replaceme-orig \
9 file://selftest-replaceme-todir \
10 file://file1 \
11 file://add-file.patch \
12 file://subdir \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013 file://selftest-replaceme-inst-globfile \
14 file://selftest-replaceme-inst-todir-globfile \
15 file://selftest-replaceme-inst-func"
16
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017EXCLUDE_FROM_WORLD = "1"
18
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019install_extrafunc() {
20 install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func
21}
22
23do_install() {
24 install -d ${D}${datadir}/
25 install -m 0644 ${WORKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig
26 install -m 0644 ${WORKDIR}/selftest-replaceme-todir ${D}${datadir}
27 install -m 0644 ${WORKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed
28 install -m 0644 ${WORKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029 cp ${WORKDIR}/selftest-replaceme-inst-glob* ${D}${datadir}/selftest-replaceme-inst-globfile
30 cp ${WORKDIR}/selftest-replaceme-inst-todir-glob* ${D}${datadir}
31 install -d ${D}${sysconfdir}
32 install -m 0644 ${S}/file2 ${D}${sysconfdir}/selftest-replaceme-patched
33 sh ${WORKDIR}/installscript.sh ${D}${datadir}
34 install_extrafunc
35}
36
37pkg_postinst_${PN} () {
38 echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst
39}
40
41FILES_${PN} += "${datadir}"
42