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.

76 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2018 Jeffery To
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=tor-fw-helper
  9. PKG_VERSION:=0.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://git.torproject.org/tor-fw-helper.git
  13. PKG_SOURCE_VERSION:=481599ee37dd3135c9e17d1df4810f36b4de4e3d
  14. PKG_SOURCE_DATE:=20150805
  15. PKG_MIRROR_HASH:=f22d1400bec6b62636bd59cb3a51befc9cddbacccb790a758694c589cb2bc032
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  19. PKG_BUILD_DEPENDS:=golang/host
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_USE_MIPS16:=0
  22. GO_PKG:=git.torproject.org/tor-fw-helper.git
  23. include $(INCLUDE_DIR)/package.mk
  24. include ../../lang/golang/golang-package.mk
  25. define Package/tor-fw-helper/Default
  26. TITLE:=Firewall helper for tor
  27. URL:=https://gitweb.torproject.org/tor-fw-helper.git/
  28. DEPENDS:=$(GO_ARCH_DEPENDS)
  29. endef
  30. define Package/tor-fw-helper
  31. $(call Package/tor-fw-helper/Default)
  32. SECTION:=net
  33. CATEGORY:=Network
  34. endef
  35. define Package/golang-torproject-tor-fw-helper-dev
  36. $(call Package/tor-fw-helper/Default)
  37. $(call GoPackage/GoSubMenu)
  38. TITLE+= (source files)
  39. PKGARCH:=all
  40. endef
  41. define Package/tor-fw-helper/Default/description
  42. tor-fw-helper is a helper to automatically configuring port forwarding
  43. for tor, using UPnP or NAT-PMP NAT traversal.
  44. This is a tor-fw-helper rewrite in Go that functions as a drop in
  45. replacement for the original C code.
  46. endef
  47. define Package/tor-fw-helper/description
  48. $(call Package/tor-fw-helper/Default/description)
  49. This package contains the main helper program.
  50. endef
  51. define Package/golang-torproject-tor-fw-helper-dev/description
  52. $(call Package/tor-fw-helper/Default/description)
  53. This package provides the source files for the helper program.
  54. endef
  55. $(eval $(call GoBinPackage,tor-fw-helper))
  56. $(eval $(call BuildPackage,tor-fw-helper))
  57. $(eval $(call GoSrcPackage,golang-torproject-tor-fw-helper-dev))
  58. $(eval $(call BuildPackage,golang-torproject-tor-fw-helper-dev))