pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/balance Import balance from pkgsrc-wip. Packaged ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/56223d2136aa
branches:  trunk
changeset: 501773:56223d2136aa
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Fri Oct 28 20:46:26 2005 +0000

description:
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:

 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(+), 0 deletions(-)

diffs (109 lines):

diff -r bb0ff9d06b82 -r 56223d2136aa net/balance/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/balance/DESCR Fri Oct 28 20:46:26 2005 +0000
@@ -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 -r bb0ff9d06b82 -r 56223d2136aa net/balance/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/balance/Makefile      Fri Oct 28 20:46:26 2005 +0000
@@ -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@localhost
+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 -r bb0ff9d06b82 -r 56223d2136aa net/balance/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/balance/PLIST Fri Oct 28 20:46:26 2005 +0000
@@ -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 -r bb0ff9d06b82 -r 56223d2136aa net/balance/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/balance/distinfo      Fri Oct 28 20:46:26 2005 +0000
@@ -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 -r bb0ff9d06b82 -r 56223d2136aa net/balance/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/balance/patches/patch-aa      Fri Oct 28 20:46:26 2005 +0000
@@ -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 -r bb0ff9d06b82 -r 56223d2136aa net/balance/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/balance/patches/patch-ab      Fri Oct 28 20:46:26 2005 +0000
@@ -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 
+ 



Home | Main Index | Thread Index | Old Index