Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 1 | SUMMARY = "creategroup pt 2" |
| 2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
| 3 | |
| 4 | LICENSE = "MIT" |
| 5 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 6 | USERADD_DEPENDS = "creategroup1" |
| 7 | |
| 8 | S = "${WORKDIR}" |
| 9 | |
| 10 | inherit useradd allarch |
| 11 | |
| 12 | USERADD_PACKAGES = "${PN}" |
| 13 | USERADD_PARAM:${PN} = "-u 5556 --gid grouptest gt2" |
| 14 | |
| 15 | TESTDIR = "${D}${sysconfdir}/creategroup" |
| 16 | |
| 17 | do_install() { |
| 18 | install -d ${TESTDIR} |
| 19 | install -d ${TESTDIR}/dir |
| 20 | touch ${TESTDIR}/file |
| 21 | ln -s ./file ${TESTDIR}/symlink |
| 22 | install -d ${TESTDIR}/fifotest |
| 23 | mkfifo ${TESTDIR}/fifotest/fifo |
| 24 | |
| 25 | chown gt2:grouptest ${TESTDIR}/file |
| 26 | chown -R gt2:grouptest ${TESTDIR}/dir |
| 27 | chown -h gt2:grouptest ${TESTDIR}/symlink |
| 28 | chown -R gt2:grouptest ${TESTDIR}/fifotest |
| 29 | } |
| 30 | |
| 31 | FILES:${PN} = "${sysconfdir}/creategroup/*" |
| 32 | |