1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# logrotate 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunLOGROTATE_VERSION = 3.18.0 8*4882a593SmuzhiyunLOGROTATE_SOURCE = logrotate-3.18.0.tar.xz 9*4882a593SmuzhiyunLOGROTATE_SITE = https://github.com/logrotate/logrotate/releases/download/$(LOGROTATE_VERSION) 10*4882a593SmuzhiyunLOGROTATE_LICENSE = GPL-2.0+ 11*4882a593SmuzhiyunLOGROTATE_LICENSE_FILES = COPYING 12*4882a593SmuzhiyunLOGROTATE_CPE_ID_VENDOR = logrotate_project 13*4882a593SmuzhiyunLOGROTATE_DEPENDENCIES = popt host-pkgconf 14*4882a593SmuzhiyunLOGROTATE_SELINUX_MODULES = logrotate 15*4882a593SmuzhiyunLOGROTATE_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs popt`" 16*4882a593Smuzhiyun 17*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBSELINUX),y) 18*4882a593SmuzhiyunLOGROTATE_CONF_OPTS += --with-selinux 19*4882a593SmuzhiyunLOGROTATE_DEPENDENCIES += libselinux 20*4882a593Smuzhiyunelse 21*4882a593SmuzhiyunLOGROTATE_CONF_OPTS += --without-selinux 22*4882a593Smuzhiyunendif 23*4882a593Smuzhiyun 24*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ACL),y) 25*4882a593SmuzhiyunLOGROTATE_DEPENDENCIES += acl 26*4882a593SmuzhiyunLOGROTATE_CONF_OPTS += --with-acl 27*4882a593Smuzhiyunelse 28*4882a593SmuzhiyunLOGROTATE_CONF_OPTS += --without-acl 29*4882a593Smuzhiyunendif 30*4882a593Smuzhiyun 31*4882a593Smuzhiyundefine LOGROTATE_INSTALL_TARGET_CONF 32*4882a593Smuzhiyun $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf 33*4882a593Smuzhiyun $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d 34*4882a593Smuzhiyunendef 35*4882a593SmuzhiyunLOGROTATE_POST_INSTALL_TARGET_HOOKS += LOGROTATE_INSTALL_TARGET_CONF 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun$(eval $(autotools-package)) 38