summaryrefslogtreecommitdiff
path: root/net/balance/patches
diff options
context:
space:
mode:
authorryoon <ryoon>2013-06-16 08:09:11 +0000
committerryoon <ryoon>2013-06-16 08:09:11 +0000
commit8c5a6b7a48ef0133fa12489a9d94c70964fa6122 (patch)
tree3a4b1f39f4075499fa26e36d46da70ac3b9c7893 /net/balance/patches
parentb624c0dca872cf6e612b91dc5b0b712f33b3bc51 (diff)
downloadpkgsrc-8c5a6b7a48ef0133fa12489a9d94c70964fa6122.tar.gz
Update to 3.54
* Use distfile's install target. * Add comments to patches. Changelog: 3.54: A bug with hash_fold() regarding incoming IPv4 and IPv6 source addresses has been fixed. The "hash" group mechanism is now working as expected. 3.52: Buffering has been disabled for interactive shell IO. A new "assign" command has been added to allow changing of the host:port assignment of a channel (only if disabled). A locking bug has been fixed. 3.50: A new option -6 has been added to force IPv6 bind. 3.49: A patch has been applied due to a problem with ftok() on Solaris. 3.48: Problems with setting IPV6_V6ONLY socket option are now handled more nicely with a syslog warning message. 3.42: Balance now compiles also on systems where IPV6_V6ONLY is undefined (like some Solaris systems). 3.40: IPv6 support on the listening side has been added. MAXCHANNELS in balance.h has been increased to 64. 3.35: A bug in the autodisable functionality has been fixed. 3.34: -a option added (enables "autodisable" option: A channel needs to be manually re-enabled after a failure). Syslog logging added for reporting this event. 3.33: -M option added (use MMAP instead of SHM for IPC) 3.32: Bugfix: /var/run/balance may now already exist. 3.31: Bugfix: TCP_NODELAY properly set. 3.30: Code cleanups and fixes.
Diffstat (limited to 'net/balance/patches')
-rw-r--r--net/balance/patches/patch-aa67
-rw-r--r--net/balance/patches/patch-ab12
2 files changed, 48 insertions, 31 deletions
diff --git a/net/balance/patches/patch-aa b/net/balance/patches/patch-aa
index 145acac97a8..89907328725 100644
--- a/net/balance/patches/patch-aa
+++ b/net/balance/patches/patch-aa
@@ -1,40 +1,55 @@
-$NetBSD: patch-aa,v 1.1.1.1 2005/10/28 20:46:26 minskim Exp $
+$NetBSD: patch-aa,v 1.2 2013/06/16 08:09:11 ryoon Exp $
---- Makefile.orig 2004-05-27 07:24:30.000000000 -0500
+* Adjust for pkgsrc installation.
+
+--- Makefile.orig 2010-12-03 12:50:22.000000000 +0000
+++ Makefile
@@ -2,5 +2,5 @@
#CFLAGS=-g -I.
--CFLAGS=-O2 -Wall
-+#CFLAGS=-O2 -Wall
-
- # uncomment for Solaris:
-@@ -16,12 +16,12 @@ ROOT=root
+-CFLAGS=-O2 -Wall -Wstrict-prototypes -Wuninitialized
++#CFLAGS=-O2 -Wall -Wstrict-prototypes -Wuninitialized
+
+ # uncomment for any OS other than Cygwin
+@@ -8,5 +8,5 @@ BALANCE=balance
+ ROOT=root
+ INSTALL=install
+-BINDIR=/usr/sbin
++BINDIR=${PREFIX}/sbin
+ MANDIR=${BINDIR}/../man/man1
+
+@@ -21,5 +21,5 @@ MANDIR=${BINDIR}/../man/man1
# ROOT=Administrators
-CC=gcc
+#CC=gcc
- RELEASE=3.15
+ RELEASE=3.54
+
+@@ -27,8 +27,8 @@ all: balance
- 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)
+ balance: balance.o butils.o
+- $(CC) $(CFLAGS) -I. -o balance balance.o butils.o $(LIBRARIES)
++ $(CC) ${CPPFLAGS} $(CFLAGS) -I. -o balance balance.o butils.o $(LIBRARIES)
- butils.o: butils.c balance.h
-- $(CC) $(CFLAGS) -I. -c butils.c
-+ $(CC) ${CPPFLAGS} $(CFLAGS) -I. -c butils.c
+ balance.o: balance.c balance.h
+- $(CC) $(CFLAGS) -I. -c balance.c
++ $(CC) ${CPPFLAGS} $(CFLAGS) -I. -c balance.c
- ci:
-@@ -34,8 +34,8 @@ clean:
+ butils.o: butils.c balance.h
+@@ -49,10 +49,12 @@ 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:
+- $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 $(BALANCE) \
++ ${BSD_INSTALL_PROGRAM_DIR} $(DESTDIR)$(BINDIR)
++ ${BSD_INSTALL_PROGRAM} $(BALANCE) \
+ $(DESTDIR)$(BINDIR)/$(BALANCE)
+- $(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 balance.1 \
++ ${BSD_INSTALL_MAN_DIR} $(DESTDIR)$(MANDIR)
++ ${BSD_INSTALL_MAN} balance.1 \
+ $(DESTDIR)$(MANDIR)
+- mkdir -p $(DESTDIR)/var/run/balance
+- chmod 1777 $(DESTDIR)/var/run/balance
++ mkdir -p $(DESTDIR)${VARBASE}/run/balance
++ chmod 1777 $(DESTDIR)${VARBASE}/run/balance
+
+ release: balance.pdf
diff --git a/net/balance/patches/patch-ab b/net/balance/patches/patch-ab
index 7c25d8674c9..298c7f7b090 100644
--- a/net/balance/patches/patch-ab
+++ b/net/balance/patches/patch-ab
@@ -1,10 +1,12 @@
-$NetBSD: patch-ab,v 1.4 2006/03/14 02:06:28 joerg Exp $
+$NetBSD: patch-ab,v 1.5 2013/06/16 08:09:11 ryoon Exp $
---- balance.h.orig 2004-05-27 12:24:30.000000000 +0000
+* Treat *BSD as BSD.
+
+--- balance.h.orig 2010-12-03 12:50:22.000000000 +0000
+++ balance.h
-@@ -6,7 +6,7 @@
- #include <signal.h>
- #include <stdlib.h>
+@@ -20,7 +20,7 @@
+ #include <sys/mman.h>
+ #endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__INTERIX) || defined(__DragonFly__)