2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=b325fa9d238e32195fbb3fc3646b0d28
16 PKG_SOURCE_URL
:=http
://toxygen.net
/6tunnel
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-0.11
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/6tunnel
28 TITLE
:=IPv4
/ IPv6 tunnel proxy
29 URL
:=http
://toxygen.net
/6tunnel
/
32 define Package
/6tunnel
/description
33 IPv4
/ IPv6 tunnel proxy
36 define Build
/Configure
37 $(call Build
/Configure
/Default
,,ac_cv_path_STRIP
=$(STRIP
) ac_cv_func_vsnprintf
=yes
)
41 rm -rf
$(PKG_INSTALL_DIR
)
42 mkdir
-p
$(PKG_INSTALL_DIR
)
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 define Package
/6tunnel
/conffiles
51 define 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.conf
$(1)/etc
/config
/6tunnel
56 $(INSTALL_DATA
) .
/files
/6bridge.conf
$(1)/etc
/config
/6bridge
57 $(INSTALL_DIR
) $(1)/etc
/init.d
58 $(INSTALL_BIN
) .
/files
/6tunnel.init
$(1)/etc
/init.d
/6tunnel
59 $(INSTALL_BIN
) .
/files
/6bridge.init
$(1)/etc
/init.d
/6bridge
62 $(eval
$(call BuildPackage
,6tunnel
))