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.
This commit is contained in:
parent
4f6d4893ce
commit
8fab0f3222
|
@ -3,7 +3,7 @@ HOMEPAGE = "http://www.airs.com/ian/uucp.html"
|
||||||
SECTION = "console/utils"
|
SECTION = "console/utils"
|
||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||||
PR = "r3.4"
|
PR = "r3.5"
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools
|
||||||
|
|
||||||
|
@ -17,15 +17,16 @@ do_configure() {
|
||||||
|
|
||||||
EXTRA_OECONF = "--with-newconfigdir=/etc/uucp"
|
EXTRA_OECONF = "--with-newconfigdir=/etc/uucp"
|
||||||
|
|
||||||
do_install_append() {
|
|
||||||
install -d ${D}/var/spool/uucp
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
if [ "x$D" != "x" ] ; then
|
if [ "x$D" != "x" ] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
chown uucp:uucp /var/spool/uucp
|
||||||
chmod 770 /var/spool/uucp
|
chmod 770 /var/spool/uucp
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue