source: packages/net/haproxy/Makefile @ 29097

Last change on this file since 29097 was 29097, checked in by nico, 4 years ago

packages/haproxy: use new service functions

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2010-2011 OpenWrt.org
3# Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=haproxy
12PKG_VERSION:=1.4.18
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.4/src
17PKG_MD5SUM:=4ac88bb1a76c4b84ed4f6131183bedbe
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/haproxy
22  SUBMENU:=Web Servers/Proxies
23  SECTION:=net
24  CATEGORY:=Network
25  TITLE:=The Reliable, High Performance TCP/HTTP Load Balancer
26  URL:=http://haproxy.1wt.eu/
27  DEPENDS:=+libpcre +libltdl
28  MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
29endef
30
31define Package/haproxy/conffiles
32/etc/haproxy.cfg
33endef
34
35define Package/haproxy/description
36  Open source High Performance TCP/HTTP Load Balancer
37endef
38
39define Build/Compile
40        $(MAKE) TARGET=linux26 -C $(PKG_BUILD_DIR) \
41                DESTDIR="$(PKG_INSTALL_DIR)" \
42                CC="$(TARGET_CC)" \
43                CFLAGS="$(TARGET_CFLAGS)" \
44                LD="$(TARGET_CC)" \
45                LDFLAGS="$(TARGET_LDFLAGS)" \
46                SMALL_OPTS="-DBUFSIZE=16384 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" USE_LINUX_TPROXY=1 USE_LINUX_SPLICE=1 \
47                all install
48endef
49
50define Package/haproxy/install
51        $(INSTALL_DIR) $(1)/usr/sbin
52        $(INSTALL_BIN) $(PKG_BUILD_DIR)/haproxy $(1)/usr/sbin/
53        $(INSTALL_DIR) $(1)/etc
54        $(INSTALL_CONF) ./files/haproxy.cfg $(1)/etc/
55        $(INSTALL_DIR) $(1)/etc/init.d
56        $(INSTALL_BIN) ./files/haproxy.init $(1)/etc/init.d/haproxy
57        $(INSTALL_DIR) $(1)/etc/hotplug.d/net
58        $(INSTALL_BIN) ./files/haproxy.hotplug $(1)/etc/hotplug.d/net/90-haproxy
59endef
60
61$(eval $(call BuildPackage,haproxy))
Note: See TracBrowser for help on using the repository browser.