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.

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