00d301c32f01925d5c6f10f6d093944b81d5dcb2
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/pen
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libopenssl
27 TITLE:=Simple tcp load balancer
28 URL:=http://siag.nu/pen/
29 endef
30
31 define Package/pen/description
32 This is pen, a load balancer for "simple" tcp based protocols
33 such as http or smtp. It allows several servers to appear as
34 one to the outside and automatically detects servers that are
35 down and distributes clients among the available servers.
36 This gives high availability and scalable performance.
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --with-poll \
42 --with-experimental-only-ssl="$(STAGING_DIR)/usr" \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR)
48 endef
49
50 define Package/pen/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mergelogs $(1)/usr/bin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pen $(1)/usr/bin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penctl $(1)/usr/bin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penctl.cgi $(1)/usr/bin/
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penlog $(1)/usr/bin/
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penlogd $(1)/usr/bin/
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penstats $(1)/usr/bin/
59 endef
60
61 $(eval $(call BuildPackage,pen))