19c4a78703087050ad6e78cab08c3c5ae0a23c12
[openwrt/svn-archive/archive.git] / ipv6 / 6tunnel / Makefile
1 #
2 # Copyright (C) 2007 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:=6tunnel
12 PKG_VERSION:=0.11rc1
13 PKG_RELEASE:=2
14 PKG_MD5SUM:=b325fa9d238e32195fbb3fc3646b0d28
15
16 PKG_SOURCE_URL:=http://toxygen.net/6tunnel/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-0.11
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/6tunnel
24 SECTION:=ipv6
25 CATEGORY:=IPv6
26 DEPENDS:=+libpcap
27 TITLE:=IPv4 / IPv6 tunnel proxy
28 URL:=http://toxygen.net/6tunnel/
29 endef
30
31 define Package/6tunnel/description
32 IPv4 / IPv6 tunnel proxy
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default,,ac_cv_path_STRIP=$(STRIP) ac_cv_func_vsnprintf=yes)
37 endef
38
39 define Build/Compile
40 rm -rf $(PKG_INSTALL_DIR)
41 mkdir -p $(PKG_INSTALL_DIR)
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 default
44 endef
45
46 define Package/6tunnel/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/6tunnel $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,6tunnel))