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