diff options
author | minskim <minskim@pkgsrc.org> | 2005-10-28 20:46:26 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2005-10-28 20:46:26 +0000 |
commit | 1fb70df623ee78bf387885b287cce840413ca9f5 (patch) | |
tree | f2e13f49ac06428c8716abc6c84b2265ef25f902 /net/balance | |
parent | 3e901bfe5ab34c73fd2c0234081a2fc9e5f77825 (diff) | |
download | pkgsrc-1fb70df623ee78bf387885b287cce840413ca9f5.tar.gz |
Import balance from pkgsrc-wip. Packaged by pancake.
Balance is a successful load balancing solution being a simple but
powerful generic tcp proxy with round robin load balancing and
failover mechanisms. Its behaviour can be controlled at runtime using
a simple command line syntax.
Diffstat (limited to 'net/balance')
-rw-r--r-- | net/balance/DESCR | 4 | ||||
-rw-r--r-- | net/balance/Makefile | 18 | ||||
-rw-r--r-- | net/balance/PLIST | 3 | ||||
-rw-r--r-- | net/balance/distinfo | 7 | ||||
-rw-r--r-- | net/balance/patches/patch-aa | 40 | ||||
-rw-r--r-- | net/balance/patches/patch-ab | 13 |
6 files changed, 85 insertions, 0 deletions
diff --git a/net/balance/DESCR b/net/balance/DESCR new file mode 100644 index 00000000000..c73e43fa293 --- /dev/null +++ b/net/balance/DESCR @@ -0,0 +1,4 @@ +Balance is a successful load balancing solution being a simple but +powerful generic tcp proxy with round robin load balancing and +failover mechanisms. Its behaviour can be controlled at runtime using +a simple command line syntax. diff --git a/net/balance/Makefile b/net/balance/Makefile new file mode 100644 index 00000000000..cf6206a0ac6 --- /dev/null +++ b/net/balance/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/10/28 20:46:26 minskim Exp $ +# + +DISTNAME= balance-3.15 +CATEGORIES= net +MASTER_SITES= http://www.inlab.de/ + +MAINTAINER= pancake@phreaker.net +HOMEPAGE= http://www.inlab.de/balance.html +COMMENT= TCP loadbalancer with roundrobin and failover + +BUILD_TARGET= balance + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/balance ${PREFIX}/sbin/ + ${INSTALL_MAN} ${WRKSRC}/balance.1 ${PREFIX}/man/man1/ + +.include "../../mk/bsd.pkg.mk" diff --git a/net/balance/PLIST b/net/balance/PLIST new file mode 100644 index 00000000000..10410feb41d --- /dev/null +++ b/net/balance/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/28 20:46:26 minskim Exp $ +man/man1/balance.1 +sbin/balance diff --git a/net/balance/distinfo b/net/balance/distinfo new file mode 100644 index 00000000000..7a00a182ac1 --- /dev/null +++ b/net/balance/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/10/28 20:46:26 minskim Exp $ + +SHA1 (balance-3.15.tar.gz) = fe9a9999c97faced30b2b23c416f68d69877cea2 +RMD160 (balance-3.15.tar.gz) = 73c8be6273fb14373661b73c6235426fa7c29ed3 +Size (balance-3.15.tar.gz) = 21022 bytes +SHA1 (patch-aa) = 45aeeeec91c2f4b7beaa1cf9dba45ae87f1896b1 +SHA1 (patch-ab) = 33467c2569969fc6231196da7c1949ea79705863 diff --git a/net/balance/patches/patch-aa b/net/balance/patches/patch-aa new file mode 100644 index 00000000000..145acac97a8 --- /dev/null +++ b/net/balance/patches/patch-aa @@ -0,0 +1,40 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/10/28 20:46:26 minskim Exp $ + +--- Makefile.orig 2004-05-27 07:24:30.000000000 -0500 ++++ Makefile +@@ -2,5 +2,5 @@ + + #CFLAGS=-g -I. +-CFLAGS=-O2 -Wall ++#CFLAGS=-O2 -Wall + + # uncomment for Solaris: +@@ -16,12 +16,12 @@ ROOT=root + # ROOT=Administrators + +-CC=gcc ++#CC=gcc + RELEASE=3.15 + + balance: balance.c butils.o balance.h +- $(CC) $(CFLAGS) -I. -o balance balance.c butils.o $(LIBRARIES) ++ $(CC) ${CPPFLAGS} $(CFLAGS) -I. -o balance balance.c butils.o $(LIBRARIES) + + butils.o: butils.c balance.h +- $(CC) $(CFLAGS) -I. -c butils.c ++ $(CC) ${CPPFLAGS} $(CFLAGS) -I. -c butils.c + + ci: +@@ -34,8 +34,8 @@ clean: + + install: +- install -o $(ROOT) -g $(ROOT) -m 755 $(BALANCE) $(DESTIDIR)/usr/sbin/$(BALANCE) +- install -o $(ROOT) -g $(ROOT) -m 755 balance.1 $(DESTIDIR)/usr/man/man1 +- mkdir -p $(DESTIDIR)/var/run/balance +- chmod 1777 $(DESTIDIR)/var/run/balance ++ ${BSD_INSTALL_PROGRAM} $(BALANCE) $(DESTIDIR)/usr/sbin/$(BALANCE) ++ ${BSD_INSTALL_MAN} balance.1 $(DESTIDIR)/usr/man/man1 ++ mkdir -p ${VARBASE}/run/balance ++ chmod 1777 ${VARBASE}/run/balance + + release: diff --git a/net/balance/patches/patch-ab b/net/balance/patches/patch-ab new file mode 100644 index 00000000000..802897448ac --- /dev/null +++ b/net/balance/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/10/28 20:46:26 minskim Exp $ + +--- balance.h.orig 2004-05-27 05:24:30.000000000 -0700 ++++ balance.h +@@ -6,7 +6,7 @@ + #include <signal.h> + #include <stdlib.h> + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #define BalanceBSD 1 + #endif + |