1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Add plb, it's a high-performance software load balancer for the HTTP protocol.

PR:		ports/48714
Submitted by:	Frank Denis <j@pureftpd.org>
This commit is contained in:
Vanilla I. Shu 2003-02-26 21:17:36 +00:00
parent 04d42e5ed7
commit 8fca44e75c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76521
6 changed files with 81 additions and 0 deletions

View File

@ -469,6 +469,7 @@
SUBDIR += pim6dd
SUBDIR += pim6sd
SUBDIR += pipsecd
SUBDIR += plb
SUBDIR += pmf
SUBDIR += poink
SUBDIR += poptop

41
net/plb/Makefile Normal file
View File

@ -0,0 +1,41 @@
# New ports collection Makefile for: plb
# Date created: Feb 26, 2003
# Whom: Frank Denis <j@pureftpd.org>
#
# $FreeBSD$
#
PORTNAME= plb
PORTVERSION= 0.3
PORTREVISION= 0
CATEGORIES= net ipv6
MASTER_SITES= http://plb.sunsite.dk/files/
MAINTAINER= j@pureftpd.org
COMMENT= A high-performance HTTP load balancer
BUILD_DEPENDS+= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
MAN8= plb.8
DOCS= AUTHORS CONTACT COPYING NEWS README THANKS TODO
post-extract:
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/plb.sh.sample \
> ${WRKSRC}/plb.sh.sample
post-install:
${INSTALL_DATA} ${WRKSRC}/plb.conf ${PREFIX}/etc/plb.conf.sample
${INSTALL_SCRIPT} ${WRKSRC}/plb.sh.sample ${PREFIX}/etc/rc.d/plb.sh.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/plb
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/plb)
.endif
@${ECHO_CMD}
@${ECHO_CMD} "Now you need to examine ${PREFIX}/etc/plb.conf.sample,"
@${ECHO_CMD} "to adapt it to your needs, and save it as ${PREFIX}/etc/plb.conf.sample."
@${ECHO_CMD}
.include <bsd.port.mk>

1
net/plb/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (plb-0.3.tar.gz) = 74c1dee5387afc6cff169b0cf8767bbd

View File

@ -0,0 +1,19 @@
#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/bin/plb ]; then
%%PREFIX%%/bin/plb -B -c %%PREFIX%%/etc/plb.conf && echo -n ' plb'
fi
;;
stop)
kill $(cat /var/run/plb.pid)
rm -f /var/run/plb.pid
;;
*)
echo "$0 start | stop"
;;
esac

8
net/plb/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
Pure Load Balancer is a high-performance software load balancer for the
HTTP protocol.
It uses an asynchronous non-forking/non-blocking model, and provides
fail-over abilities. When a backend server goes down, it automatically
removes it from the server pool, and tries to bring it back to life later.
WWW: http://plb.sunsite.dk/

11
net/plb/pkg-plist Normal file
View File

@ -0,0 +1,11 @@
bin/plb
etc/plb.conf.sample
etc/rc.d/plb.sh.sample
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/CONTACT
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%@dirrm %%DOCSDIR%%