Port tmsnc to -ng
[openwrt/svn-archive/archive.git] / ipv6 / 6tunnel / 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: Makefile 4112 2006-07-02 20:33:21Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=6tunnel
12 PKG_VERSION:=0.11rc1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=b325fa9d238e32195fbb3fc3646b0d28
15
16 PKG_SOURCE_URL:=http://toxygen.net/6tunnel/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-0.11
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/6tunnel
26 SECTION:=ipv6
27 CATEGORY:=IPv6
28 DEPENDS:=+libpcap
29 TITLE:=IPv4 / IPv6 tunnel proxy
30 DESCRIPTION:=IPv4 / IPv6 tunnel proxy
31 URL:=http://toxygen.net/6tunnel/
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default,,ac_cv_path_STRIP=$(STRIP) ac_cv_func_vsnprintf=yes)
36 endef
37
38 define Build/Compile
39 rm -rf $(PKG_INSTALL_DIR)
40 mkdir -p $(PKG_INSTALL_DIR)
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 default
43 endef
44
45 define Package/6tunnel/install
46 install -m0755 -d $(1)/usr/sbin
47 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
48 endef
49
50 $(eval $(call BuildPackage,6tunnel))