2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
17 http
://ftp.de.debian.org
/debian
/pool
/main
/l
/logrotate \
18 http
://ftp.debian.org
/debian
/pool
/main
/l
/logrotate \
19 http
://ftp.fr.debian.org
/debian
/pool
/main
/l
/logrotate \
20 http
://ftp.us.debian.org
/debian
/pool
/main
/l
/logrotate
21 PKG_MD5SUM
:=552639142e163745f6bcd4f1f3816d8a
24 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
25 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/logrotate
33 TITLE
:=rotates
, compresses
, and mails system logs
35 logrotate is designed to ease administration of systems that generate
\\\
36 large numbers of log files. It allows auto-matic rotation
, compression
, \\\
37 removal and mailing of log files. Each log file may be handled daily
, \\\
38 weekly
, monthly or when it grows too large.
39 URL
:=http
://packages.debian.org
/unstable
/admin
/logrotate
42 define Package
/logrotate
/conffiles
46 EXTRA_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include -I
$(STAGING_DIR
)/include
47 EXTRA_LDFLAGS
+= -L
$(STAGING_DIR
)/usr
/lib
50 $(call Build
/Compile
/Default
, \
51 RPM_OPT_FLAGS
:="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
52 LDFLAGS
="$(EXTRA_LDFLAGS)" \
57 define Package
/logrotate
/install
58 $(INSTALL_DIR
) $(1)/usr
/sbin
59 $(CP
) ${PKG_BUILD_DIR}/logrotate
$(1)/usr
/sbin
/
60 $(INSTALL_DIR
) $(1)/etc
61 $(CP
) .
/files
/logrotate.conf
$(1)/etc
/
62 $(INSTALL_DIR
) $(1)/etc
/logrotate.d
65 $(eval
$(call BuildPackage
,logrotate
))