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