6e76748e731fa4f245d3cf19c45ade18187a5cc3
[openwrt/svn-archive/packages.git] / ipv6 / tspc / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tspc
11 PKG_VERSION:=2.1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.fr.debian.org/debian/pool/main/t/tspc/
16 PKG_MD5SUM:=65183cae002feaacd8bc92d6a5404cc2
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)2
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/tspc
23 SECTION:=ipv6
24 CATEGORY:=IPv6
25 TITLE:=Client for Hexago's (Freenet6's) IPv6 service
26 URL:=http://www.hexago.com
27 endef
28
29 define Package/tspc/description
30 Client to configure an IPv6 tunnel to
31 Hexago's (Freenet6's) migration broker.
32 endef
33
34 MAKE_FLAGS += \
35 CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/include -I$(PKG_BUILD_DIR)/platform/linux" \
36 target=linux \
37 all
38
39 define Package/tspc/install
40 $(INSTALL_DIR) $(1)/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/tspc $(1)/bin/
42 $(INSTALL_DIR) $(1)/etc/tsp
43 $(INSTALL_CONF) $(PKG_BUILD_DIR)/bin/tspc.conf.sample $(1)/etc/tsp/tspc.conf
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/template/linux.sh $(1)/etc/tsp/setup.sh
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/template/checktunnel.sh $(1)/etc/tsp/
46 endef
47
48 $(eval $(call BuildPackage,tspc))