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.

136 lines
3.1 KiB

  1. #
  2. # Copyright (C) 2011 OpenWrt.org
  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:=dante
  9. PKG_VERSION:=1.4.3
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.inet.no/dante/files/
  13. PKG_HASH:=418a065fe1a4b8ace8fbf77c2da269a98f376e7115902e76cda7e741e4846a5d
  14. PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
  15. PKG_LICENSE:=BSD-4-Clause
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. CONFIGURE_ARGS += \
  21. --without-upnp \
  22. --without-pam \
  23. --disable-libwrap
  24. CONFIGURE_VARS += \
  25. ac_cv_search_pam_start="" \
  26. ac_cv_func_sched_setscheduler=no
  27. define Build/InstallDev
  28. $(INSTALL_DIR) $(1)/usr/include
  29. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*,la} $(1)/usr/lib/
  32. endef
  33. define Package/dante/default
  34. TITLE:=Dante SOCKS
  35. URL:=http://www.inet.no/dante/
  36. endef
  37. define Package/dante/default/description
  38. Dante is a circuit-level firewall/proxy that can be used to provide convenient
  39. and secure network connectivity, requiring only that the server Dante runs on
  40. has external network connectivity. Dante is used daily by Fortune 100 companies
  41. and large international organizations, either as a standard SOCKS server or as
  42. a "reverse proxy".
  43. endef
  44. define Package/libsocks
  45. $(call Package/dante/default)
  46. SECTION:=libs
  47. CATEGORY:=Libraries
  48. TITLE+= Library
  49. ABI_VERSION:=0
  50. endef
  51. define Package/libsocks/description
  52. $(call Package/dante/default/description)
  53. This package provides the shared libsocks library.
  54. endef
  55. define Package/libsocks/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so.* $(1)/usr/lib/
  58. endef
  59. define Package/sockd
  60. $(call Package/dante/default)
  61. SUBMENU:=Web Servers/Proxies
  62. SECTION:=net
  63. CATEGORY:=Network
  64. TITLE+= Daemon
  65. endef
  66. define Package/sockd/description
  67. $(call Package/dante/default/description)
  68. This package provides the Dante sockd daemon.
  69. endef
  70. define Package/sockd/conffiles
  71. /etc/sockd.conf
  72. endef
  73. define Package/sockd/install
  74. $(INSTALL_DIR) $(1)/usr/sbin
  75. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
  76. $(INSTALL_DIR) $(1)/etc
  77. $(CP) $(PKG_BUILD_DIR)/example/sockd.conf $(1)/etc/
  78. $(INSTALL_DIR) $(1)/etc/init.d
  79. $(INSTALL_BIN) ./files/sockd.init $(1)/etc/init.d/sockd
  80. endef
  81. define Package/socksify
  82. $(call Package/dante/default)
  83. SECTION:=net
  84. CATEGORY:=Network
  85. SUBMENU:=Web Servers/Proxies
  86. TITLE+= Client
  87. endef
  88. define Package/socksify/description
  89. $(call Package/dante/default/description)
  90. This package provides the Dante socksify client.
  91. endef
  92. define Package/socksify/conffiles
  93. /etc/socks.conf
  94. endef
  95. define Package/socksify/install
  96. $(INSTALL_DIR) $(1)/usr/bin
  97. $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
  98. $(INSTALL_DIR) $(1)/usr/lib
  99. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
  100. $(INSTALL_DIR) $(1)/etc
  101. $(CP) $(PKG_BUILD_DIR)/example/socks.conf $(1)/etc/
  102. endef
  103. $(eval $(call BuildPackage,libsocks))
  104. $(eval $(call BuildPackage,sockd))
  105. $(eval $(call BuildPackage,socksify))