python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / logrotate / logrotate.mk
blob5fd779e6448b6e218b02652eb7a9d8009f6c69b9
1 ################################################################################
3 # logrotate
5 ################################################################################
7 LOGROTATE_VERSION = 3.11.0
8 LOGROTATE_SITE = $(call github,logrotate,logrotate,$(LOGROTATE_VERSION))
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`"
16 ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
17 LOGROTATE_CONF_OPTS += --with-selinux
18 LOGROTATE_DEPENDENCIES += libselinux
19 else
20 LOGROTATE_CONF_OPTS += --without-selinux
21 endif
23 ifeq ($(BR2_PACKAGE_ACL),y)
24 LOGROTATE_DEPENDENCIES += acl
25 LOGROTATE_CONF_OPTS += --with-acl
26 else
27 LOGROTATE_CONF_OPTS += --without-acl
28 endif
30 define LOGROTATE_INSTALL_TARGET_CONF
31 $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
32 $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
33 endef
34 LOGROTATE_POST_INSTALL_TARGET_HOOKS += LOGROTATE_INSTALL_TARGET_CONF
36 $(eval $(autotools-package))