2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://siag.nu
/pub
/pen
/
16 PKG_HASH
:=2b640795029df9d1672e17202c109cc5d42538f6754a6070dc27da640881e864
18 PKG_LICENSE
:=GPL-2.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=Simple TCP load balancer
32 URL
:=http
://siag.nu
/pen
/
35 define Package
/pen
/description
36 This is pen
, a load balancer for
"simple" TCP based protocols
37 such
as HTTP or SMTP. It allows several servers to appear
as
38 one to the outside and automatically detects servers that are
39 down and distributes clients among the available servers.
40 This gives high availability and scalable performance.
45 --with-ssl
="$(STAGING_DIR)/usr" \
48 define Package
/pen
/install
49 $(INSTALL_DIR
) $(1)/usr
/bin
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/mergelogs
$(1)/usr
/bin
/
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/pen
$(1)/usr
/bin
/
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/penctl
$(1)/usr
/bin
/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/penlog
$(1)/usr
/bin
/
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/penlogd
$(1)/usr
/bin
/
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/penctl.cgi
$(1)/usr
/bin
/
56 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/penstats
$(1)/usr
/bin
/
59 $(eval
$(call BuildPackage
,pen
))