Port vgp to -ng
[openwrt/svn-archive/archive.git] / net / 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 PKG_MD5SUM:=7c3da5feab3d59fb5a99a45203e0ca56
14
15 PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/aiccu
25 SECTION:=net
26 CATEGORY:=Network
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
30 endef
31
32 define Build/Configure
33 $(SED) "s,strip,$(STRIP)," $(PKG_BUILD_DIR)/unix-console/Makefile
34 endef
35
36 define Build/Compile
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
41 endef
42
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
48 endef
49
50 $(eval $(call BuildPackage,aiccu))