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 | |
| 18 | install_extrafunc() { |
| 19 | install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func |
| 20 | } |
| 21 | |
| 22 | do_install() { |
| 23 | install -d ${D}${datadir}/ |
| 24 | install -m 0644 ${WORKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig |
| 25 | install -m 0644 ${WORKDIR}/selftest-replaceme-todir ${D}${datadir} |
| 26 | install -m 0644 ${WORKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed |
| 27 | install -m 0644 ${WORKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir |
| 28 | install -m 0644 ${WORKDIR}/selftest-replaceme-src-globfile ${D}${datadir}/selftest-replaceme-src-globfile |
| 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 | |
| 37 | pkg_postinst_${PN} () { |
| 38 | echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst |
| 39 | } |
| 40 | |
| 41 | FILES_${PN} += "${datadir}" |
| 42 | |