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