massive Makefile cleanup, add missing 'svn:keywords' property
[packages.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:=2005.01.31
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:=7c3da5feab3d59fb5a99a45203e0ca56
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/aiccu
25   SECTION:=ipv6
26   CATEGORY:=IPv6
27   TITLE:=SixXS Automatic IPv6 Connectivity Client Utility
28   URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
29 endef
30
31 define Build/Configure
32         $(SED) "s,strip,$(STRIP)," $(PKG_BUILD_DIR)/unix-console/Makefile
33 endef
34
35 define Build/Compile
36         $(MAKE) -C $(PKG_BUILD_DIR) \
37                 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" LDFLAGS="-lpthread" DEBUG=0
38 endef
39
40 define Package/aiccu/install
41         install -d -m0755 $(1)/usr/sbin
42         install -m 755 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(1)/usr/sbin/
43         install -d -m0755 $(1)/etc
44         install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(1)/etc/
45         install -d -m0755 $(1)/etc/init.d
46         install -m 755 ./files/aiccu.init $(1)/etc/init.d/aiccu
47 endef
48
49 $(eval $(call BuildPackage,aiccu))