miredo: remove package
According to official website [1], Miredo is no longer maintained and default Teredo server has been terminated. From upstream website: > The source code and documentation will be > kept here for historical reasons. [1]: https://www.remlab.net/miredo/ Signed-off-by: Yanase Yuki <dev@zpc.st>
This commit is contained in:
parent
b0b5b8bf67
commit
650152b824
|
@ -1,73 +0,0 @@
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
|
|
||||||
PKG_NAME:=miredo
|
|
||||||
PKG_VERSION:=1.2.6
|
|
||||||
PKG_RELEASE:=3
|
|
||||||
|
|
||||||
PKG_SOURCE:=miredo-$(PKG_VERSION).tar.xz
|
|
||||||
PKG_SOURCE_URL:=https://www.remlab.net/files/miredo/
|
|
||||||
PKG_HASH:=fa26d2f4a405415833669e2e2e22677b225d8f83600844645d5683535ea43149
|
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
|
||||||
CONFIG_IPV6 \
|
|
||||||
CONFIG_TUN
|
|
||||||
PKG_BUILD_PARALLEL:=1
|
|
||||||
PKG_CHECK_FORMAT_SECURITY:=0
|
|
||||||
PKG_INSTALL:=1
|
|
||||||
PKG_BUILD_FLAGS:=gc-sections
|
|
||||||
|
|
||||||
PKG_MAINTAINER:=
|
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
|
||||||
PKG_LICENSE_FILES:=COPYING
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
|
||||||
|
|
||||||
define Package/miredo
|
|
||||||
SECTION:=net
|
|
||||||
CATEGORY:=Network
|
|
||||||
TITLE:=Teredo IPv6 tunneling utility
|
|
||||||
URL:=https://www.remlab.net/miredo/
|
|
||||||
DEPENDS:=@IPV6 +libpthread +librt +kmod-tun
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/miredo/description
|
|
||||||
Miredo is an open-source Teredo IPv6 tunneling software, for Linux and the BSD
|
|
||||||
operating systems. It includes functional implementations of all components of
|
|
||||||
the Teredo specification (client, relay and server). It is meant to provide
|
|
||||||
IPv6 connectivity even from behind NAT devices.
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/miredo/conffiles
|
|
||||||
/etc/miredo/miredo.conf
|
|
||||||
endef
|
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-static \
|
|
||||||
--disable-binreloc \
|
|
||||||
--with-pic \
|
|
||||||
--without-libiconv-prefix \
|
|
||||||
--without-libintl-prefix
|
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
|
||||||
ac_cv_header_sys_capability_h=no
|
|
||||||
|
|
||||||
TARGET_CFLAGS+= \
|
|
||||||
$(FPIC)
|
|
||||||
|
|
||||||
define Package/miredo/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo $(1)/usr/sbin/
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo-checkconf $(1)/usr/sbin/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/miredo
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/miredo/miredo-privproc $(1)/usr/lib/miredo
|
|
||||||
$(INSTALL_DIR) $(1)/etc/miredo
|
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/miredo/miredo.conf $(1)/etc/miredo
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/miredo/client-hook $(1)/etc/miredo
|
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
||||||
$(INSTALL_BIN) ./files/miredo.init $(1)/etc/init.d/miredo
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,miredo))
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/sh /etc/rc.common
|
|
||||||
|
|
||||||
USE_PROCD=1
|
|
||||||
START=41
|
|
||||||
|
|
||||||
PROG=/usr/sbin/miredo
|
|
||||||
CONFFILE=/etc/miredo/miredo.conf
|
|
||||||
|
|
||||||
start_service() {
|
|
||||||
procd_open_instance
|
|
||||||
procd_set_param command $PROG -f -c $CONFFILE
|
|
||||||
procd_set_param respawn
|
|
||||||
procd_set_param file $CONFFILE
|
|
||||||
procd_set_param stdout 1 # forward stdout of the command to logd
|
|
||||||
procd_set_param stderr 1 # same for stderr
|
|
||||||
procd_close_instance
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
--- a/libteredo/debug.h
|
|
||||||
+++ b/libteredo/debug.h
|
|
||||||
@@ -43,8 +43,10 @@ static inline void debug (const char *st
|
|
||||||
# ifdef __linux__
|
|
||||||
# include <errno.h>
|
|
||||||
# include <assert.h>
|
|
||||||
-# undef PTHREAD_MUTEX_INITIALIZER
|
|
||||||
-# define PTHREAD_MUTEX_INITIALIZER PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
|
|
||||||
+# if defined(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP)
|
|
||||||
+# undef PTHREAD_MUTEX_INITIALIZER
|
|
||||||
+# define PTHREAD_MUTEX_INITIALIZER PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
|
|
||||||
+# endif
|
|
||||||
|
|
||||||
static inline int
|
|
||||||
d_pthread_mutex_init (pthread_mutex_t *mutex, pthread_mutexattr_t *pattr)
|
|
||||||
@@ -57,7 +59,7 @@ d_pthread_mutex_init (pthread_mutex_t *m
|
|
||||||
pthread_mutexattr_init (&attr);
|
|
||||||
}
|
|
||||||
|
|
||||||
- pthread_mutexattr_settype (pattr, PTHREAD_MUTEX_ERRORCHECK_NP);
|
|
||||||
+ pthread_mutexattr_settype (pattr, PTHREAD_MUTEX_ERRORCHECK);
|
|
||||||
int res = pthread_mutex_init (mutex, pattr);
|
|
||||||
|
|
||||||
if (pattr == &attr)
|
|
|
@ -1,20 +0,0 @@
|
||||||
--- a/libtun6/tun6.c
|
|
||||||
+++ b/libtun6/tun6.c
|
|
||||||
@@ -53,7 +53,7 @@
|
|
||||||
const char os_driver[] = "Linux";
|
|
||||||
# define USE_LINUX 1
|
|
||||||
|
|
||||||
-# include <linux/if_tun.h> // TUNSETIFF - Linux tunnel driver
|
|
||||||
+# include <linux/if_tun.h> // TUNSETIFF - Linux tunnel driver, ETH_P_IPV6
|
|
||||||
/*
|
|
||||||
* <linux/ipv6.h> conflicts with <netinet/in.h> and <arpa/inet.h>,
|
|
||||||
* so we've got to declare this structure by hand.
|
|
||||||
@@ -65,7 +65,7 @@ struct in6_ifreq {
|
|
||||||
};
|
|
||||||
|
|
||||||
# include <net/route.h> // struct in6_rtmsg
|
|
||||||
-# include <netinet/if_ether.h> // ETH_P_IPV6
|
|
||||||
+//# include <netinet/if_ether.h> // ETH_P_IPV6
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
|
@ -1,47 +0,0 @@
|
||||||
--- a/include/gettext.h
|
|
||||||
+++ b/include/gettext.h
|
|
||||||
@@ -182,7 +182,7 @@ npgettext_aux (const char *domain,
|
|
||||||
(((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined(__STRICT_ANSI__)) \
|
|
||||||
/* || __STDC_VERSION__ >= 199901L */ )
|
|
||||||
|
|
||||||
-#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
|
|
||||||
+#if !defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
|
|
||||||
#include <stdlib.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ dcpgettext_expr (const char *domain,
|
|
||||||
size_t msgctxt_len = strlen (msgctxt) + 1;
|
|
||||||
size_t msgid_len = strlen (msgid) + 1;
|
|
||||||
const char *translation;
|
|
||||||
-#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
|
|
||||||
+#if defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
|
|
||||||
char msg_ctxt_id[msgctxt_len + msgid_len];
|
|
||||||
#else
|
|
||||||
char buf[1024];
|
|
||||||
@@ -221,7 +221,7 @@ dcpgettext_expr (const char *domain,
|
|
||||||
msg_ctxt_id[msgctxt_len - 1] = '\004';
|
|
||||||
memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
|
|
||||||
translation = dcgettext (domain, msg_ctxt_id, category);
|
|
||||||
-#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
|
|
||||||
+#if !defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
|
|
||||||
if (msg_ctxt_id != buf)
|
|
||||||
free (msg_ctxt_id);
|
|
||||||
#endif
|
|
||||||
@@ -252,7 +252,7 @@ dcnpgettext_expr (const char *domain,
|
|
||||||
size_t msgctxt_len = strlen (msgctxt) + 1;
|
|
||||||
size_t msgid_len = strlen (msgid) + 1;
|
|
||||||
const char *translation;
|
|
||||||
-#if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
|
|
||||||
+#if defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
|
|
||||||
char msg_ctxt_id[msgctxt_len + msgid_len];
|
|
||||||
#else
|
|
||||||
char buf[1024];
|
|
||||||
@@ -267,7 +267,7 @@ dcnpgettext_expr (const char *domain,
|
|
||||||
msg_ctxt_id[msgctxt_len - 1] = '\004';
|
|
||||||
memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
|
|
||||||
translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category);
|
|
||||||
-#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
|
|
||||||
+#if !defined(_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS)
|
|
||||||
if (msg_ctxt_id != buf)
|
|
||||||
free (msg_ctxt_id);
|
|
||||||
#endif
|
|
|
@ -1,26 +0,0 @@
|
||||||
From: Tomasz Buchert <tomasz@debian.org>
|
|
||||||
Date: Fri, 6 Feb 2015 11:33:20 +0100
|
|
||||||
Subject: Fix reproducibility issues
|
|
||||||
|
|
||||||
We replace unreproducible CC macros with
|
|
||||||
N/A placeholders. This fixes #776716.
|
|
||||||
---
|
|
||||||
src/main.c | 6 +++---
|
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
--- a/src/main.c
|
|
||||||
+++ b/src/main.c
|
|
||||||
@@ -92,10 +92,11 @@ miredo_version (void)
|
|
||||||
#ifndef VERSION
|
|
||||||
# define VERSION "unknown version"
|
|
||||||
#endif
|
|
||||||
+ const char* UNKNOWN = "N/A";
|
|
||||||
printf (_("Miredo: Teredo IPv6 tunneling software %s (%s)\n"
|
|
||||||
" built %s on %s (%s)\n"),
|
|
||||||
- VERSION, PACKAGE_HOST, __DATE__,
|
|
||||||
- PACKAGE_BUILD_HOSTNAME, PACKAGE_BUILD);
|
|
||||||
+ VERSION, UNKNOWN, UNKNOWN,
|
|
||||||
+ UNKNOWN, UNKNOWN);
|
|
||||||
printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION);
|
|
||||||
puts (_("Written by Remi Denis-Courmont.\n"));
|
|
||||||
|
|
Loading…
Reference in New Issue