Makefile 2.6 KB

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