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
|
|
|
|
2015-03-30 02:32:36 +02:00
|
|
|
LOGROTATE_VERSION = 3.8.9
|
2014-07-31 10:46:58 +02:00
|
|
|
LOGROTATE_SITE = https://www.fedorahosted.org/releases/l/o/logrotate
|
2012-11-13 02:05:49 +01:00
|
|
|
LOGROTATE_LICENSE = GPLv2+
|
|
|
|
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`"
|
2015-03-30 02:32:36 +02:00
|
|
|
LOGROTATE_CONF_OPTS = --without-selinux
|
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))
|