4486455c5d
Fixes http://autobuild.buildroot.net/results/815/815e2759f4961805d768efe79f0d83d13b16e706/build-end.log Certain wget versions dislike downloading from fedorahosted.org which provides a SSL certificate for *.fedorahosted.org. Work around it by instead downloading from www.fedorahosted.org instead. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
#############################################################
|
|
#
|
|
# logrotate
|
|
#
|
|
#############################################################
|
|
LOGROTATE_VERSION = 3.8.4
|
|
LOGROTATE_SOURCE = logrotate-$(LOGROTATE_VERSION).tar.gz
|
|
LOGROTATE_SITE = https://www.fedorahosted.org/releases/l/o/logrotate/
|
|
LOGROTATE_LICENSE = GPLv2+
|
|
LOGROTATE_LICENSE_FILES = COPYING
|
|
|
|
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))
|