2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-03 13:50:49 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=logrotate
|
|
|
|
PKG_VERSION:=3.7.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
2006-08-04 19:19:28 +00:00
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
http://ftp.de.debian.org/debian/pool/main/l/logrotate \
|
|
|
|
http://ftp.debian.org/debian/pool/main/l/logrotate \
|
|
|
|
http://ftp.fr.debian.org/debian/pool/main/l/logrotate \
|
|
|
|
http://ftp.us.debian.org/debian/pool/main/l/logrotate
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_MD5SUM:=552639142e163745f6bcd4f1f3816d8a
|
2006-08-03 13:50:49 +00:00
|
|
|
PKG_CAT:=zcat
|
2006-10-30 13:51:50 +00:00
|
|
|
|
2006-08-03 13:50:49 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/logrotate
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libpopt
|
|
|
|
TITLE:=rotates, compresses, and mails system logs
|
2006-10-30 13:51:50 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
logrotate is designed to ease administration of systems that generate \\\
|
|
|
|
large numbers of log files. It allows auto-matic rotation, compression, \\\
|
|
|
|
removal and mailing of log files. Each log file may be handled daily, \\\
|
|
|
|
weekly, monthly or when it grows too large.
|
2006-08-03 13:50:49 +00:00
|
|
|
URL:=http://packages.debian.org/unstable/admin/logrotate
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/logrotate/conffiles
|
|
|
|
/etc/logrotate.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Compile/Default, \
|
|
|
|
RPM_OPT_FLAGS="\$$$$(EXTRA_CFLAGS)" \
|
|
|
|
LDFLAGS="\$$$$(EXTRA_LDFLAGS)" \
|
|
|
|
logrotate \
|
|
|
|
)
|
2006-08-03 13:50:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/logrotate/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) ${PKG_BUILD_DIR}/logrotate $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) ./files/logrotate.conf $(1)/etc/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/logrotate.d
|
2006-08-03 13:50:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,logrotate))
|