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.

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