Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2003 20:30:59 +0100 (CET)
From:      Frank Denis <j@pureftpd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48714: New port : PLB
Message-ID:  <20030226193059.0BFD41AC@burotik.sky>

next in thread | raw e-mail | index | archive | help

>Number:         48714
>Category:       ports
>Synopsis:       New port : PLB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 26 11:30:08 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frank Denis
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
42 Networks
>Environment:
System: FreeBSD burotik.sky 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC i386
libraries (multiple lines)>
>Description:

diff -urN /usr/ports/net/plb/Makefile /tmp/plb/Makefile
--- /usr/ports/net/plb/Makefile	Thu Jan  1 01:00:00 1970
+++ /tmp/plb/Makefile	Wed Feb 26 20:11:31 2003
@@ -0,0 +1,35 @@
+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
+
+.include <bsd.port.pre.mk>
+
+DOCS=		AUTHORS CONTACT COPYING NEWS README THANKS TODO
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/plb.conf ${PREFIX}/etc/plb.conf.sample
+	@${SED} -e 's,/usr/local,${PREFIX},g' ${FILESDIR}/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.post.mk>
diff -urN /usr/ports/net/plb/distinfo /tmp/plb/distinfo
--- /usr/ports/net/plb/distinfo	Thu Jan  1 01:00:00 1970
+++ /tmp/plb/distinfo	Wed Feb 26 19:40:24 2003
@@ -0,0 +1 @@
+MD5 (plb-0.3.tar.gz) = 74c1dee5387afc6cff169b0cf8767bbd
diff -urN /usr/ports/net/plb/files/plb.sh.sample /tmp/plb/files/plb.sh.sample
--- /usr/ports/net/plb/files/plb.sh.sample	Thu Jan  1 01:00:00 1970
+++ /tmp/plb/files/plb.sh.sample	Wed Feb 26 20:08:43 2003
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+case "$1" in
+
+start)
+	if [ -x /usr/local/bin/plb ]; then
+		/usr/local/bin/plb -B -c /usr/local/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
diff -urN /usr/ports/net/plb/pkg-descr /tmp/plb/pkg-descr
--- /usr/ports/net/plb/pkg-descr	Thu Jan  1 01:00:00 1970
+++ /tmp/plb/pkg-descr	Wed Feb 26 20:12:41 2003
@@ -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/
diff -urN /usr/ports/net/plb/pkg-plist /tmp/plb/pkg-plist
--- /usr/ports/net/plb/pkg-plist	Thu Jan  1 01:00:00 1970
+++ /tmp/plb/pkg-plist	Wed Feb 26 20:06:56 2003
@@ -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%%

>How-To-Repeat:

-

>Fix:

This is a port for Pure Load Balancer (http://plb.sunsite.dk/), a
non-forking HTTP load balancer.
Tested on FreeBSD 4.7-STABLE, but probably works on 5.0 as well.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030226193059.0BFD41AC>