mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
13
package/logrotate/Config.in
Normal file
13
package/logrotate/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_LOGROTATE
|
||||
bool "logrotate"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_POPT
|
||||
help
|
||||
A simple program to rotate logs.
|
||||
|
||||
https://github.com/logrotate/logrotate
|
||||
|
||||
comment "logrotate needs a toolchain w/ wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR
|
||||
14
package/logrotate/logrotate.conf
Normal file
14
package/logrotate/logrotate.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
compress
|
||||
|
||||
include /etc/logrotate.d
|
||||
|
||||
/var/log/messages /var/log/auth.log /var/log/user.log {
|
||||
rotate 7
|
||||
daily
|
||||
delaycompress
|
||||
missingok
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/bin/killall -HUP syslogd
|
||||
endscript
|
||||
}
|
||||
3
package/logrotate/logrotate.hash
Normal file
3
package/logrotate/logrotate.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 011b9e2c7dc785f702f960dc15b7871bd46e53a9a6e336299e4f3d22022986fd logrotate-3.15.0.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
36
package/logrotate/logrotate.mk
Normal file
36
package/logrotate/logrotate.mk
Normal file
@@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
#
|
||||
# logrotate
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LOGROTATE_VERSION = 3.15.0
|
||||
LOGROTATE_SITE = $(call github,logrotate,logrotate,$(LOGROTATE_VERSION))
|
||||
LOGROTATE_LICENSE = GPL-2.0+
|
||||
LOGROTATE_LICENSE_FILES = COPYING
|
||||
LOGROTATE_DEPENDENCIES = popt host-pkgconf
|
||||
# tarball does not have a generated configure script
|
||||
LOGROTATE_AUTORECONF = YES
|
||||
LOGROTATE_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs popt`"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
||||
LOGROTATE_CONF_OPTS += --with-selinux
|
||||
LOGROTATE_DEPENDENCIES += libselinux
|
||||
else
|
||||
LOGROTATE_CONF_OPTS += --without-selinux
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ACL),y)
|
||||
LOGROTATE_DEPENDENCIES += acl
|
||||
LOGROTATE_CONF_OPTS += --with-acl
|
||||
else
|
||||
LOGROTATE_CONF_OPTS += --without-acl
|
||||
endif
|
||||
|
||||
define LOGROTATE_INSTALL_TARGET_CONF
|
||||
$(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
|
||||
endef
|
||||
LOGROTATE_POST_INSTALL_TARGET_HOOKS += LOGROTATE_INSTALL_TARGET_CONF
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user