uucp: We are forced to chown this after the installation
We could use "fakeroot do_install() {}" but this will still not make the spool directory be owned by uucp. Use a postinst script to make this up. The logic is copied from the cronie bitbake file and we will see how this works at image creation time.
This commit is contained in:
parent
aea5136f30
commit
de0f9b5f3d
|
@ -3,7 +3,7 @@ HOMEPAGE = "http://www.airs.com/ian/uucp.html"
|
|||
SECTION = "console/utils"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
PR = "r3"
|
||||
PR = "r3.4"
|
||||
|
||||
inherit autotools
|
||||
|
||||
|
@ -18,7 +18,16 @@ do_configure() {
|
|||
EXTRA_OECONF = "--with-newconfigdir=/etc/uucp"
|
||||
|
||||
do_install_append() {
|
||||
fakeroot install -d -g uucp -o uucp ${D}/var/spool/uucp
|
||||
install -d ${D}/var/spool/uucp
|
||||
}
|
||||
|
||||
pkg_postinst_${PN} () {
|
||||
if [ "x$D" != "x" ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
chown uucp:uucp /var/spool/uucp
|
||||
chmod 770 /var/spool/uucp
|
||||
}
|
||||
|
||||
PACKAGES =+ "cu"
|
||||
|
|
Loading…
Reference in New Issue