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
|
|
|
|
2013-12-28 03:22:28 +01:00
|
|
|
LOGROTATE_VERSION = 3.8.7
|
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
|
2010-09-26 09:14:09 +02:00
|
|
|
|
2015-03-01 22:06:53 +01:00
|
|
|
LOGROTATE_DEPENDENCIES = popt host-pkgconf
|
2010-09-26 09:14:09 +02:00
|
|
|
|
|
|
|
define LOGROTATE_BUILD_CMDS
|
2015-03-01 22:06:53 +01:00
|
|
|
$(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS)" LDFLAGS="$(LDFLAGS)" \
|
|
|
|
LOADLIBES="$(shell $(PKG_CONFIG_HOST_BINARY) --libs popt)" \
|
|
|
|
-C $(@D)
|
2010-09-26 09:14:09 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LOGROTATE_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) PREFIX=$(TARGET_DIR) -C $(@D) install
|
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
|
2008-10-06 22:41:12 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|