fix aiccu compile
[openwrt/svn-archive/archive.git] / ipv6 / aiccu / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=aiccu
12 PKG_VERSION:=20070115
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
17 PKG_MD5SUM:=c9bcc83644ed788e22a7c3f3d4021350
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 DEPENDS:=+libpthread +ntpclient +ip +kmod-sit
27 TITLE:=SixXS Automatic IPv6 Connectivity Client Utility
28 URL:=http://www.sixxs.net/tools/aiccu/
29 endef
30
31 define Build/Configure
32 $(SED) "s,strip,/bin/true," $(PKG_BUILD_DIR)/unix-console/Makefile
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 CC="$(TARGET_CC)" OS_NAME="Linux" OS_VERSION="$(LINUX_VERSION)" \
38 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
39 EXTRA_LDFLAGS="$(TARGET_LDFLAGS) -pthread" \
40 DEBUG=0
41 endef
42
43 define Package/aiccu/conffiles
44 /etc/config/aiccu
45 endef
46
47 define Package/aiccu/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/config
51 $(INSTALL_CONF) ./files/aiccu.conf $(1)/etc/config/aiccu
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_BIN) ./files/aiccu.init $(1)/etc/init.d/aiccu
54 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
55 $(INSTALL_DATA) ./files/aiccu.hotplug $(1)/etc/hotplug.d/iface/30-aiccu
56 endef
57
58 $(eval $(call BuildPackage,aiccu))