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
12 PKG_VERSION
:=2006.07.25
15 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.sixxs.net
/archive
/sixxs
/aiccu
/unix
17 PKG_MD5SUM
:=0df76e92eb34f4ce8aa3cfcf6896f271
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=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 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS) -D_GNU_SOURCE -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
39 LDFLAGS
="-lpthread" DEBUG
=0
42 define Package
/aiccu
/install
43 $(INSTALL_DIR
) $(1)/usr
/sbin
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/unix-console
/$(PKG_NAME
) $(1)/usr
/sbin
/
45 $(INSTALL_DIR
) $(1)/etc
46 install -m
644 $(PKG_BUILD_DIR
)/doc
/aiccu.conf
$(1)/etc
/
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_BIN
) .
/files
/aiccu.init
$(1)/etc
/init.d
/aiccu
51 $(eval
$(call BuildPackage
,aiccu
))