c7f4b96471
Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk: $(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)) so it is redundant. This patch removes it from $(PKG)_SITE variable for BR consistency. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
27 lines
795 B
Makefile
27 lines
795 B
Makefile
################################################################################
|
|
#
|
|
# logrotate
|
|
#
|
|
################################################################################
|
|
|
|
LOGROTATE_VERSION = 3.8.7
|
|
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
|
|
|
|
$(eval $(generic-package))
|