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.

62 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2009-2014 Thomas Heil <heil@terminal-consulting.de>
  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:=haproxy
  9. PKG_VERSION:=1.4.25
  10. PKG_RELEASE:=01
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.4/src
  13. PKG_MD5SUM:=74b5ec1f0f9b4d148c8083bcfb512ccd
  14. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  15. PKG_LICENSE:=GPL-2.0
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/haproxy
  18. SUBMENU:=Web Servers/Proxies
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=The Reliable, High Performance TCP/HTTP Load Balancer
  22. URL:=http://haproxy.1wt.eu/
  23. DEPENDS:=+libpcre +libltdl
  24. endef
  25. define Package/haproxy/conffiles
  26. /etc/haproxy.cfg
  27. endef
  28. define Package/haproxy/description
  29. Open source High Performance TCP/HTTP Load Balancer
  30. endef
  31. define Build/Compile
  32. $(MAKE) TARGET=linux2628 -C $(PKG_BUILD_DIR) \
  33. DESTDIR="$(PKG_INSTALL_DIR)" \
  34. CC="$(TARGET_CC)" \
  35. CFLAGS="$(TARGET_CFLAGS)" \
  36. LD="$(TARGET_CC)" \
  37. LDFLAGS="$(TARGET_LDFLAGS)" \
  38. SMALL_OPTS="-DBUFSIZE=16384 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" USE_LINUX_TPROXY=1 USE_LINUX_SPLICE=1 \
  39. VERSION="$(PKG_VERSION)-patch$(PKG_RELEASE)" \
  40. all install
  41. endef
  42. define Package/haproxy/install
  43. $(INSTALL_DIR) $(1)/usr/sbin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/haproxy $(1)/usr/sbin/
  45. $(INSTALL_DIR) $(1)/etc
  46. $(INSTALL_CONF) ./files/haproxy.cfg $(1)/etc/
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/haproxy.init $(1)/etc/init.d/haproxy
  49. $(INSTALL_DIR) $(1)/etc/hotplug.d/net
  50. $(INSTALL_BIN) ./files/haproxy.hotplug $(1)/etc/hotplug.d/net/90-haproxy
  51. endef
  52. $(eval $(call BuildPackage,haproxy))