blob: 7375c47933009685ade5afc87348fb78df0f036c [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 \
13 file://selftest-replaceme-src-glob* \
14 file://selftest-replaceme-inst-globfile \
15 file://selftest-replaceme-inst-todir-globfile \
16 file://selftest-replaceme-inst-func"
17
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018EXCLUDE_FROM_WORLD = "1"
19
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020install_extrafunc() {
21 install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func
22}
23
24do_install() {
25 install -d ${D}${datadir}/
26 install -m 0644 ${WORKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig
27 install -m 0644 ${WORKDIR}/selftest-replaceme-todir ${D}${datadir}
28 install -m 0644 ${WORKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed
29 install -m 0644 ${WORKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir
30 install -m 0644 ${WORKDIR}/selftest-replaceme-src-globfile ${D}${datadir}/selftest-replaceme-src-globfile
31 cp ${WORKDIR}/selftest-replaceme-inst-glob* ${D}${datadir}/selftest-replaceme-inst-globfile
32 cp ${WORKDIR}/selftest-replaceme-inst-todir-glob* ${D}${datadir}
33 install -d ${D}${sysconfdir}
34 install -m 0644 ${S}/file2 ${D}${sysconfdir}/selftest-replaceme-patched
35 sh ${WORKDIR}/installscript.sh ${D}${datadir}
36 install_extrafunc
37}
38
39pkg_postinst_${PN} () {
40 echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst
41}
42
43FILES_${PN} += "${datadir}"
44