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 \ |
| 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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | EXCLUDE_FROM_WORLD = "1" |
| 19 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | install_extrafunc() { |
| 21 | install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func |
| 22 | } |
| 23 | |
| 24 | do_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 | |
| 39 | pkg_postinst_${PN} () { |
| 40 | echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst |
| 41 | } |
| 42 | |
| 43 | FILES_${PN} += "${datadir}" |
| 44 | |