lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1631B)


      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.34.0
     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_HASH:=a3306bfb02619b103ff431002bb91079048bf2dd24f739bf38e373860558cd27
     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))