source: packages/net/haproxy/Makefile @ 21515

Last change on this file since 21515 was 21515, checked in by jow, 6 years ago

[packages] haproxy: update to v1.4.6, tune optimization flags (#7350)

File size: 1.6 KB
Line 
1#
2# Copyright (C) 2010 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.6
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.4/src/
17PKG_MD5SUM:=dc354ea451762135fa45657ddef67734
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/haproxy
22  SUBMENU:=Proxy Servers
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
28endef
29
30define Package/haproxy/conffiles
31/etc/haproxy.cfg
32endef
33
34define Package/haproxy/description
35  Open source High Performance TCP/HTTP Load Balancer
36endef
37
38define Build/Compile
39        $(MAKE) TARGET=$(if $(CONFIG_LINUX_2_4),linux24,linux26) -C $(PKG_BUILD_DIR) \
40                DESTDIR="$(PKG_INSTALL_DIR)" \
41                CC="$(TARGET_CC)" \
42                CFLAGS="$(TARGET_CFLAGS)" \
43                LD="$(TARGET_CC)" \
44                LDFLAGS="$(TARGET_LDFLAGS)" \
45                SMALL_OPTS="-DBUFSIZE=16060 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" \
46                all install
47endef
48
49define Package/haproxy/install
50        $(INSTALL_DIR) $(1)/usr/sbin
51        $(INSTALL_BIN) $(PKG_BUILD_DIR)/haproxy $(1)/usr/sbin/
52        $(INSTALL_DIR) $(1)/etc
53        $(INSTALL_CONF) ./files/haproxy.cfg $(1)/etc/
54        $(INSTALL_DIR) $(1)/etc/init.d
55        $(INSTALL_BIN) ./files/haproxy.init $(1)/etc/init.d/haproxy
56        $(INSTALL_DIR) $(1)/etc/hotplug.d/net
57        $(INSTALL_BIN) ./files/haproxy.hotplug $(1)/etc/hotplug.d/net/90-haproxy
58endef
59
60$(eval $(call BuildPackage,haproxy))
Note: See TracBrowser for help on using the repository browser.