2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
21 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS
:=+libpthread
+ntpclient
+ip
+kmod-sit
27 TITLE
:=SixXS Automatic IPv6 Connectivity Client Utility
28 URL
:=http
://www.sixxs.net
/tools
/aiccu
/
31 define Build
/Configure
32 $(SED
) "s,strip,/bin/true," $(PKG_BUILD_DIR
)/unix-console
/Makefile
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 CFLAGS
="$(TARGET_CFLAGS) -D_GNU_SOURCE -DAICCU_CONSOLE -DHAS_IFHEAD -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
39 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpthread" \
43 define Package
/aiccu
/install
44 $(INSTALL_DIR
) $(1)/usr
/sbin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/unix-console
/$(PKG_NAME
) $(1)/usr
/sbin
/
46 $(INSTALL_DIR
) $(1)/etc
47 $(INSTALL_CONF
) .
/files
/aiccu.conf
$(1)/etc
/
48 $(INSTALL_DIR
) $(1)/etc
/init.d
49 $(INSTALL_BIN
) .
/files
/aiccu.init
$(1)/etc
/init.d
/aiccu
50 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
51 $(INSTALL_DATA
) .
/files
/aiccu.hotplug
$(1)/etc
/hotplug.d
/iface
/30-aiccu
54 $(eval
$(call BuildPackage
,aiccu
))