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