Bug 48714 - New port : PLB
Summary: New port : PLB
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-26 19:30 UTC by Frank DENIS
Modified: 2003-02-26 21:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank DENIS 2003-02-26 19:30:08 UTC
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%%

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.
How-To-Repeat: 
-
Comment 1 Vanilla I. Shu freebsd_committer 2003-02-26 20:47:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vainlla

I will handle this one.
Comment 2 Vanilla I. Shu freebsd_committer 2003-02-26 21:19:59 UTC
State Changed
From-To: open->closed

Committed, thanks. 

Next time, please portlint before you send-pr. 
portlint is your good friend. 


Comment 3 Vanilla I. Shu freebsd_committer 2003-02-26 21:19:59 UTC
Responsible Changed
From-To: vainlla->vanilla

Committed, thanks. 

Next time, please portlint before you send-pr. 
portlint is your good friend.