Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,8 @@
diff --git a/file2 b/file2
new file mode 100644
index 0000000..049b42e
--- /dev/null
+++ b/file2
@@ -0,0 +1,2 @@
+Test file 2
+456
@@ -0,0 +1,2 @@
First test file
123
@@ -0,0 +1,3 @@
#!/bin/sh
echo "Third file" > $1/selftest-replaceme-scripted
@@ -0,0 +1 @@
A file installed by a function called by do_install
@@ -0,0 +1 @@
A file matched by a glob in do_install
@@ -0,0 +1 @@
A file matched by a glob in do_install to a directory
@@ -0,0 +1 @@
Straight through with same nam
@@ -0,0 +1 @@
File in SRC_URI installed just to directory path
@@ -0,0 +1 @@
A file in a subdirectory
@@ -0,0 +1,42 @@
SUMMARY = "Test recipe for recipetool appendfile"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://installscript.sh \
file://selftest-replaceme-orig \
file://selftest-replaceme-todir \
file://file1 \
file://add-file.patch \
file://subdir \
file://selftest-replaceme-inst-globfile \
file://selftest-replaceme-inst-todir-globfile \
file://selftest-replaceme-inst-func"
EXCLUDE_FROM_WORLD = "1"
install_extrafunc() {
install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func
}
do_install() {
install -d ${D}${datadir}/
install -m 0644 ${WORKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig
install -m 0644 ${WORKDIR}/selftest-replaceme-todir ${D}${datadir}
install -m 0644 ${WORKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed
install -m 0644 ${WORKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir
cp ${WORKDIR}/selftest-replaceme-inst-glob* ${D}${datadir}/selftest-replaceme-inst-globfile
cp ${WORKDIR}/selftest-replaceme-inst-todir-glob* ${D}${datadir}
install -d ${D}${sysconfdir}
install -m 0644 ${S}/file2 ${D}${sysconfdir}/selftest-replaceme-patched
sh ${WORKDIR}/installscript.sh ${D}${datadir}
install_extrafunc
}
pkg_postinst:${PN} () {
echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst
}
FILES:${PN} += "${datadir}"