diff options
author | John Marino <marino@FreeBSD.org> | 2014-06-11 14:25:01 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-06-11 14:25:01 +0000 |
commit | f2aad7685cec3bfa524ce8048f1c372dc6efed93 (patch) | |
tree | 0b3a17df0b8d047f5dbb7357fc22485b36e5aa57 /net/wackamole | |
parent | 8e07a09478b7a50637c5d9f19abe57f3a486810c (diff) | |
download | ports-f2aad7685cec3bfa524ce8048f1c372dc6efed93.tar.gz ports-f2aad7685cec3bfa524ce8048f1c372dc6efed93.zip |
Notes
Diffstat (limited to 'net/wackamole')
-rw-r--r-- | net/wackamole/Makefile | 20 | ||||
-rw-r--r-- | net/wackamole/distinfo | 2 | ||||
-rw-r--r-- | net/wackamole/files/patch-alarm.c | 20 | ||||
-rw-r--r-- | net/wackamole/files/patch-config_gram.y | 11 | ||||
-rw-r--r-- | net/wackamole/files/patch-configuration.c | 11 | ||||
-rw-r--r-- | net/wackamole/files/patch-defines.h | 28 | ||||
-rw-r--r-- | net/wackamole/files/patch-wackamole.c | 20 | ||||
-rw-r--r-- | net/wackamole/pkg-descr | 15 | ||||
-rw-r--r-- | net/wackamole/pkg-plist | 6 |
9 files changed, 133 insertions, 0 deletions
diff --git a/net/wackamole/Makefile b/net/wackamole/Makefile new file mode 100644 index 000000000000..a40a79b3bff7 --- /dev/null +++ b/net/wackamole/Makefile @@ -0,0 +1,20 @@ +# Created by: Marcin Cieslak <saper@system.pl> +# $FreeBSD$ + +PORTNAME= wackamole +PORTVERSION= 2.1.5 +CATEGORIES= net +MASTER_SITES= http://bsdforge.com/projects/source/net/wackamole/ \ + http://mirrors.omniti.com/wackamole/ + +MAINTAINER= portmaster@bsdforge.com +COMMENT= Peer-to-peer high availability cluster + +LIB_DEPENDS= libspread.so:${PORTSDIR}/net/spread + +USES= tar:xz +GNU_CONFIGURE= yes + +CONFIGURE_ENV+= YACC=${YACC} + +.include <bsd.port.mk> diff --git a/net/wackamole/distinfo b/net/wackamole/distinfo new file mode 100644 index 000000000000..703e5ee7dbc6 --- /dev/null +++ b/net/wackamole/distinfo @@ -0,0 +1,2 @@ +SHA256 (wackamole-2.1.5.tar.xz) = d866a505aa3508f370c2118b1e62c87c09f19c6e0c9d8a1dd53f43306e9d601f +SIZE (wackamole-2.1.5.tar.xz) = 106968 diff --git a/net/wackamole/files/patch-alarm.c b/net/wackamole/files/patch-alarm.c new file mode 100644 index 000000000000..7034c83282d1 --- /dev/null +++ b/net/wackamole/files/patch-alarm.c @@ -0,0 +1,20 @@ +--- alarm.c.orig 2014-05-06 16:24:44.652074671 -0700 ++++ alarm.c 2014-05-06 16:26:49.173062394 -0700 +@@ -93,7 +93,7 @@ + timestamp[length] = ' '; + #ifdef HAVE_SYSLOG_H + if(syslog_flag) +- syslog(LOG_NOTICE, timestamp); ++ syslog(LOG_NOTICE, "%s", timestamp); + else + #endif + fwrite(timestamp, length+1, sizeof(char), stdout); +@@ -105,7 +105,7 @@ + int len = strlen(message)+100; + s = malloc(len);/*estimation*/ + vsnprintf(s,len,message, ap); +- syslog(LOG_NOTICE, s); ++ syslog(LOG_NOTICE, "%s", s); + free(s); + } + else diff --git a/net/wackamole/files/patch-config_gram.y b/net/wackamole/files/patch-config_gram.y new file mode 100644 index 000000000000..d7ac0bce019c --- /dev/null +++ b/net/wackamole/files/patch-config_gram.y @@ -0,0 +1,11 @@ +--- config_gram.y.orig 2014-05-06 16:30:17.040722949 -0700 ++++ config_gram.y 2014-05-06 16:32:22.614815187 -0700 +@@ -106,7 +106,7 @@ + SPIT("Setting Group: %s\n", Spread_group); } + | W_LOG W_EQUALS W_STRING + | W_CONTROL W_EQUALS W_STRING +- { snprintf(control_socket, MAXPATHLEN, $3.string); } ++ { snprintf(control_socket, MAXPATHLEN, "%s", $3.string); } + | W_MATURE W_EQUALS W_TIMEINTERVAL + { Maturity_timeout.sec = $3.tv.tv_sec; + Maturity_timeout.usec = 0; diff --git a/net/wackamole/files/patch-configuration.c b/net/wackamole/files/patch-configuration.c new file mode 100644 index 000000000000..e58e93d66ff0 --- /dev/null +++ b/net/wackamole/files/patch-configuration.c @@ -0,0 +1,11 @@ +--- configuration.c.orig 2014-05-06 16:35:08.783140770 -0700 ++++ configuration.c 2014-05-06 16:35:58.734348535 -0700 +@@ -43,7 +43,7 @@ + char my_local_host_name[255]; + static const size_t my_local_host_name_len=255; + struct hostent *hent; +- int i, full; ++ int full; + Num_prefer = 0; + + if (File_name && File_name[0] && (NULL != (fp = fopen(File_name,"r"))) ) diff --git a/net/wackamole/files/patch-defines.h b/net/wackamole/files/patch-defines.h new file mode 100644 index 000000000000..84da09f03e28 --- /dev/null +++ b/net/wackamole/files/patch-defines.h @@ -0,0 +1,28 @@ +--- defines.h.orig 2014-05-06 16:38:13.055354417 -0700 ++++ defines.h 2014-05-06 16:42:19.536056294 -0700 +@@ -13,6 +13,9 @@ + #ifdef HAVE_STRINGS_H + #include <strings.h> + #endif ++#ifdef HAVE_STRING_H ++#include <string.h> ++#endif + #ifdef HAVE_ERRNO_H + #include <errno.h> + #endif +@@ -59,12 +62,12 @@ + #ifdef HAVE_NET_ROUTE_H + #include <net/route.h> + #endif +-#ifdef HAVE_PCAP_H +-#include <pcap.h> +-#endif + #ifdef HAVE_NET_BPF_H + #include <net/bpf.h> + #endif ++#ifdef HAVE_PCAP_H ++#include <pcap.h> ++#endif + #ifdef HAVE_NET_ETHERNET_H + #include <net/ethernet.h> + #endif diff --git a/net/wackamole/files/patch-wackamole.c b/net/wackamole/files/patch-wackamole.c new file mode 100644 index 000000000000..6fb6fee7c057 --- /dev/null +++ b/net/wackamole/files/patch-wackamole.c @@ -0,0 +1,20 @@ +--- wackamole.c.orig 2014-05-06 16:45:39.558907243 -0700 ++++ wackamole.c 2014-05-06 16:47:57.679302712 -0700 +@@ -911,7 +911,7 @@ + wack_alarm(PRINT, "%d %s", __LINE__, if_error()); + else { + char buffer[16]; +- snprintf(buffer, 16, inet_ntoa(iface.ipaddr)); ++ snprintf(buffer, 16, "%s", inet_ntoa(iface.ipaddr)); + wack_alarm(PRINT, " UP: %s:%s/%s", + iface.ifname,buffer,inet_ntoa(iface.netmask)); + } +@@ -954,7 +954,7 @@ + } + } else { + char buffer[16]; +- snprintf(buffer, 16, inet_ntoa(idown.ipaddr)); ++ snprintf(buffer, 16, "%s", inet_ntoa(idown.ipaddr)); + wack_alarm(PRINT, "DOWN: %s:%s/%s", + idown.ifname,buffer,inet_ntoa(idown.netmask)); + } diff --git a/net/wackamole/pkg-descr b/net/wackamole/pkg-descr new file mode 100644 index 000000000000..c1dd07758c70 --- /dev/null +++ b/net/wackamole/pkg-descr @@ -0,0 +1,15 @@ +Wackamole is an application that helps with making a cluster highly +available. + +It manages a number of virtual IPs, that should be available to the +outside world at all times. Wackamole ensures that a single machine +within a cluster is listening on each virtual IP address that Wackamole +manages. If it discovers that any particular machine within the cluster +are not alive, it will almost immediately ensure that other machines +acquire their public IPs. At no time will more than one machine listen +on any virtual IP. + +Wackamole also works toward achieving a balanced distribution of the +numbered IPs on the machine within the cluster it manages. + +WWW: http://BSDforge.com/projects/net/wackamole/ diff --git a/net/wackamole/pkg-plist b/net/wackamole/pkg-plist new file mode 100644 index 000000000000..3d0150b96760 --- /dev/null +++ b/net/wackamole/pkg-plist @@ -0,0 +1,6 @@ +etc/wackamole.conf.sample +sbin/wackamole +sbin/wackatrl +man/man5/wackamole.conf.5.gz +man/man8/wackamole.8.gz +man/man8/wackatrl.8.gz |