Makefile 2.7 KB

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