2010-09-26 09:14:09 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# logrotate
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LOGROTATE_VERSION = 3.7.9
|
|
|
|
LOGROTATE_SOURCE = logrotate-$(LOGROTATE_VERSION).tar.gz
|
|
|
|
LOGROTATE_SITE = https://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
|
|
|
|
|
|
|
LOGROTATE_DEPENDENCIES = popt
|
|
|
|
|
|
|
|
define LOGROTATE_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS)" LDFLAGS="$(LDFLAGS)" -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LOGROTATE_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) PREFIX=$(TARGET_DIR) -C $(@D) install
|
2009-03-07 21:17:23 +01:00
|
|
|
if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then \
|
|
|
|
$(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf; \
|
2009-03-05 20:00:17 +01:00
|
|
|
fi
|
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
|
|
|
|
2010-09-26 09:14:09 +02:00
|
|
|
define LOGROTATE_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/logrotate
|
2008-10-07 19:08:25 +02:00
|
|
|
rm -f $(TARGET_DIR)/etc/logrotate.conf
|
2010-09-26 09:14:09 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/man/man5/logrotate.conf.5
|
|
|
|
rm -f $(TARGET_DIR)/usr/man/man8/logrotate.8
|
|
|
|
rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/etc/logrotate.d
|
|
|
|
endef
|
2008-10-06 22:41:12 +02:00
|
|
|
|
2010-09-26 09:14:09 +02:00
|
|
|
define LOGROTATE_CLEAN_CMDS
|
|
|
|
-$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
2008-10-06 22:41:12 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|