kumquat-buildroot/package/logrotate/logrotate.mk
Arnout Vandecappelle (Essensium/Mind) e1502ebc0c all packages: rename XXXTARGETS to xxx-package
Also remove the redundant $(call ...).

This is a purely mechanical change, performed with
find package linux toolchain boot -name \*.mk | \
  xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \
               -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \
               -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/'

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2012-07-17 20:23:05 +02:00

37 lines
1.1 KiB
Makefile

#############################################################
#
# logrotate
#
#############################################################
LOGROTATE_VERSION = 3.7.9
LOGROTATE_SOURCE = logrotate-$(LOGROTATE_VERSION).tar.gz
LOGROTATE_SITE = https://fedorahosted.org/releases/l/o/logrotate/
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
if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then \
$(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf; \
fi
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
endef
define LOGROTATE_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/sbin/logrotate
rm -f $(TARGET_DIR)/etc/logrotate.conf
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
define LOGROTATE_CLEAN_CMDS
-$(MAKE) -C $(@D) clean
endef
$(eval $(generic-package))