2006-08-05 11:44:30 +00:00
|
|
|
#
|
2012-04-16 22:20:47 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-08-05 11:44:30 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=miredo
|
2011-07-17 09:43:28 +00:00
|
|
|
PKG_VERSION:=1.2.4
|
2012-04-16 22:20:47 +00:00
|
|
|
PKG_RELEASE:=3
|
2006-08-05 11:44:30 +00:00
|
|
|
|
2011-07-17 09:43:28 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.remlab.net/files/miredo
|
2006-08-05 11:44:30 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2011-07-17 09:43:28 +00:00
|
|
|
PKG_MD5SUM:=1281e7e75bddbde244cd778d99fa22d4
|
2006-08-05 11:44:30 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-08-14 14:20:10 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-02-19 00:14:01 +00:00
|
|
|
|
2012-08-05 08:17:07 +00:00
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk
|
2006-08-05 11:44:30 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
define Package/miredo/Default
|
2009-05-28 11:09:40 +00:00
|
|
|
SECTION:=ipv6
|
|
|
|
CATEGORY:=IPv6
|
2007-09-03 15:58:55 +00:00
|
|
|
SUBMENU:=miredo: Teredo (IPv6 tunneling over UDP through NAT)
|
2010-10-19 07:38:56 +00:00
|
|
|
URL:=http://www.remlab.net/miredo/
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
2010-08-14 14:20:10 +00:00
|
|
|
define Package/miredo-common
|
|
|
|
$(call Package/miredo/Default)
|
|
|
|
TITLE:=Teredo (IPv6 tunneling over UDP through NAT) shared libraries
|
2012-08-05 08:17:07 +00:00
|
|
|
DEPENDS+= +ip +libpthread +librt $(CXX_DEPENDS) +kmod-ipv6 +kmod-tun
|
2010-08-14 14:20:10 +00:00
|
|
|
endef
|
|
|
|
|
2006-08-05 11:44:30 +00:00
|
|
|
define Package/miredo-server
|
2007-09-03 15:58:55 +00:00
|
|
|
$(call Package/miredo/Default)
|
2006-08-05 11:44:30 +00:00
|
|
|
TITLE:=Teredo (IPv6 tunneling over UDP through NAT) server daemon
|
2010-08-14 14:20:10 +00:00
|
|
|
DEPENDS+= +miredo-common
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miredo-server/conffiles
|
2010-08-14 14:20:10 +00:00
|
|
|
/etc/miredo/miredo-server.conf
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miredo-client
|
2007-09-03 15:58:55 +00:00
|
|
|
$(call Package/miredo/Default)
|
2006-08-05 11:44:30 +00:00
|
|
|
TITLE:=Teredo (IPv6 tunneling over UDP through NAT) client and relay daemon
|
2010-08-14 14:20:10 +00:00
|
|
|
DEPENDS+= +miredo-common
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miredo-client/conffiles
|
2010-08-14 14:20:10 +00:00
|
|
|
/etc/miredo/miredo.conf
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 15:58:55 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2010-08-14 14:20:10 +00:00
|
|
|
--enable-shared \
|
2006-08-05 11:44:30 +00:00
|
|
|
--enable-static \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-chroot \
|
|
|
|
--enable-teredo-client \
|
2007-09-03 15:58:55 +00:00
|
|
|
--enable-miredo-user=root \
|
2012-08-05 08:17:07 +00:00
|
|
|
--without-Judy
|
|
|
|
|
|
|
|
EXTRA_CXXFLAGS=-fno-rtti
|
2007-09-03 15:58:55 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
2012-08-05 08:17:07 +00:00
|
|
|
LIBS="-lm" \
|
2012-06-13 11:02:30 +00:00
|
|
|
ac_cv_file__proc_self_maps=yes \
|
2012-08-05 08:17:07 +00:00
|
|
|
ac_cv_header_sys_capability_h=no
|
2006-08-05 11:44:30 +00:00
|
|
|
|
2012-08-05 08:17:07 +00:00
|
|
|
MAKE_FLAGS := CXXLINK="$(TARGET_CXX)"
|
2010-08-14 14:20:10 +00:00
|
|
|
|
|
|
|
define Package/miredo-common/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{teredo,tun6}.so.* $(1)/usr/lib/
|
2010-08-22 16:36:35 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/miredo
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/miredo/miredo-privproc $(1)/usr/lib/miredo
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/miredo-server/install
|
2010-08-14 14:20:10 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/miredo
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo-server.conf $(1)/etc/miredo/miredo-server.conf
|
2010-08-22 16:36:35 +00:00
|
|
|
$(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/miredo-server.init $(1)/etc/init.d/miredo-server
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo-server $(1)/usr/sbin/
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
2010-08-22 16:36:35 +00:00
|
|
|
define Package/miredo-client/install
|
2010-08-14 14:20:10 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/miredo
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/miredo/examples/miredo.conf $(1)/etc/miredo/miredo.conf
|
2010-08-22 16:36:35 +00:00
|
|
|
$(INSTALL_BIN) ./files/client-hook $(1)/etc/miredo/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/miredo.init $(1)/etc/init.d/miredo
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo $(1)/usr/sbin/
|
2006-08-05 11:44:30 +00:00
|
|
|
endef
|
|
|
|
|
2010-08-14 14:20:10 +00:00
|
|
|
$(eval $(call BuildPackage,miredo-common))
|
2006-08-05 11:44:30 +00:00
|
|
|
$(eval $(call BuildPackage,miredo-server))
|
|
|
|
$(eval $(call BuildPackage,miredo-client))
|