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.

79 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2006-2014 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:=stunnel
  9. PKG_VERSION:=5.38
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0+
  12. PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
  13. PKG_LICENSE_FILES:=COPYING COPYRIGHT.GPL
  14. PKG_SOURCE_URL:= \
  15. http://ftp.nluug.nl/pub/networking/stunnel/ \
  16. http://www.usenix.org.uk/mirrors/stunnel/
  17. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  18. PKG_MD5SUM:=09ada29ba1683ab1fd1f31d7bed8305127a0876537e836a40cb83851da034fd5
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/stunnel
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+libopenssl +zlib +libpthread
  26. TITLE:=SSL TCP Wrapper
  27. URL:=http://www.stunnel.org/
  28. endef
  29. define Package/stunnel/description
  30. Stunnel is a program that allows you to encrypt arbitrary TCP
  31. connections inside SSL (Secure Sockets Layer) available on both Unix
  32. and Windows. Stunnel can allow you to secure non-SSL aware daemons and
  33. protocols (like POP, IMAP, LDAP, etc) by having Stunnel provide the
  34. encryption, requiring no changes to the daemon's code.
  35. endef
  36. define Package/stunnel/conffiles
  37. /etc/stunnel/stunnel.conf
  38. endef
  39. CONFIGURE_ARGS+= \
  40. --with-random=/dev/urandom \
  41. --with-threads=pthread \
  42. --with-ssl=$(STAGING_DIR)/usr \
  43. --disable-libwrap \
  44. --disable-systemd
  45. ifeq ($(CONFIG_IPV6),n)
  46. CONFIGURE_ARGS+= \
  47. --disable-ipv6
  48. endif
  49. define Build/Compile
  50. mkdir -p $(PKG_INSTALL_DIR)/etc/stunnel
  51. echo '#dummy' > $(PKG_INSTALL_DIR)/etc/stunnel/stunnel.pem
  52. $(call Build/Compile/Default)
  53. endef
  54. define Package/stunnel/install
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stunnel $(1)/usr/bin/
  57. $(INSTALL_DIR) $(1)/usr/lib/stunnel
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/stunnel/libstunnel.so $(1)/usr/lib/stunnel/
  59. $(INSTALL_DIR) $(1)/etc/stunnel
  60. $(INSTALL_CONF) ./files/stunnel.conf $(1)/etc/stunnel/stunnel.conf
  61. $(INSTALL_DIR) $(1)/etc/init.d
  62. $(INSTALL_BIN) ./files/stunnel.init $(1)/etc/init.d/stunnel
  63. endef
  64. $(eval $(call BuildPackage,stunnel))