blob: 021b1ebbf77d988306ec3ad2044d2f1a279b4222 [file] [log] [blame]
Patrick Williams39653562024-03-01 08:54:02 -06001SUMMARY = "creategroup_c"
2LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
3
4LICENSE = "MIT"
5
6USERADD_DEPENDS = "acreategroup"
7
8S = "${WORKDIR}"
9
10EXCLUDE_FROM_WORLD="1"
11
12inherit useradd allarch
13
14USERADD_PACKAGES = "${PN}"
15USERADD_PARAM:${PN} = "-u 5563 --gid c_group -G a_group c_user"
16GROUPADD_PARAM:${PN} = "-r c_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 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
34FILES:${PN} = "${sysconfdir}/creategroup/*"