From 188dd1adaaee3f8267ac6273ddc36d811c3bb8c4 Mon Sep 17 00:00:00 2001 From: minskim Date: Fri, 28 Oct 2005 20:46:26 +0000 Subject: 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. --- net/balance/DESCR | 4 ++++ net/balance/Makefile | 18 ++++++++++++++++++ net/balance/PLIST | 3 +++ net/balance/distinfo | 7 +++++++ net/balance/patches/patch-aa | 40 ++++++++++++++++++++++++++++++++++++++++ net/balance/patches/patch-ab | 13 +++++++++++++ 6 files changed, 85 insertions(+) create mode 100644 net/balance/DESCR create mode 100644 net/balance/Makefile create mode 100644 net/balance/PLIST create mode 100644 net/balance/distinfo create mode 100644 net/balance/patches/patch-aa create mode 100644 net/balance/patches/patch-ab (limited to 'net/balance') 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 + #include + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #define BalanceBSD 1 + #endif + -- cgit v1.2.3