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