diff options
author | Olli Hauer <ohauer@FreeBSD.org> | 2013-03-03 18:12:06 +0000 |
---|---|---|
committer | Olli Hauer <ohauer@FreeBSD.org> | 2013-03-03 18:12:06 +0000 |
commit | f5e450a425623ce0fcd4c5d5ac5dff3d7a6c68cd (patch) | |
tree | 8e7c7b6591344ec701624ccf3cac1e695916e597 /net/spread4 | |
parent | 4d5eec6a6176e906a6cde98a1f71be1e8f74204b (diff) |
Notes
Diffstat (limited to 'net/spread4')
-rw-r--r-- | net/spread4/Makefile | 22 | ||||
-rw-r--r-- | net/spread4/distinfo | 4 | ||||
-rw-r--r-- | net/spread4/files/patch-daemon__Makefile.in | 11 | ||||
-rw-r--r-- | net/spread4/files/patch-daemon__monitor.c | 10 | ||||
-rw-r--r-- | net/spread4/files/patch-docs__sample.spread.conf | 2 | ||||
-rw-r--r-- | net/spread4/files/patch-examples__Makefile.in | 11 | ||||
-rw-r--r-- | net/spread4/files/spread.in | 24 | ||||
-rw-r--r-- | net/spread4/pkg-plist | 12 |
8 files changed, 69 insertions, 27 deletions
diff --git a/net/spread4/Makefile b/net/spread4/Makefile index cc696e14c17e..01302eddd003 100644 --- a/net/spread4/Makefile +++ b/net/spread4/Makefile @@ -1,18 +1,13 @@ -# New ports collection makefile for: spread -# Date created: 11 June 2001 -# Whom: Anders Nordby <anders@fix.no> -# +# Created by: Anders Nordby <anders@fix.no> # $FreeBSD$ -# PORTNAME= spread4 -PORTVERSION= 4.1.0 -PORTREVISION= 1 +PORTVERSION= 4.2.0 CATEGORIES= net perl5 -MASTER_SITES= LOCAL/wen +MASTER_SITES= LOCAL/ohauer DISTNAME= spread-src-${PORTVERSION} -MAINTAINER= apache@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= The Spread Group Communication System, a network toolkit GNU_CONFIGURE= yes @@ -26,6 +21,7 @@ GROUPS= spread RUNDIR= /var/run/spread PLIST_SUB+= USERS=${USERS} GROUPS=${GROUPS} RUNDIR=${RUNDIR} +SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} WRKSRC= ${WRKDIR}/spread-src-${PORTVERSION} @@ -51,18 +47,18 @@ post-extract: ${WRKSRC}/Makefile.in post-install: - ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.conf \ + ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \ ${PREFIX}/etc/spread.conf.sample - ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.access_ip \ + ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \ ${PREFIX}/etc/spread.access_ip.sample .if !exists(${PREFIX}/etc/spread.conf) - ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.conf \ + ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.conf \ ${PREFIX}/etc/spread.conf .endif .if !exists(${PREFIX}/etc/spread.access_ip) - ${INSTALL_DATA} ${WRKSRC}/docs/sample.spread.access_ip \ + ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/sample.spread.access_ip \ ${PREFIX}/etc/spread.access_ip .endif diff --git a/net/spread4/distinfo b/net/spread4/distinfo index 9cd7614ff8e9..826ec7cfe4a8 100644 --- a/net/spread4/distinfo +++ b/net/spread4/distinfo @@ -1,2 +1,2 @@ -SHA256 (spread-src-4.1.0.tar.gz) = 764d84ecf06877802c805efc1e84bbb362f14c791829e88d62fcba9951a68cdd -SIZE (spread-src-4.1.0.tar.gz) = 641060 +SHA256 (spread-src-4.2.0.tar.gz) = 0f234c211eadc26002e31343bdd1e343f4956f5665edd4db92751ef1d595bb5c +SIZE (spread-src-4.2.0.tar.gz) = 736189 diff --git a/net/spread4/files/patch-daemon__Makefile.in b/net/spread4/files/patch-daemon__Makefile.in new file mode 100644 index 000000000000..e5d39e6a4735 --- /dev/null +++ b/net/spread4/files/patch-daemon__Makefile.in @@ -0,0 +1,11 @@ +--- daemon/Makefile.in.orig 2012-03-21 00:26:01.000000000 +0100 ++++ daemon/Makefile.in 2013-01-22 12:02:35.000000000 +0100 +@@ -30,7 +30,7 @@ + LIBSPREADUTIL_DIR=../libspread-util + LIBSPREADUTIL_PATHS=-I$(LIBSPREADUTIL_DIR)/include -I$(top_srcdir)/libspread-util/include + LIBSPREADUTIL_LDFLAGS=-rdynamic +-LIBSPREADUTIL_LIBS=-ldl ++LIBSPREADUTIL_LIBS= + + CC=@CC@ + LD=@LD@ diff --git a/net/spread4/files/patch-daemon__monitor.c b/net/spread4/files/patch-daemon__monitor.c new file mode 100644 index 000000000000..7036bb0900f8 --- /dev/null +++ b/net/spread4/files/patch-daemon__monitor.c @@ -0,0 +1,10 @@ +--- daemon/monitor.c.orig 2012-03-21 04:17:52.000000000 +0100 ++++ daemon/monitor.c 2013-01-22 12:21:25.000000000 +0100 +@@ -39,6 +39,7 @@ + #include <string.h> + #include <stdlib.h> + #include <errno.h> ++#include <sys/stdint.h> + + #include "arch.h" + #include "mutex.h" diff --git a/net/spread4/files/patch-docs__sample.spread.conf b/net/spread4/files/patch-docs__sample.spread.conf index 523958f95941..469af0d85b6d 100644 --- a/net/spread4/files/patch-docs__sample.spread.conf +++ b/net/spread4/files/patch-docs__sample.spread.conf @@ -4,7 +4,7 @@ # "spreadlog_machine2.mydomain.com.log" respectively. #EventLogFile = testlog.out -+EventLogFile = /var/log/spread.log ++EventLogFile = /var/log/spread/spread.log #Set whether to add a timestamp in front of all logged events or not. # Default is no timestamps. Default format is "[%a %d %b %Y %H:%M:%S]". diff --git a/net/spread4/files/patch-examples__Makefile.in b/net/spread4/files/patch-examples__Makefile.in new file mode 100644 index 000000000000..e96d51bf0065 --- /dev/null +++ b/net/spread4/files/patch-examples__Makefile.in @@ -0,0 +1,11 @@ +--- examples/Makefile.in.orig 2012-03-21 00:26:01.000000000 +0100 ++++ examples/Makefile.in 2013-01-22 12:02:41.000000000 +0100 +@@ -30,7 +30,7 @@ + LIBSPREADUTIL_DIR=../libspread-util + LIBSPREADUTIL_PATHS=-I$(LIBSPREADUTIL_DIR)/include -I$(top_srcdir)/libspread-util/include + LIBSPREADUTIL_LDFLAGS=-rdynamic +-LIBSPREADUTIL_LIBS=-ldl ++LIBSPREADUTIL_LIBS= + + CC=@CC@ + LD=@LD@ diff --git a/net/spread4/files/spread.in b/net/spread4/files/spread.in index 6e5b76fc4fac..b72be094f6ff 100644 --- a/net/spread4/files/spread.in +++ b/net/spread4/files/spread.in @@ -19,15 +19,29 @@ name=spread rcvar=spread_enable +load_rc_config ${name} -command="%%PREFIX%%/sbin/spread" +# set defaults +spread_enable=${spread_enable:-"NO"} +spread_user=%%USERS%% +spread_group=%%GROUPS%% -pidfile=/var/run/${name}.pid +command="%%PREFIX%%/sbin/spread" required_files=%%PREFIX%%/etc/${name}.conf +pidfile=/var/run/${name}.pid -# set defaults +start_cmd=spread_start +stop_postcmd=spread_cleanup -spread_enable=${spread_enable:-"NO"} +spread_start() { + echo "Starting spread." + /usr/bin/install -o ${spread_user} -g ${spread_group} -d /var/log/spread + /usr/bin/touch ${pidfile} && /usr/sbin/chown ${spread_user}:${spread_group} ${pidfile} + /usr/sbin/daemon -cf -p ${pidfile} -u ${spread_user} ${command} ${spread_flags} +} + +spread_cleanup() { + [ -f ${pidfile} ] && rm -f ${pidfile} +} -load_rc_config ${name} run_rc_command "$1" diff --git a/net/spread4/pkg-plist b/net/spread4/pkg-plist index 2324bb6df796..8bd2b701185c 100644 --- a/net/spread4/pkg-plist +++ b/net/spread4/pkg-plist @@ -17,14 +17,14 @@ lib/libspread.a lib/libspread-core.a lib/libtspread-core.a lib/libspread.so -lib/libspread.so.2 -lib/libspread.so.2.0.1 +lib/libspread.so.3 +lib/libspread.so.3.0.0 lib/libspread-core.so -lib/libspread-core.so.2 -lib/libspread-core.so.2.0.1 +lib/libspread-core.so.3 +lib/libspread-core.so.3.0.0 lib/libtspread-core.so -lib/libtspread-core.so.2 -lib/libtspread-core.so.2.0.1 +lib/libtspread-core.so.3 +lib/libtspread-core.so.3.0.0 sbin/spread %%PORTDOCS%%%%DOCSDIR%%/DynamicConfiguration.txt %%PORTDOCS%%%%DOCSDIR%%/Flush_or_SpreadAPI.txt |