Add performance patch from #2444, bump release number
[openwrt/svn-archive/archive.git] / net / pen / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pen
12 PKG_VERSION:=0.17.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://siag.nu/pub/pen/
17 PKG_MD5SUM:=62548155d3bf42aea05b32227e132331
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/pen
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libopenssl
28 TITLE:=Simple tcp load balancer
29 DESCRIPTION:=\
30 This is pen, a load balancer for "simple" tcp based protocols \\\
31 such as http or smtp. It allows several servers to appear as \\\
32 one to the outside and automatically detects servers that are \\\
33 down and distributes clients among the available servers. \\\
34 This gives high availability and scalable performance.
35 URL:=http://siag.nu/pen/
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --with-poll \
41 --with-experimental-only-ssl="$(STAGING_DIR)/usr" \
42 )
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR)
47 endef
48
49 define Package/pen/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mergelogs $(1)/usr/bin/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pen $(1)/usr/bin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penctl $(1)/usr/bin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penctl.cgi $(1)/usr/bin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penlog $(1)/usr/bin/
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penlogd $(1)/usr/bin/
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penstats $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,pen))