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