diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-02-15 15:36:28 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-02-15 15:36:28 +0000 |
commit | 687d0b8c9fc71895d397ad52f33c9d45fedfb7af (patch) | |
tree | 0f96c8dfae1cfee3fe75c1c3dcd810601191203c /openwrt/package/logrotate/Makefile | |
parent | 335718dfdc786897a06bd6a2fed8e89688129b15 (diff) |
Added logrotate, fixed CP call in httping, added bind splitting, thanks to Sébastien Bourgasser
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3243 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/logrotate/Makefile')
-rw-r--r-- | openwrt/package/logrotate/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/openwrt/package/logrotate/Makefile b/openwrt/package/logrotate/Makefile new file mode 100644 index 000000000..e6ee9e98b --- /dev/null +++ b/openwrt/package/logrotate/Makefile @@ -0,0 +1,38 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=logrotate +PKG_VERSION:=3.7.1 +PKG_RELEASE:=1 +PKG_MD5SUM:=552639142e163745f6bcd4f1f3816d8a + +PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/logrotate +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz +PKG_CAT:=zcat +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,LOGROTATE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared + touch $@ + +$(PKG_BUILD_DIR)/.built: + make -C ${PKG_BUILD_DIR} \ + CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ + CC=$(TARGET_CC) logrotate + touch $@ + +$(IPKG_LOGROTATE): + mkdir -p $(IDIR_LOGROTATE)/usr/sbin + $(CP) ${PKG_BUILD_DIR}/logrotate $(IDIR_LOGROTATE)/usr/sbin + mkdir -p $(IDIR_LOGROTATE)/etc/logrotate.d + $(CP) ./files/logrotate.conf $(IDIR_LOGROTATE)/etc + $(RSTRIP) $(IDIR_LOGROTATE) + $(IPKG_BUILD) $(IDIR_LOGROTATE) $(PACKAGE_DIR) + +mostlyclean: + make -C $(PKG_BUILD_DIR) clean + rm $(PKG_BUILD_DIR)/.built |