CATEGORY:=Utilities
DEPENDS:=+libpopt
TITLE:=rotates, compresses, and mails system logs
- 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.
URL:=http://packages.debian.org/unstable/admin/logrotate
endef
+define Package/logrotate/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.
+endef
+
define Package/logrotate/conffiles
/etc/logrotate.conf
endef
+EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
+EXTRA_LDFLAGS += -L$(STAGING_DIR)/usr/lib
+
define Build/Compile
$(call Build/Compile/Default, \
- RPM_OPT_FLAGS="\$$$$(EXTRA_CFLAGS)" \
- LDFLAGS="\$$$$(EXTRA_LDFLAGS)" \
+ RPM_OPT_FLAGS:="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
+ LDFLAGS="$(EXTRA_LDFLAGS)" \
logrotate \
)
endef
define Package/logrotate/install
- install -d -m0755 $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/usr/sbin
$(CP) ${PKG_BUILD_DIR}/logrotate $(1)/usr/sbin/
- install -d -m0755 $(1)/etc
+ $(INSTALL_DIR) $(1)/etc
$(CP) ./files/logrotate.conf $(1)/etc/
- install -d -m0755 $(1)/etc/logrotate.d
+ $(INSTALL_DIR) $(1)/etc/logrotate.d
endef
$(eval $(call BuildPackage,logrotate))