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