Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2014 00:40:49 GMT
From:      C Hutchinson <portmaster@bsdforge.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/189403: [new port] net/wackamole - technically: resurrection+new version
Message-ID:  <201405070040.s470en0J092729@cgiserv.freebsd.org>
Resent-Message-ID: <201405070050.s470o0cP017978@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189403
>Category:       ports
>Synopsis:       [new port] net/wackamole  - technically: resurrection+new version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 07 00:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     C Hutchinson
>Release:        
>Organization:
>Environment:
>Description:
net/wackamole
new version (2.15)
added MASTER_SITES
added stage support

warning: the addition of this port requires that
ports/188853 has already been committed. Please poke rm@
with a sharp stick, if it still hasn't yet been committed. :)

>How-To-Repeat:

>Fix:
commit the attached shar


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	wackamole
#	wackamole/files
#	wackamole/files/patch-config_gram.y
#	wackamole/files/patch-defines.h
#	wackamole/files/patch-wackamole.c
#	wackamole/files/patch-configuration.c
#	wackamole/files/patch-alarm.c
#	wackamole/pkg-plist
#	wackamole/Makefile
#	wackamole/distinfo
#	wackamole/pkg-descr
#
echo c - wackamole
mkdir -p wackamole > /dev/null 2>&1
echo c - wackamole/files
mkdir -p wackamole/files > /dev/null 2>&1
echo x - wackamole/files/patch-config_gram.y
sed 's/^X//' >wackamole/files/patch-config_gram.y << 'af7160980ba5fa96a5ff134a4d7634f3'
X--- config_gram.y.orig	2014-05-06 16:30:17.040722949 -0700
X+++ config_gram.y	2014-05-06 16:32:22.614815187 -0700
X@@ -106,7 +106,7 @@
X 			  SPIT("Setting Group: %s\n", Spread_group); }
X 		|	W_LOG     W_EQUALS W_STRING
X 		|	W_CONTROL W_EQUALS W_STRING
X-			{ snprintf(control_socket, MAXPATHLEN, $3.string); }
X+			{ snprintf(control_socket, MAXPATHLEN, "%s", $3.string); }
X 		|	W_MATURE W_EQUALS W_TIMEINTERVAL
X 			{ Maturity_timeout.sec = $3.tv.tv_sec;
X 			  Maturity_timeout.usec = 0;
af7160980ba5fa96a5ff134a4d7634f3
echo x - wackamole/files/patch-defines.h
sed 's/^X//' >wackamole/files/patch-defines.h << '5d46b3c8b11688766f52b01179369bcc'
X--- defines.h.orig	2014-05-06 16:38:13.055354417 -0700
X+++ defines.h	2014-05-06 16:42:19.536056294 -0700
X@@ -13,6 +13,9 @@
X #ifdef HAVE_STRINGS_H
X #include <strings.h>
X #endif
X+#ifdef HAVE_STRING_H
X+#include <string.h>
X+#endif
X #ifdef HAVE_ERRNO_H
X #include <errno.h>
X #endif
X@@ -59,12 +62,12 @@
X #ifdef HAVE_NET_ROUTE_H
X #include <net/route.h>
X #endif
X-#ifdef HAVE_PCAP_H
X-#include <pcap.h>
X-#endif
X #ifdef HAVE_NET_BPF_H
X #include <net/bpf.h>
X #endif
X+#ifdef HAVE_PCAP_H
X+#include <pcap.h>
X+#endif
X #ifdef HAVE_NET_ETHERNET_H
X #include <net/ethernet.h>
X #endif
5d46b3c8b11688766f52b01179369bcc
echo x - wackamole/files/patch-wackamole.c
sed 's/^X//' >wackamole/files/patch-wackamole.c << '64964b71ce3c94595032c5b8dfe126dc'
X--- wackamole.c.orig	2014-05-06 16:45:39.558907243 -0700
X+++ wackamole.c	2014-05-06 16:47:57.679302712 -0700
X@@ -911,7 +911,7 @@
X       wack_alarm(PRINT, "%d %s", __LINE__, if_error());
X     else {
X       char buffer[16];
X-      snprintf(buffer, 16, inet_ntoa(iface.ipaddr));
X+      snprintf(buffer, 16, "%s", inet_ntoa(iface.ipaddr));
X       wack_alarm(PRINT, "  UP: %s:%s/%s",
X 		iface.ifname,buffer,inet_ntoa(iface.netmask));
X     }
X@@ -954,7 +954,7 @@
X       }
X     } else {
X       char buffer[16];
X-      snprintf(buffer, 16, inet_ntoa(idown.ipaddr));
X+      snprintf(buffer, 16, "%s", inet_ntoa(idown.ipaddr));
X       wack_alarm(PRINT, "DOWN: %s:%s/%s",
X 	idown.ifname,buffer,inet_ntoa(idown.netmask));
X     }
64964b71ce3c94595032c5b8dfe126dc
echo x - wackamole/files/patch-configuration.c
sed 's/^X//' >wackamole/files/patch-configuration.c << '1ec34760b90d7ed285c6f7cdfe5172a0'
X--- configuration.c.orig	2014-05-06 16:35:08.783140770 -0700
X+++ configuration.c	2014-05-06 16:35:58.734348535 -0700
X@@ -43,7 +43,7 @@
X   char    my_local_host_name[255];
X   static const size_t  my_local_host_name_len=255;
X   struct  hostent         *hent;
X-  int	  i, full;
X+  int	  full;
X   Num_prefer = 0;
X 
X   if (File_name && File_name[0] && (NULL != (fp = fopen(File_name,"r"))) )
1ec34760b90d7ed285c6f7cdfe5172a0
echo x - wackamole/files/patch-alarm.c
sed 's/^X//' >wackamole/files/patch-alarm.c << '6e573e8e15ea5c04c2ae7ed2bd1abeaa'
X--- alarm.c.orig	2014-05-06 16:24:44.652074671 -0700
X+++ alarm.c	2014-05-06 16:26:49.173062394 -0700
X@@ -93,7 +93,7 @@
X 	  timestamp[length] = ' ';
X #ifdef HAVE_SYSLOG_H
X 	  if(syslog_flag)
X-	    syslog(LOG_NOTICE, timestamp);
X+	    syslog(LOG_NOTICE, "%s", timestamp);
X 	  else
X #endif
X 	    fwrite(timestamp, length+1, sizeof(char), stdout);
X@@ -105,7 +105,7 @@
X 	int len = strlen(message)+100;
X 	s = malloc(len);/*estimation*/
X 	vsnprintf(s,len,message, ap);
X-	syslog(LOG_NOTICE, s);
X+	syslog(LOG_NOTICE, "%s", s);
X 	free(s);
X       }
X       else 
6e573e8e15ea5c04c2ae7ed2bd1abeaa
echo x - wackamole/pkg-plist
sed 's/^X//' >wackamole/pkg-plist << '419a8a332efdc22c045e74fd5e0c00a9'
Xetc/wackamole.conf.sample
Xsbin/wackamole
Xsbin/wackatrl
419a8a332efdc22c045e74fd5e0c00a9
echo x - wackamole/Makefile
sed 's/^X//' >wackamole/Makefile << 'a37c5302b0b557751902675992c70f37'
X# Created by: C Hurchinson <portmaster@bsdforge.com>
X
XPORTNAME=	wackamole
XPORTVERSION=	2.1.5
XPORTREVISION=	1
XCATEGORIES=	net
XMASTER_SITES=	http://bsdforge.com/projects/source/net/wackamole/ \
X				http://mirrors.omniti.com/wackamole/
X
XMAINTAINER=	portmaster@bsdforge.com
XCOMMENT=	Peer-to-peer high availability cluster
X
XLIB_DEPENDS=	spread.1:${PORTSDIR}/net/spread
X
XGNU_CONFIGURE=	yes
X
XCONFIGURE_ENV+=	YACC=${YACC}
XUSES= tar:xz
X
XMAN5=		wackamole.conf.5
XMAN8=		wackamole.8 wackatrl.8
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/wackamole.conf ${STAGEDIR}${PREFIX}/etc/wackamole.conf.sample
X	${INSTALL_PROGRAM} ${WRKSRC}/wackamole ${STAGEDIR}${PREFIX}/sbin/wackamole
X	${INSTALL_PROGRAM} ${WRKSRC}/wackatrl ${STAGEDIR}${PREFIX}/etc/wackatrl
X	${INSTALL_MAN} ${WRKSRC}/wackamole.conf.5 ${STAGEDIR}${MAN1PREFIX}/man/man5/wackamole.conf.5
X	${INSTALL_MAN} ${WRKSRC}/wackamole.8 ${STAGEDIR}${MAN1PREFIX}/man/man8/wackamole.8
X	${INSTALL_MAN} ${WRKSRC}/wackatrl.8 ${STAGEDIR}${MAN1PREFIX}/man/man8/wackatrl.8
X
X.include <bsd.port.mk>
a37c5302b0b557751902675992c70f37
echo x - wackamole/distinfo
sed 's/^X//' >wackamole/distinfo << 'cb777e61ce23ac83216a435274b9061b'
XSHA256 (wackamole-2.1.5.tar.xz) = d866a505aa3508f370c2118b1e62c87c09f19c6e0c9d8a1dd53f43306e9d601f
XSIZE (wackamole-2.1.5.tar.xz) = 106968
cb777e61ce23ac83216a435274b9061b
echo x - wackamole/pkg-descr
sed 's/^X//' >wackamole/pkg-descr << '162474abfb2a3aceb4a82785e6642789'
XWackamole is an application that helps with making a cluster highly
Xavailable.
X
XIt manages a number of virtual IPs, that should be available to the
Xoutside world at all times. Wackamole ensures that a single machine
Xwithin a cluster is listening on each virtual IP address that Wackamole
Xmanages. If it discovers that any particular machine within the cluster
Xare not alive, it will almost immediately ensure that other machines
Xacquire their public IPs. At no time will more than one machine listen
Xon any virtual IP.
X
XWackamole also works toward achieving a balanced distribution of the
Xnumbered IPs on the machine within the cluster it manages.
X
XWWW:	http://BSDforge.com/projects/net/wackamole/
162474abfb2a3aceb4a82785e6642789
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405070040.s470en0J092729>