blob: b96ca92a16009f9596d355e8d2eb603fa305cead [file] [log] [blame]
Patrick Williams39653562024-03-01 08:54:02 -06001SUMMARY = "creategroup_d"
2LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
3
4LICENSE = "MIT"
5
6USERADD_DEPENDS = "bcreategroup"
7
8S = "${WORKDIR}"
9
10EXCLUDE_FROM_WORLD="1"
11
12inherit useradd allarch
13
14USERADD_PACKAGES = "${PN}"
15USERADD_PARAM:${PN} = "-u 5564 -g d_group -G b_group d_user "
16GROUPADD_PARAM:${PN} = "-r d_group"
17
18TESTDIR = "${D}${sysconfdir}/creategroup"
19
20do_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 d_user:d_group ${TESTDIR}/file
29 chown -R d_user:b_group ${TESTDIR}/dir
30 chown -h d_user:d_group ${TESTDIR}/symlink
31 chown -R d_user:b_group ${TESTDIR}/fifotest
32}
33