1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MD5SUM
:=552639142e163745f6bcd4f1f3816d8a
15 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/l
/logrotate
16 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/logrotate
27 TITLE
:=rotates
, compresses
, and mails system logs
28 DESCRIPTION
:=logrotate is designed to ease administration of systems that generate
\\\
29 large numbers of log files. It allows auto-matic rotation
, compression
,\\\
30 removal
, and mailing of log files. Each log file may be handled
\\\
31 daily
, weekly
,monthly
, or when it grows too large.
\\\
32 URL
:=http
://packages.debian.org
/unstable
/admin
/logrotate
35 define Package
/logrotate
/conffiles
40 make
-C
${PKG_BUILD_DIR} \
41 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
42 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
43 CC
="$(TARGET_CC)" logrotate
46 define Package
/logrotate
/install
47 mkdir
-p
$(1)/usr
/sbin
48 $(CP
) ${PKG_BUILD_DIR}/logrotate
$(1)/usr
/sbin
49 mkdir
-p
$(1)/etc
/logrotate.d
50 $(CP
) .
/files
/logrotate.conf
$(1)/etc
53 $(eval
$(call BuildPackage
,logrotate
))