2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
16 http
://ftp.de.debian.org
/debian
/pool
/main
/l
/logrotate \
17 http
://ftp.debian.org
/debian
/pool
/main
/l
/logrotate \
18 http
://ftp.fr.debian.org
/debian
/pool
/main
/l
/logrotate \
19 http
://ftp.us.debian.org
/debian
/pool
/main
/l
/logrotate
20 PKG_MD5SUM
:=b3589bea6d8d5afc8a84134fddaae973
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/logrotate
28 TITLE
:=rotates
, compresses
, and mails system logs
29 URL
:=http
://packages.debian.org
/unstable
/admin
/logrotate
32 define Package
/logrotate
/description
33 logrotate is designed to ease administration of systems that generate
34 large numbers of log files. It allows auto-matic rotation
, compression
,
35 removal and mailing of log files. Each log file may be handled daily
,
36 weekly
, monthly or when it grows too large.
39 define Package
/logrotate
/conffiles
43 EXTRA_CFLAGS
+= $(TARGET_CPPFLAGS
)
44 EXTRA_LDFLAGS
+= $(TARGET_LDFLAGS
)
47 $(call Build
/Compile
/Default
, \
48 RPM_OPT_FLAGS
:="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
49 LDFLAGS
="$(EXTRA_LDFLAGS)" \
54 define Package
/logrotate
/install
55 $(INSTALL_DIR
) $(1)/usr
/sbin
56 $(INSTALL_BIN
) ${PKG_BUILD_DIR}/logrotate
$(1)/usr
/sbin
/
57 $(INSTALL_DIR
) $(1)/etc
58 $(INSTALL_DATA
) .
/files
/logrotate.conf
$(1)/etc
/
59 $(INSTALL_DIR
) $(1)/etc
/logrotate.d
62 $(eval
$(call BuildPackage
,logrotate
))