From de0f9b5f3df0153bba420a3beaf4c30dcd1993c3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 16 Mar 2013 18:24:41 +0100 Subject: [PATCH] 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. --- recipes-extra/uucp/uucp_1.07.bb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/recipes-extra/uucp/uucp_1.07.bb b/recipes-extra/uucp/uucp_1.07.bb index dc4471d..4221833 100644 --- a/recipes-extra/uucp/uucp_1.07.bb +++ b/recipes-extra/uucp/uucp_1.07.bb @@ -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"