diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-11-10 21:07:55 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-11-10 21:07:55 +0000 |
commit | 9b90b3ca6e3bcc4eb73a4ad9e770745eae9000dd (patch) | |
tree | 0fbce9088a9aa0761d995474bde80943b6c0c44c /net | |
parent | fac5fb047a6ec890b37dc5723ae533a2012da7ec (diff) | |
download | ports-9b90b3ca6e3bcc4eb73a4ad9e770745eae9000dd.tar.gz ports-9b90b3ca6e3bcc4eb73a4ad9e770745eae9000dd.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/slbd/Makefile | 36 | ||||
-rw-r--r-- | net/slbd/distinfo | 3 | ||||
-rw-r--r-- | net/slbd/files/patch-Makefile | 32 | ||||
-rw-r--r-- | net/slbd/pkg-descr | 5 |
5 files changed, 77 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index d6561773860b..a8747822a79c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -736,6 +736,7 @@ SUBDIR += skype SUBDIR += skype-devel SUBDIR += sl2tps + SUBDIR += slbd SUBDIR += slirp SUBDIR += slurm SUBDIR += smb4k diff --git a/net/slbd/Makefile b/net/slbd/Makefile new file mode 100644 index 000000000000..b1f0d53e4822 --- /dev/null +++ b/net/slbd/Makefile @@ -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> diff --git a/net/slbd/distinfo b/net/slbd/distinfo new file mode 100644 index 000000000000..8dba04d9b373 --- /dev/null +++ b/net/slbd/distinfo @@ -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 diff --git a/net/slbd/files/patch-Makefile b/net/slbd/files/patch-Makefile new file mode 100644 index 000000000000..b39d62521059 --- /dev/null +++ b/net/slbd/files/patch-Makefile @@ -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 diff --git a/net/slbd/pkg-descr b/net/slbd/pkg-descr new file mode 100644 index 000000000000..a5cdf5d09176 --- /dev/null +++ b/net/slbd/pkg-descr @@ -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/ |