Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 <jow@openwrt.org>
  15. PKG_LICENSE:=BSD-4-Clause
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. TARGET_CFLAGS += -D_GNU_SOURCE
  20. CONFIGURE_ARGS += \
  21. --without-upnp \
  22. --without-pam \
  23. --disable-libwrap
  24. CONFIGURE_VARS += \
  25. CC="$(TARGET_CC) $(TARGET_CFLAGS)"
  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. endef
  49. define Package/libsocks/description
  50. $(call Package/dante/default/description)
  51. This package provides the shared libsocks library.
  52. endef
  53. define Package/libsocks/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so* $(1)/usr/lib/
  56. endef
  57. define Package/sockd
  58. $(call Package/dante/default)
  59. SUBMENU:=Web Servers/Proxies
  60. SECTION:=net
  61. CATEGORY:=Network
  62. TITLE+= Daemon
  63. endef
  64. define Package/sockd/description
  65. $(call Package/dante/default/description)
  66. This package provides the Dante sockd daemon.
  67. endef
  68. define Package/sockd/install
  69. $(INSTALL_DIR) $(1)/usr/sbin
  70. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
  71. endef
  72. define Package/socksify
  73. $(call Package/dante/default)
  74. SECTION:=net
  75. CATEGORY:=Network
  76. SUBMENU:=Web Servers/Proxies
  77. TITLE+= Client
  78. endef
  79. define Package/socksify/description
  80. $(call Package/dante/default/description)
  81. This package provides the Dante socksify client.
  82. endef
  83. define Package/socksify/install
  84. $(INSTALL_DIR) $(1)/usr/bin
  85. $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
  86. $(INSTALL_DIR) $(1)/usr/lib
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
  88. endef
  89. $(eval $(call BuildPackage,libsocks))
  90. $(eval $(call BuildPackage,sockd))
  91. $(eval $(call BuildPackage,socksify))