The slbd project aims to produce stable, production-quality code to monitor

web and other TCP-based servers, allowing for server load balancing (SLB)
functionality through *BSD's PF packet filter.

WWW: http://slbd.sourceforge.net/

PR:		ports/104926
Submitted by:	Janos Mohacsi <janos.mohacsi at bsd.hu>
This commit is contained in:
Ion-Mihai Tetcu 2006-11-10 21:07:55 +00:00
parent fac5fb047a
commit 9b90b3ca6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177033
5 changed files with 77 additions and 0 deletions

View file

@ -736,6 +736,7 @@
SUBDIR += skype
SUBDIR += skype-devel
SUBDIR += sl2tps
SUBDIR += slbd
SUBDIR += slirp
SUBDIR += slurm
SUBDIR += smb4k

36
net/slbd/Makefile Normal file
View file

@ -0,0 +1,36 @@
# New ports collection makefile for: slbd
# Date created: 30 October 2006
# Whom: Janos Mohacsi <janos.mohacsi@bsd.hu>
#
# $FreeBSD$
#
PORTNAME= slbd
PORTVERSION= 1.3
CATEGORIES= net sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= Server load balancing daemon for *BSD pf
PLIST_FILES= sbin/slbd etc/slbdcap-sample
PORTDOCS= configfile.txt
post-patch:
@${REINPLACE_CMD} -e "s;%%PREFIX%%;${PREFIX};g" \
${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502106
IGNORE= is of no use for you because your system is too old and doesn't have pf
.endif
.include <bsd.port.post.mk>

3
net/slbd/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (slbd-1.3.tar.gz) = ac10353d513694fcc2574aa352360ae9
SHA256 (slbd-1.3.tar.gz) = 661e60fcd6191aa3d8510eefc4812dadd0268151aa2611ea7d566cacffcbf547
SIZE (slbd-1.3.tar.gz) = 20110

View file

@ -0,0 +1,32 @@
$FreeBSD$
--- Makefile.orig
+++ Makefile
@@ -14,15 +14,11 @@
#SUBDIR=tests
PROG=slbd
MAN=
-PREFIX=/usr/local
+PREFIX=%%PREFIX%%
BINDIR=sbin
CONFDIR=etc
-.if exists(${PREFIX}/${CONFDIR}/slbdcap)
-CONFFILE=$(PREFIX)/$(CONFDIR)/slbdcap.new
-.else
-CONFFILE=$(PREFIX)/$(CONFDIR)/slbdcap
-.endif
+CONFFILE=$(PREFIX)/$(CONFDIR)/slbdcap-sample
.c.o:
@@ -47,7 +43,7 @@
install-slbd:
$(INSTALL) $(PROG) $(PREFIX)/$(BINDIR)/
#mkdir -p $(PREFIX)/$(CONFDIR)
- #cp conf/slbdcap $(CONFFILE)
+ $(INSTALL) conf/slbdcap $(CONFFILE)
config-clean:
rm -f config.o config_test config

5
net/slbd/pkg-descr Normal file
View file

@ -0,0 +1,5 @@
The slbd project aims to produce stable, production-quality code to monitor
web and other TCP-based servers, allowing for server load balancing (SLB)
functionality through *BSD's PF packet filter.
WWW: http://slbd.sourceforge.net/