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.

59 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-2015 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:=pen
  9. PKG_VERSION:=0.34.1
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://siag.nu/pub/pen/
  13. PKG_HASH:=2b640795029df9d1672e17202c109cc5d42538f6754a6070dc27da640881e864
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/pen
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+libopenssl
  24. TITLE:=Simple TCP load balancer
  25. URL:=http://siag.nu/pen/
  26. endef
  27. define Package/pen/description
  28. This is pen, a load balancer for "simple" TCP based protocols
  29. such as HTTP or SMTP. It allows several servers to appear as
  30. one to the outside and automatically detects servers that are
  31. down and distributes clients among the available servers.
  32. This gives high availability and scalable performance.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --with-poll \
  36. --with-ssl="$(STAGING_DIR)/usr" \
  37. --without-geoip \
  38. define Package/pen/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(CP) $(PKG_INSTALL_DIR)/usr/bin/mergelogs $(1)/usr/bin/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/bin/pen $(1)/usr/bin/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/bin/penctl $(1)/usr/bin/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/bin/penlog $(1)/usr/bin/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/bin/penlogd $(1)/usr/bin/
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/penctl.cgi $(1)/usr/bin/
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/penstats $(1)/usr/bin/
  47. endef
  48. $(eval $(call BuildPackage,pen))