Added logrotate, fixed CP call in httping, added bind splitting, thanks to S├ębastien...
[openwrt/svn-archive/archive.git] / openwrt / package / logrotate / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=logrotate
4 PKG_VERSION:=3.7.1
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=552639142e163745f6bcd4f1f3816d8a
7
8 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/logrotate
9 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
10 PKG_CAT:=zcat
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,LOGROTATE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
19 touch $@
20
21 $(PKG_BUILD_DIR)/.built:
22 make -C ${PKG_BUILD_DIR} \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
25 CC=$(TARGET_CC) logrotate
26 touch $@
27
28 $(IPKG_LOGROTATE):
29 mkdir -p $(IDIR_LOGROTATE)/usr/sbin
30 $(CP) ${PKG_BUILD_DIR}/logrotate $(IDIR_LOGROTATE)/usr/sbin
31 mkdir -p $(IDIR_LOGROTATE)/etc/logrotate.d
32 $(CP) ./files/logrotate.conf $(IDIR_LOGROTATE)/etc
33 $(RSTRIP) $(IDIR_LOGROTATE)
34 $(IPKG_BUILD) $(IDIR_LOGROTATE) $(PACKAGE_DIR)
35
36 mostlyclean:
37 make -C $(PKG_BUILD_DIR) clean
38 rm $(PKG_BUILD_DIR)/.built