933bf738cc52619b01338bc1d03f5cc9bb8f5752
[openwrt/svn-archive/archive.git] / ipv6 / aiccu / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=aiccu
11 PKG_VERSION:=2005.01.31
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
16 PKG_MD5SUM:=7c3da5feab3d59fb5a99a45203e0ca56
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/aiccu
24 SECTION:=ipv6
25 CATEGORY:=IPv6
26 TITLE:=SixXS Automatic IPv6 Connectivity Client Utility
27 URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
28 endef
29
30 define Build/Configure
31 $(SED) "s,strip,$(STRIP)," $(PKG_BUILD_DIR)/unix-console/Makefile
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" LDFLAGS="-lpthread" DEBUG=0
37 endef
38
39 define Package/aiccu/install
40 install -d -m0755 $(1)/usr/sbin
41 install -m 755 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
42 install -d -m0755 $(1)/etc
43 install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(1)/etc/
44 install -d -m0755 $(1)/etc/init.d
45 install -m 755 ./files/aiccu.init $(1)/etc/init.d/aiccu
46 endef
47
48 $(eval $(call BuildPackage,aiccu))