uucp: Require logrotate and install a config file for UUCP

Related: SYS#1189
This commit is contained in:
Holger Hans Peter Freyther 2015-02-22 14:21:29 +01:00
parent 675690cc52
commit 06fe8c4e40
1 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@ PR = "r3.5"
inherit autotools
SRC_URI = "ftp://ftp.gnu.org/pub/gnu/uucp/uucp-${PV}.tar.gz \
file://uucp.logrotate \
file://policy.patch"
do_configure() {
@ -15,6 +16,11 @@ do_configure() {
oe_runconf
}
do_install_append() {
install -d ${D}${sysconfdir}/logrotate.d
install -m 0644 ${WORKDIR}/uucp.logrotate ${D}${sysconfdir}/logrotate.d/uucp
}
EXTRA_OECONF = "--with-newconfigdir=/etc/uucp"
pkg_postinst_${PN} () {
@ -31,6 +37,9 @@ pkg_postinst_${PN} () {
chmod 770 /var/spool/uucp
}
RDEPENDS_${PN} = "logrotate"
CONFFILES_${PN} = "${sysconfdir}/logrotate.d/uucp"
PACKAGES =+ "cu"
FILES_cu = "${bindir}/cu /var/spool"