source: packages/net/haproxy/Makefile @ 20309

Last change on this file since 20309 was 20309, checked in by florian, 7 years ago

[package] update haproxy to 1.4.1 and add hotplug script (#6875)

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