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