linux-pam: add optional libselinux and audit dependencies
[buildroot-gz.git] / package / logrotate / logrotate.mk
blob4a70040279aae35ebed59271623c8251ee343319
1 ################################################################################
3 # logrotate
5 ################################################################################
7 LOGROTATE_VERSION = 3.8.9
8 LOGROTATE_SITE = https://www.fedorahosted.org/releases/l/o/logrotate
9 LOGROTATE_LICENSE = GPLv2+
10 LOGROTATE_LICENSE_FILES = COPYING
11 LOGROTATE_DEPENDENCIES = popt host-pkgconf
12 # tarball does not have a generated configure script
13 LOGROTATE_AUTORECONF = YES
14 LOGROTATE_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs popt`"
15 LOGROTATE_CONF_OPTS = --without-selinux
17 ifeq ($(BR2_PACKAGE_ACL),y)
18 LOGROTATE_DEPENDENCIES += acl
19 LOGROTATE_CONF_OPTS += --with-acl
20 else
21 LOGROTATE_CONF_OPTS += --without-acl
22 endif
24 define LOGROTATE_INSTALL_TARGET_CONF
25 $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
26 $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
27 endef
28 LOGROTATE_POST_INSTALL_TARGET_HOOKS += LOGROTATE_INSTALL_TARGET_CONF
30 $(eval $(autotools-package))