Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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:=1
  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. define Build/InstallDev
  26. $(INSTALL_DIR) $(1)/usr/include
  27. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  28. $(INSTALL_DIR) $(1)/usr/lib
  29. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*,la} $(1)/usr/lib/
  30. endef
  31. define Package/dante/default
  32. TITLE:=Dante SOCKS
  33. URL:=http://www.inet.no/dante/
  34. endef
  35. define Package/dante/default/description
  36. Dante is a circuit-level firewall/proxy that can be used to provide convenient
  37. and secure network connectivity, requiring only that the server Dante runs on
  38. has external network connectivity. Dante is used daily by Fortune 100 companies
  39. and large international organizations, either as a standard SOCKS server or as
  40. a "reverse proxy".
  41. endef
  42. define Package/libsocks
  43. $(call Package/dante/default)
  44. SECTION:=libs
  45. CATEGORY:=Libraries
  46. TITLE+= Library
  47. endef
  48. define Package/libsocks/description
  49. $(call Package/dante/default/description)
  50. This package provides the shared libsocks library.
  51. endef
  52. define Package/libsocks/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so* $(1)/usr/lib/
  55. endef
  56. define Package/sockd
  57. $(call Package/dante/default)
  58. SUBMENU:=Web Servers/Proxies
  59. SECTION:=net
  60. CATEGORY:=Network
  61. TITLE+= Daemon
  62. endef
  63. define Package/sockd/description
  64. $(call Package/dante/default/description)
  65. This package provides the Dante sockd daemon.
  66. endef
  67. define Package/sockd/install
  68. $(INSTALL_DIR) $(1)/usr/sbin
  69. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
  70. endef
  71. define Package/socksify
  72. $(call Package/dante/default)
  73. SECTION:=net
  74. CATEGORY:=Network
  75. SUBMENU:=Web Servers/Proxies
  76. TITLE+= Client
  77. endef
  78. define Package/socksify/description
  79. $(call Package/dante/default/description)
  80. This package provides the Dante socksify client.
  81. endef
  82. define Package/socksify/install
  83. $(INSTALL_DIR) $(1)/usr/bin
  84. $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
  85. $(INSTALL_DIR) $(1)/usr/lib
  86. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
  87. endef
  88. $(eval $(call BuildPackage,libsocks))
  89. $(eval $(call BuildPackage,sockd))
  90. $(eval $(call BuildPackage,socksify))