1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2005.01.31
13 PKG_MD5SUM:=7c3da5feab3d59fb5a99a45203e0ca56
15 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
27 TITLE:=SixXS Automatic IPv6 Connectivity Client Utility
28 DESCRIPTION:=SixXS Automatic IPv6 Connectivity Client Utility
29 URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
32 define Build/Configure
33 $(SED) "s,strip,$(STRIP)," $(PKG_BUILD_DIR)/unix-console/Makefile
37 rm -rf $(PKG_INSTALL_DIR)
38 mkdir -p $(PKG_INSTALL_DIR)
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" DEBUG=0
43 define Package/aiccu/install
44 mkdir -p $(1)/usr/sbin $(1)/etc/init.d
45 install -m 755 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
46 install -m 755 ./files/aiccu.init $(1)/etc/init.d/S51aiccu
47 install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(1)/etc/aiccu.conf
50 $(eval $(call BuildPackage,aiccu))