1 ################################################################################
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
20 LOGROTATE_CONF_OPTS
+= --without-selinux
23 ifeq ($(BR2_PACKAGE_ACL
),y
)
24 LOGROTATE_DEPENDENCIES
+= acl
25 LOGROTATE_CONF_OPTS
+= --with-acl
27 LOGROTATE_CONF_OPTS
+= --without-acl
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
34 LOGROTATE_POST_INSTALL_TARGET_HOOKS
+= LOGROTATE_INSTALL_TARGET_CONF
36 $(eval
$(autotools-package
))