blob: 87bf9438b861319e33a7bfc072ef8483036d6243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
SUMMARY = "selftest chown"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
LICENSE = "MIT"
S = "${WORKDIR}"
inherit useradd allarch
USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "-u 1234 -M test"
TESTDIR = "${D}${sysconfdir}/selftest-chown"
do_install() {
install -d ${TESTDIR}
install -d ${TESTDIR}/dir
touch ${TESTDIR}/file
ln -s ./file ${TESTDIR}/symlink
chown test:test ${TESTDIR}/file
chown -R test:test ${TESTDIR}/dir
chown -h test:test ${TESTDIR}/symlink
}
FILES_${PN} = "${sysconfdir}/selftest-chown/*"
|