You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=miredo
  3. PKG_VERSION:=1.2.6
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=miredo-$(PKG_VERSION).tar.xz
  6. PKG_SOURCE_URL:=https://www.remlab.net/files/miredo/
  7. PKG_HASH:=fa26d2f4a405415833669e2e2e22677b225d8f83600844645d5683535ea43149
  8. PKG_CONFIG_DEPENDS:= \
  9. CONFIG_IPV6 \
  10. CONFIG_TUN
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_CHECK_FORMAT_SECURITY:=0
  13. PKG_INSTALL:=1
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/miredo
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=Teredo IPv6 tunneling utility
  22. URL:=https://www.remlab.net/miredo/
  23. DEPENDS:=@IPV6 +libpthread +librt +kmod-tun
  24. endef
  25. define Package/miredo/description
  26. Miredo is an open-source Teredo IPv6 tunneling software, for Linux and the BSD
  27. operating systems. It includes functional implementations of all components of
  28. the Teredo specification (client, relay and server). It is meant to provide
  29. IPv6 connectivity even from behind NAT devices.
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --enable-shared \
  33. --enable-static \
  34. --disable-binreloc \
  35. --with-pic \
  36. --without-libiconv-prefix \
  37. --without-libintl-prefix
  38. CONFIGURE_VARS += \
  39. ac_cv_header_sys_capability_h=no
  40. TARGET_CFLAGS+= \
  41. $(FPIC) \
  42. -ffunction-sections \
  43. -fdata-sections
  44. TARGET_LDFLAGS += -Wl,--gc-sections
  45. define Package/miredo/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  48. $(INSTALL_DIR) $(1)/usr/sbin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo $(1)/usr/sbin/
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/miredo-checkconf $(1)/usr/sbin/
  51. $(INSTALL_DIR) $(1)/usr/lib/miredo
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/miredo/miredo-privproc $(1)/usr/lib/miredo
  53. $(INSTALL_DIR) $(1)/etc/miredo
  54. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/miredo/miredo.conf $(1)/etc/miredo
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/miredo/client-hook $(1)/etc/miredo
  56. $(INSTALL_DIR) $(1)/etc/init.d/
  57. $(INSTALL_BIN) ./files/miredo.init $(1)/etc/init.d/miredo
  58. endef
  59. $(eval $(call BuildPackage,miredo))