1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-20 07:38:40 +02:00
openwrt-packages/net/pen/Makefile
Jo-Philipp Wich 02d3e96620 pen: update to v0.34.0
Update the pen package to upstream release v0.34.0 in order to fix the
following build error reported by the buildbot:

    ssl.o: In function `ssl_create_context':
    ssl.c:(.text+0x9c): undefined reference to `SSLv3_method'
    collect2: error: ld returned 1 exit status

Also switch from PKG_MD5SUM to PKG_HASH with SHA256 while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-18 03:55:33 +01:00

59 lines
1.6 KiB
Makefile

#
# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pen
PKG_VERSION:=0.34.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://siag.nu/pub/pen/
PKG_HASH:=a3306bfb02619b103ff431002bb91079048bf2dd24f739bf38e373860558cd27
PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/pen
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libopenssl
TITLE:=Simple TCP load balancer
URL:=http://morestuff.siag.nu/category/pen/
endef
define Package/pen/description
This is pen, a load balancer for "simple" TCP based protocols
such as HTTP or SMTP. It allows several servers to appear as
one to the outside and automatically detects servers that are
down and distributes clients among the available servers.
This gives high availability and scalable performance.
endef
CONFIGURE_ARGS += \
--with-poll \
--with-ssl="$(STAGING_DIR)/usr" \
--without-geoip \
define Package/pen/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/mergelogs $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/pen $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/penctl $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/penlog $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/bin/penlogd $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/penctl.cgi $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/penstats $(1)/usr/bin/
endef
$(eval $(call BuildPackage,pen))