add y354C's patch for maximum nat connections in netfilter
[openwrt.git] / openwrt / package / aiccu / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=aiccu
4 PKG_VERSION:=2005.01.31
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=7c3da5feab3d59fb5a99a45203e0ca56
7
8 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
9 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
10 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
11 PKG_CAT:=zcat
12 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
13 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
14
15 $(DL_DIR)/$(PKG_SOURCE):
16 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
17
18 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE)
19 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
20 touch $(PKG_BUILD_DIR)/.unpacked
21
22 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME): $(PKG_BUILD_DIR)/.unpacked
23 $(SED) "s,strip,$(STRIP)," $(PKG_BUILD_DIR)/unix-console/Makefile
24 $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" DEBUG=0 -C $(PKG_BUILD_DIR)
25
26 $(PKG_IPK): $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME)
27 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
28 mkdir -p $(PKG_IPK_DIR)/usr/sbin $(PKG_IPK_DIR)/etc/init.d
29 install -m 755 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(PKG_IPK_DIR)/usr/sbin/
30 install -m 755 ./files/S51aiccu $(PKG_IPK_DIR)/etc/init.d/
31 install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(PKG_IPK_DIR)/etc/aiccu.conf
32 $(STRIP) $(PKG_IPK_DIR)/usr/sbin/*
33 mkdir -p $(PACKAGE_DIR)
34 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
35
36 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK)
37 $(IPKG) install $(PKG_IPK)
38
39 source: $(DL_DIR)/$(PKG_SOURCE)
40 prepare: $(PKG_BUILD_DIR)/.unpacked
41 compile: $(PKG_IPK)
42 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
43
44 clean:
45 rm -rf $(PKG_BUILD_DIR)
46 rm -f $(PKG_IPK)
This page took 0.050438 seconds and 5 git commands to generate.