Merge pull request #840 from cjkoenig/update_liburcu
[feed/packages.git] / net / pen / Makefile
1 #
2 # Copyright (C) 2006-2015 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.25.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://siag.nu/pub/pen/
16 PKG_MD5SUM:=13e517350ec3fbfa06a512a36067ae2b
17
18 PKG_LICENSE:=GPL-2.0+
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/pen
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=+libopenssl
30 TITLE:=Simple TCP load balancer
31 URL:=http://morestuff.siag.nu/category/pen/
32 endef
33
34 define Package/pen/description
35 This is pen, a load balancer for "simple" TCP based protocols
36 such as HTTP or SMTP. It allows several servers to appear as
37 one to the outside and automatically detects servers that are
38 down and distributes clients among the available servers.
39 This gives high availability and scalable performance.
40 endef
41
42 CONFIGURE_ARGS += \
43 --with-poll \
44 --with-ssl="$(STAGING_DIR)/usr" \
45 --without-geoip \
46
47 define Package/pen/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(CP) $(PKG_INSTALL_DIR)/usr/bin/mergelogs $(1)/usr/bin/
50 $(CP) $(PKG_INSTALL_DIR)/usr/bin/pen $(1)/usr/bin/
51 $(CP) $(PKG_INSTALL_DIR)/usr/bin/penctl $(1)/usr/bin/
52 $(CP) $(PKG_INSTALL_DIR)/usr/bin/penlog $(1)/usr/bin/
53 $(CP) $(PKG_INSTALL_DIR)/usr/bin/penlogd $(1)/usr/bin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penctl.cgi $(1)/usr/bin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/penstats $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,pen))