logrotate: Add ACL support
Various Makefile cleanups. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
1fd46bfacc
commit
788318625d
1 changed files with 19 additions and 11 deletions
|
@ -9,22 +9,33 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=logrotate
|
PKG_NAME:=logrotate
|
||||||
PKG_VERSION:=3.15.0
|
PKG_VERSION:=3.15.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:= https://github.com/logrotate/logrotate/releases/download/$(PKG_VERSION)
|
PKG_SOURCE_URL:= https://github.com/logrotate/logrotate/releases/download/$(PKG_VERSION)
|
||||||
PKG_HASH:=313612c4776a305393454c874ef590d8acf84c9ffa648717731dfe902284ff8f
|
PKG_HASH:=313612c4776a305393454c874ef590d8acf84c9ffa648717731dfe902284ff8f
|
||||||
PKG_LICENSE:=GPL-2.0
|
|
||||||
|
PKG_MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
|
||||||
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/logrotate
|
define Package/logrotate
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
DEPENDS:=+libpopt
|
DEPENDS:=+libpopt +LOGROTATE_ACL:libacl
|
||||||
TITLE:=rotates, compresses, and mails system logs
|
TITLE:=rotates, compresses, and mails system logs
|
||||||
URL:=https://github.com/logrotate/logrotate
|
URL:=https://github.com/logrotate/logrotate
|
||||||
MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
|
MENU:=1
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/logrotate/config
|
||||||
|
config LOGROTATE_ACL
|
||||||
|
bool
|
||||||
|
prompt "Enable ACL support"
|
||||||
|
default y if USE_FS_ACL_ATTR
|
||||||
|
default n
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/logrotate/description
|
define Package/logrotate/description
|
||||||
|
@ -38,20 +49,17 @@ define Package/logrotate/conffiles
|
||||||
/etc/logrotate.conf
|
/etc/logrotate.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += --with-acl=no
|
CONFIGURE_ARGS += $(if $(CONFIG_LOGROTATE_ACL),--with,--without)-acl
|
||||||
|
|
||||||
EXTRA_CFLAGS += $(TARGET_CPPFLAGS) -Wno-nonnull-compare
|
|
||||||
EXTRA_LDFLAGS += $(TARGET_LDFLAGS)
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default, \
|
$(call Build/Compile/Default, \
|
||||||
RPM_OPT_FLAGS:="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
RPM_OPT_FLAGS:="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
||||||
LDFLAGS="$(EXTRA_LDFLAGS)" \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
logrotate \
|
logrotate \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/logrotate/install
|
define Package/logrotate/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) ${PKG_BUILD_DIR}/logrotate $(1)/usr/sbin/
|
$(INSTALL_BIN) ${PKG_BUILD_DIR}/logrotate $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
|
|
Loading…
Reference in a new issue