2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-09-26 09:14:09 +02:00
|
|
|
#
|
|
|
|
# logrotate
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2017-10-17 17:12:53 +02:00
|
|
|
LOGROTATE_VERSION = 3.13.0
|
2016-06-16 08:06:08 +02:00
|
|
|
LOGROTATE_SITE = $(call github,logrotate,logrotate,$(LOGROTATE_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
LOGROTATE_LICENSE = GPL-2.0+
|
2012-11-13 02:05:49 +01:00
|
|
|
LOGROTATE_LICENSE_FILES = COPYING
|
2015-03-01 22:06:53 +01:00
|
|
|
LOGROTATE_DEPENDENCIES = popt host-pkgconf
|
2015-03-30 02:32:36 +02:00
|
|
|
# tarball does not have a generated configure script
|
|
|
|
LOGROTATE_AUTORECONF = YES
|
2015-07-12 16:35:26 +02:00
|
|
|
LOGROTATE_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs popt`"
|
2017-02-07 15:04:11 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
LOGROTATE_CONF_OPTS += --with-selinux
|
|
|
|
LOGROTATE_DEPENDENCIES += libselinux
|
|
|
|
else
|
|
|
|
LOGROTATE_CONF_OPTS += --without-selinux
|
|
|
|
endif
|
2010-09-26 09:14:09 +02:00
|
|
|
|
2015-03-30 02:32:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
|
|
LOGROTATE_DEPENDENCIES += acl
|
|
|
|
LOGROTATE_CONF_OPTS += --with-acl
|
|
|
|
else
|
|
|
|
LOGROTATE_CONF_OPTS += --without-acl
|
|
|
|
endif
|
2010-09-26 09:14:09 +02:00
|
|
|
|
2015-03-30 02:32:36 +02:00
|
|
|
define LOGROTATE_INSTALL_TARGET_CONF
|
2014-11-30 15:18:53 +01:00
|
|
|
$(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
|
2008-10-06 22:41:12 +02:00
|
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
|
2010-09-26 09:14:09 +02:00
|
|
|
endef
|
2015-03-30 02:32:36 +02:00
|
|
|
LOGROTATE_POST_INSTALL_TARGET_HOOKS += LOGROTATE_INSTALL_TARGET_CONF
|
2008-10-06 22:41:12 +02:00
|
|
|
|
2015-03-30 02:32:36 +02:00
|
|
|
$(eval $(autotools-package))
|