- update to balance-2.33 (bugfix release)

- regen security patch
- regression/distinfo changes
This commit is contained in:
jsyn 2001-11-15 19:25:52 +00:00
parent a4ce446992
commit 6d3681c1b0
5 changed files with 17 additions and 28 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.2 2001/07/21 19:11:33 jsyn Exp $
# $OpenBSD: Makefile,v 1.3 2001/11/15 19:25:52 jsyn Exp $
COMMENT= "tcp proxy with load balancing and failover mechanisms"
VERSION= 2.28
VERSION= 2.33
DISTNAME= balance-${VERSION}
CATEGORIES= net
NEED_VERSION= 1.425
NEED_VERSION= 1.498
HOMEPAGE= http://balance.sourceforge.net/
@ -22,6 +22,8 @@ MASTER_SITE_SUBDIR= balance
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= balance
NO_REGRESS= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/balance ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/balance.1 ${PREFIX}/man/man1

3
net/balance/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (balance-2.33.tar.gz) = b38da3e03218a9adb50356a00eda3b07
RMD160 (balance-2.33.tar.gz) = 0cd96089ee6b5c19f4f360cb7946782b4684130f
SHA1 (balance-2.33.tar.gz) = 46027215982fda9db052677660897c6bc831221b

View File

@ -1,3 +0,0 @@
MD5 (balance-2.28.tar.gz) = 66df77083edd0d4700d11d76e2de076c
RMD160 (balance-2.28.tar.gz) = de35f4ad7d246abac8a58cee8a8ed19d006ddc7a
SHA1 (balance-2.28.tar.gz) = 1649ecdac52d7ad9309e6d3cbc0814b7778e0545

View File

@ -1,16 +1,7 @@
$OpenBSD: patch-balance_c,v 1.1.1.1 2001/06/25 23:05:45 lebel Exp $
--- balance.c.orig Sun Jan 7 05:56:58 2001
+++ balance.c Mon Jun 25 19:03:00 2001
@@ -27,7 +27,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
-#include <malloc.h>
+#include <stdlib.h>
#ifdef __FreeBSD__
#define MYBSD 1
@@ -638,7 +638,7 @@ static usage() {
$OpenBSD: patch-balance_c,v 1.2 2001/11/15 19:25:52 jsyn Exp $
--- balance.c.orig Thu Nov 15 13:11:07 2001
+++ balance.c Thu Nov 15 13:14:27 2001
@@ -677,7 +677,7 @@ static usage() {
if((revision_copy=(char*) malloc(strlen(revision)+1))==NULL) {
fprintf(stderr,"malloc problem in usage()\n");
} else {
@ -19,7 +10,7 @@ $OpenBSD: patch-balance_c,v 1.1.1.1 2001/06/25 23:05:45 lebel Exp $
token=strtok(revision_copy," ");
token=strtok(NULL," ");
version=token!=NULL?token:"*undefined*";
@@ -1083,10 +1083,10 @@ char *argv[];
@@ -1122,7 +1122,7 @@ char *argv[];
serv_addr.sin_family = AF_INET;
if(bindhost != NULL) {
setipaddress(&serv_addr.sin_addr, bindhost);
@ -27,17 +18,13 @@ $OpenBSD: patch-balance_c,v 1.1.1.1 2001/06/25 23:05:45 lebel Exp $
+ snprintf(bindhost_address, sizeof(bindhost_address), inet_ntoa(serv_addr.sin_addr));
} else {
serv_addr.sin_addr.s_addr=htonl(INADDR_ANY);
- sprintf(bindhost_address,"0.0.0.0");
+ snprintf(bindhost_address, sizeof(bindhost_address), "0.0.0.0");
}
serv_addr.sin_port=htons(source_port);
@@ -1096,7 +1096,7 @@ char *argv[];
sprintf(bindhost_address,"0.0.0.0");
@@ -1135,7 +1135,7 @@ char *argv[];
struct stat buffer;
int fd;
- sprintf(rendezvousfile,"%sbalance.%d.%s",SHMDIR,source_port,bindhost_address);
+ snprintf(rendezvousfile, sizeof(rendezvousfile), "%sbalance.%d.%s",SHMDIR,source_port,bindhost_address);
+ snprintf(rendezvousfile, sizeof(rendezvousfile), "%sbalance.%d.%s", SHMDIR, source_port, bindhost_address);
if(stat(rendezvousfile, &buffer) == -1) {
// File existiert (noch) nicht ...

View File

@ -1,3 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/06/25 23:05:45 lebel Exp $
@comment $OpenBSD: PLIST,v 1.2 2001/11/15 19:25:52 jsyn Exp $
bin/balance
man/man1/balance.1