From 8fab0f3222575224c248fb78174644dcd577c84b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 17 Aug 2013 19:14:10 +0200 Subject: [PATCH] uucp: opkg works on files and not directories. Create /var/spool/uucp in postinst Create the spool directory in the post install in case it does not exist yet. Use the -m 0770 to begin with the right default for this directory. --- recipes-extra/uucp/uucp_1.07.bb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/recipes-extra/uucp/uucp_1.07.bb b/recipes-extra/uucp/uucp_1.07.bb index 4221833..e19a217 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.4" +PR = "r3.5" inherit autotools @@ -17,15 +17,16 @@ do_configure() { EXTRA_OECONF = "--with-newconfigdir=/etc/uucp" -do_install_append() { - install -d ${D}/var/spool/uucp -} - pkg_postinst_${PN} () { if [ "x$D" != "x" ] ; then exit 1 fi + # Create the UUCP directory if it does not exist + if [ ! -e /var/spool/uucp ] ; then + mkdir -m 0770 /var/spool/uucp + fi + chown uucp:uucp /var/spool/uucp chmod 770 /var/spool/uucp }