Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Test recipe for recipetool appendfile" |
| 2 | LICENSE = "MIT" |
| 3 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
| 4 | |
| 5 | INHIBIT_DEFAULT_DEPS = "1" |
| 6 | |
| 7 | SRC_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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | file://selftest-replaceme-inst-globfile \ |
| 14 | file://selftest-replaceme-inst-todir-globfile \ |
| 15 | file://selftest-replaceme-inst-func" |
| 16 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | EXCLUDE_FROM_WORLD = "1" |
| 18 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | install_extrafunc() { |
| 20 | install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func |
| 21 | } |
| 22 | |
| 23 | do_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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 29 | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | pkg_postinst:${PN} () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 38 | echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst |
| 39 | } |
| 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:${PN} += "${datadir}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | |