diff options
author | mjl <mjl@pkgsrc.org> | 2003-02-18 22:11:55 +0000 |
---|---|---|
committer | mjl <mjl@pkgsrc.org> | 2003-02-18 22:11:55 +0000 |
commit | 5abb965f347db0fd0be99423308bec539616e742 (patch) | |
tree | 1fdbe54c83e9a9bc935e1662200db6fbe455bb01 /net/spread | |
parent | 3a84fed861b273b4ce2378033150c8117ee615d3 (diff) | |
download | pkgsrc-5abb965f347db0fd0be99423308bec539616e742.tar.gz |
Import of spread 3.17.0. Patches and tweaks taken from FreeBSD port.
Spread is a group communication system that provides a number of
messaging services to applications. These services can then be used
by applications to make it easy to write full-featured reliable
groupware, distributed servers, client-server applications, chat
and news services, and many other networked enabled tools.
Diffstat (limited to 'net/spread')
-rw-r--r-- | net/spread/DESCR | 5 | ||||
-rw-r--r-- | net/spread/Makefile | 41 | ||||
-rw-r--r-- | net/spread/PLIST | 41 | ||||
-rw-r--r-- | net/spread/distinfo | 9 | ||||
-rw-r--r-- | net/spread/patches/patch-aa | 16 | ||||
-rw-r--r-- | net/spread/patches/patch-ba | 13 | ||||
-rw-r--r-- | net/spread/patches/patch-bb | 15 | ||||
-rw-r--r-- | net/spread/patches/patch-bc | 21 | ||||
-rw-r--r-- | net/spread/patches/patch-bd | 104 |
9 files changed, 265 insertions, 0 deletions
diff --git a/net/spread/DESCR b/net/spread/DESCR new file mode 100644 index 00000000000..2d240ef5ce1 --- /dev/null +++ b/net/spread/DESCR @@ -0,0 +1,5 @@ +Spread is a group communication system that provides a number of +messaging services to applications. These services can then be used +by applications to make it easy to write full-featured reliable +groupware, distributed servers, client-server applications, chat +and news services, and many other networked enabled tools. diff --git a/net/spread/Makefile b/net/spread/Makefile new file mode 100644 index 00000000000..27fa1a99603 --- /dev/null +++ b/net/spread/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ +# + +DISTNAME= ${BASENAME}-src-${VER} +PKGNAME= ${BASENAME}-${VER} +CATEGORIES= net +MASTER_SITES= http://www.roughtrade.net/distfiles/ +# Also available through manual download at +# http://www.cnds.jhu.edu/download/download_spread.cgi + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.spread.org/ +COMMENT= Group communication system providing a number of messaging services + +BASENAME= spread +VER= 3.17.0 +WRKSRC= ${WRKDIR}/${DISTNAME} +USE_BUILDLINK2= YES +GNU_CONFIGURE= YES + +BUILD_DEPENDS+= perl-[0-9]*:../../lang/perl5:build +LDFLAGS += -lutil + +INCLUDEDIR= ${PREFIX}/include/spread +DOCSDIR= ${PREFIX}/share/doc/spread +EXAMPLEDIR= ${PREFIX}/share/examples/spread + +post-install: + ${INSTALL_DATA_DIR} ${INCLUDEDIR} + ${INSTALL_DATA_DIR} ${DOCSDIR} + ${INSTALL_DATA_DIR} ${EXAMPLEDIR} + ${INSTALL_DATA} ${WRKSRC}/sp.h ${INCLUDEDIR}/sp.h + ${INSTALL_DATA} ${WRKSRC}/sp_func.h ${INCLUDEDIR}/sp_func.h + ${INSTALL_DATA} ${WRKSRC}/sp_events.h ${INCLUDEDIR}/sp_events.h + ${INSTALL_DATA} ${WRKSRC}/sample.spread.conf ${EXAMPLEDIR}/spread.conf.sample + ${INSTALL_DATA} ${WRKSRC}/sample.spread.access_ip ${EXAMPLEDIR}/spread.access_ip.sample + ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${DOCSDIR}/Readme.txt + ${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}/LICENSE + +.include "../../mk/pthread.buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/spread/PLIST b/net/spread/PLIST new file mode 100644 index 00000000000..eaeb81a7582 --- /dev/null +++ b/net/spread/PLIST @@ -0,0 +1,41 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ +bin/spmonitor +bin/spuser +bin/sptuser +bin/spflooder +lib/libspread.a +lib/libtspread.a +lib/libspread.so +lib/libtspread.so +lib/libspread.so.1 +lib/libtspread.so.1 +man/man1/spread.1 +man/man1/spuser.1 +man/man1/sptuser.1 +man/man1/spflooder.1 +man/man1/spmonitor.1 +man/man3/libsp.3 +man/man3/SP_connect.3 +man/man3/SP_disconnect.3 +man/man3/SP_equal_group_ids.3 +man/man3/SP_error.3 +man/man3/SP_join.3 +man/man3/SP_leave.3 +man/man3/SP_multicast.3 +man/man3/SP_multigroup_multicast.3 +man/man3/SP_multigroup_scat_multicast.3 +man/man3/SP_poll.3 +man/man3/SP_receive.3 +man/man3/SP_scat_multicast.3 +man/man3/SP_scat_receive.3 +sbin/spread +include/spread/sp.h +include/spread/sp_func.h +include/spread/sp_events.h +share/examples/spread/spread.conf.sample +share/examples/spread/spread.access_ip.sample +share/doc/spread/Readme.txt +share/doc/spread/LICENSE +@unexec ${RMDIR} %D/share/examples/spread 2>/dev/null || ${TRUE} +@unexec ${RMDIR} %D/share/doc/spread 2>/dev/null || ${TRUE} +@unexec ${RMDIR} %D/include/spread 2>/dev/null || ${TRUE} diff --git a/net/spread/distinfo b/net/spread/distinfo new file mode 100644 index 00000000000..665fa5fd8c1 --- /dev/null +++ b/net/spread/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ + +SHA1 (spread-src-3.17.0.tar.gz) = 1d9d431583ae8692e07f871ae0f4d8f1cb3e4b41 +Size (spread-src-3.17.0.tar.gz) = 285740 bytes +SHA1 (patch-aa) = f828aee668893b12a384eed3d762cbbc26093a59 +SHA1 (patch-ba) = 90f2896dc62627772a05c06add99c59a55e91c88 +SHA1 (patch-bb) = efd9b08d775542622ce35265e2b72d655b5ca00f +SHA1 (patch-bc) = d3b0e7e7841da86a8eae81eab691977c8d128743 +SHA1 (patch-bd) = 68b2958ddbd02814e857de19f958f8311ea546f1 diff --git a/net/spread/patches/patch-aa b/net/spread/patches/patch-aa new file mode 100644 index 00000000000..693b15e4be7 --- /dev/null +++ b/net/spread/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ + +--- configure.orig 2002-09-25 18:35:26.000000000 +0200 ++++ configure 2003-02-18 21:46:00.000000000 +0100 +@@ -1250,9 +1250,9 @@ + { echo "configure: error: *** 'ar' missing, please install or fix your \$PATH ***" 1>&2; exit 1; } + fi + +-if test -z "$LD" ; then ++# if test -z "$LD" ; then + LD=$CC +-fi ++# fi + + + # C Compiler features diff --git a/net/spread/patches/patch-ba b/net/spread/patches/patch-ba new file mode 100644 index 00000000000..276053caf26 --- /dev/null +++ b/net/spread/patches/patch-ba @@ -0,0 +1,13 @@ +$NetBSD: patch-ba,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ + +--- auth-ip.c.orig 2003-02-18 20:54:23.000000000 +0100 ++++ auth-ip.c 2003-02-18 20:54:50.000000000 +0100 +@@ -94,7 +94,7 @@ + if (NULL != (fp = fopen("./spread.access_ip", "r")) ) + Alarm( PRINT, "ip_init: using file: ./spread.access_ip\n"); + if (fp == NULL) +- if (NULL != (fp = fopen("/etc/spread.access_ip", "r")) ) ++ if (NULL != (fp = fopen(SPREAD_ETCDIR "/spread.access_ip", "r")) ) + Alarm( PRINT, "ip_init: using file: /etc/spread.access_ip\n"); + if (fp == NULL) + { diff --git a/net/spread/patches/patch-bb b/net/spread/patches/patch-bb new file mode 100644 index 00000000000..8139bf8ef45 --- /dev/null +++ b/net/spread/patches/patch-bb @@ -0,0 +1,15 @@ +$NetBSD: patch-bb,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ + +--- auth-pword.c.orig 2003-02-18 20:55:48.000000000 +0100 ++++ auth-pword.c 2003-02-18 20:56:20.000000000 +0100 +@@ -122,8 +122,8 @@ + if (NULL != (fp = fopen("./spread.access_pword", "r")) ) + Alarm( PRINT, "pword_init: using file: ./spread.access_pword\n"); + if (fp == NULL) +- if (NULL != (fp = fopen("/etc/spread.access_pword", "r")) ) +- Alarm( PRINT, "pword_init: using file: /etc/spread.access_pword\n"); ++ if (NULL != (fp = fopen(SPREAD_ETCDIR "/spread.access_pword", "r")) ) ++ Alarm( PRINT, "pword_init: using file: " SPREAD_ETCDIR "/spread.access_pword\n"); + if (fp == NULL) + Alarm( EXIT, "pword_init: error opening config file %s in any of the standard locations. Please make sure the file exists\n", file_name); + diff --git a/net/spread/patches/patch-bc b/net/spread/patches/patch-bc new file mode 100644 index 00000000000..5d41a78516d --- /dev/null +++ b/net/spread/patches/patch-bc @@ -0,0 +1,21 @@ +$NetBSD: patch-bc,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ + +--- spread.c.orig 2003-02-18 20:57:01.000000000 +0100 ++++ spread.c 2003-02-18 20:59:32.000000000 +0100 +@@ -47,6 +47,7 @@ + #include <grp.h> + #include <pwd.h> + #include <unistd.h> ++#include <util.h> + #include <sys/types.h> + #endif + +@@ -144,6 +145,8 @@ + + #endif /* ARCH_PC_WIN95 */ + ++ pidfile("spread"); ++ + /* initialize each valid authentication protocol */ + null_init(); + ip_init(); diff --git a/net/spread/patches/patch-bd b/net/spread/patches/patch-bd new file mode 100644 index 00000000000..ce96ef64fb0 --- /dev/null +++ b/net/spread/patches/patch-bd @@ -0,0 +1,104 @@ +$NetBSD: patch-bd,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $ + +--- Makefile.in.orig 2003-02-18 22:12:03.000000000 +0100 ++++ Makefile.in 2003-02-18 22:19:29.000000000 +0100 +@@ -25,7 +25,7 @@ + #Rules: major -- inc for incompatible change + # : minor -- inc for bugfix or forward compatible change + +-LIBVERSION=1.0 ++LIBVERSION=1 + + PATHS= + +@@ -33,8 +33,8 @@ + LD=@LD@ + CFLAGS=@CFLAGS@ + CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ +-LDFLAGS=@LDFLAGS@ ++LDFLAGS=@LDFLAGS@ -L. + LIBS=@LIBS@ + THLDFLAGS=@THLDFLAGS@ + THLIBS=@THLIBS@ + AR=@AR@ +@@ -51,8 +51,10 @@ + PERL=@PERL@ + ENT=@ENT@ + EXEEXT=@EXEEXT@ ++SHLDSONAME=-Wl,-soname,libspread.so.$(LIBVERSION) ++TSHLDSONAME=-Wl,-soname,libtspread.so.$(LIBVERSION) + +-TARGETS=spread$(EXEEXT) spuser$(EXEEXT) spflooder$(EXEEXT) spmonitor$(EXEEXT) sptuser${EXEEXT} @LIBSPSO@ @LIBTSPSO@ ++TARGETS=spread$(EXEEXT) spuser$(EXEEXT) spflooder$(EXEEXT) spmonitor$(EXEEXT) sptuser${EXEEXT} @LIBSPSO@ @LIBTSPSO@ libspread.a libtspread.a + + LIBSP_OBJS= alarm.o events.o memory.o sp.o + +@@ -123,8 +125,11 @@ + $(INSTALL) -m 0755 libspread.$(LIBVERSION).dylib $(DESTDIR)$(libdir)/libspread.$(LIBVERSION).dylib + (cd $(DESTDIR)$(libdir); $(SOFTLINK) libspread.$(LIBVERSION).dylib libspread.dylib) + +-libspread.so: $(LIBSP_SHOBJS) +- $(SHLD) -o $@ $(LIBSP_SHOBJS) $(SHLDFLAGS) $(SHLIBS) ++libspread.so: $@.$(LIBVERSION) ++ $(SOFTLINK) $@.$(LIBVERSION) $@ ++ ++libspread.so.$(LIBVERSION): $(LIBSP_SHOBJS) ++ $(SHLD) -o $@ $(LIBSP_SHOBJS) $(SHLDSONAME) $(SHLDFLAGS) $(SHLIBS) + + install-libspread.so: libspread.so + $(INSTALL) -m 0755 libspread.so $(DESTDIR)$(libdir)/libspread.so.$(LIBVERSION) +@@ -142,8 +147,11 @@ + $(INSTALL) -m 0755 libtspread.$(LIBVERSION).dylib $(DESTDIR)$(libdir)/libtspread.$(LIBVERSION).dylib + (cd $(DESTDIR)$(libdir); $(SOFTLINK) libtspread.$(LIBVERSION).dylib libtspread.dylib) + +-libtspread.so: $(LIBTSP_SHOBJS) +- $(SHLD) -o $@ $(LIBTSP_SHOBJS) $(SHLDFLAGS) $(SHLIBS) $(THLIBS) ++libtspread.so: $@.$(LIBVERSION) ++ $(SOFTLINK) $@.$(LIBVERSION) $@ ++ ++libtspread.so.$(LIBVERSION): $(LIBTSP_SHOBJS) ++ $(SHLD) -o $@ $(LIBTSP_SHOBJS) $(TSHLDSONAME) $(SHLDFLAGS) $(SHLIBS) $(THLIBS) + + install-libtspread.so: libtspread.so + $(INSTALL) -m 0755 libtspread.so $(DESTDIR)$(libdir)/libtspread.so.$(LIBVERSION) +@@ -152,17 +160,17 @@ + spread$(EXEEXT): $(SPREADOBJS) + $(LD) -o $@ $(SPREADOBJS) $(LDFLAGS) $(LIBS) + +-spuser$(EXEEXT): libspread.a user.o +- $(LD) -o $@ user.o $(LDFLAGS) libspread.a $(LIBS) ++spuser$(EXEEXT): libspread.so user.o ++ $(LD) -o $@ user.o $(LDFLAGS) -lspread $(LIBS) + +-spflooder$(EXEEXT): libspread.a flooder.o +- $(LD) -o $@ flooder.o $(LDFLAGS) libspread.a $(LIBS) ++spflooder$(EXEEXT): libspread.so flooder.o ++ $(LD) -o $@ flooder.o $(LDFLAGS) -lspread $(LIBS) + + spmonitor$(EXEEXT): $(MONITOROBJS) + $(LD) -o $@ $(MONITOROBJS) $(LDFLAGS) $(LIBS) + +-sptuser$(EXEEXT): user.to libtspread.a +- $(LD) $(THLDFLAGS) -o $@ user.to libtspread.a $(LDFLAGS) $(LIBS) $(THLIBS) ++sptuser$(EXEEXT): user.to libtspread.so ++ $(LD) $(THLDFLAGS) -o $@ user.to -ltspread $(LDFLAGS) $(LIBS) $(THLIBS) + + spsimple_user$(EXEEXT): simple_user.o libspread.a + $(LD) -o $@ simple_user.o $(LDFLAGS) libspread.a $(LIBS) +@@ -235,11 +243,11 @@ + if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \ + $(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \ + fi +- if [ ! -f $(DESTDIR)$(sysconfdir)/spread.conf ]; then \ +- $(INSTALL) -m 644 $(srcdir)/sample.spread.conf $(DESTDIR)$(sysconfdir)/spread.conf; \ +- else \ +- echo "$(DESTDIR)$(sysconfdir)/spread.conf already exists, install will not overwrite"; \ +- fi ++# if [ ! -f $(DESTDIR)$(sysconfdir)/spread.conf ]; then \ ++# $(INSTALL) -m 644 $(srcdir)/sample.spread.conf $(DESTDIR)$(sysconfdir)/spread.conf; \ ++# else \ ++# echo "$(DESTDIR)$(sysconfdir)/spread.conf already exists, install will not overwrite"; \ ++# fi + + uninstallall: uninstall + -rm -f $(DESTDIR)$(sysconfdir)/spread.conf |