source: packages/ipv6/6tunnel/Makefile @ 9453

Last change on this file since 9453 was 9453, checked in by juhosg, 9 years ago

[packages] 6tunnel: move init/config files to the right place

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=6tunnel
12PKG_VERSION:=0.11rc1
13PKG_RELEASE:=2
14PKG_MD5SUM:=b325fa9d238e32195fbb3fc3646b0d28
15
16PKG_SOURCE_URL:=http://toxygen.net/6tunnel/
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-0.11
20PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/6tunnel
25  SECTION:=ipv6
26  CATEGORY:=IPv6
27  DEPENDS:=+libpcap
28  TITLE:=IPv4 / IPv6 tunnel proxy
29  URL:=http://toxygen.net/6tunnel/
30endef
31
32define Package/6tunnel/description
33IPv4 / IPv6 tunnel proxy
34endef
35
36define Build/Configure
37$(call Build/Configure/Default,,ac_cv_path_STRIP=$(STRIP) ac_cv_func_vsnprintf=yes)
38endef
39
40define Build/Compile
41        rm -rf $(PKG_INSTALL_DIR)
42        mkdir -p $(PKG_INSTALL_DIR)
43        $(MAKE) -C $(PKG_BUILD_DIR) \
44                default
45endef
46
47define Package/6tunnel/conffiles
48/etc/config/6tunnel
49endef
50
51define Package/6tunnel/install
52        $(INSTALL_DIR) $(1)/usr/sbin
53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/6tunnel $(1)/usr/sbin/
54        $(INSTALL_DIR) $(1)/etc/config
55        $(INSTALL_DATA) ./files/6tunnel.config $(1)/etc/config/6tunnel
56        $(INSTALL_DIR) $(1)/etc/init.d
57        $(INSTALL_BIN) ./files/6tunnel.init $(1)/etc/init.d/6tunnel
58endef
59
60$(eval $(call BuildPackage,6tunnel))
Note: See TracBrowser for help on using the repository browser.