summaryrefslogtreecommitdiff
path: root/net/spat
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-10-31 12:41:17 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-10-31 12:41:17 +0000
commit5ee4e37d0753ed37618816e2adb9f3fd81d24696 (patch)
tree8988656fdeffe9abba74c96a4eebd45b1585f1da /net/spat
parentUpdate to 0.3. (diff)
Add spat - a lightweight Intranet Messaging Application for GNOME desktop.
Notes
Notes: svn path=/head/; revision=34491
Diffstat (limited to 'net/spat')
-rw-r--r--net/spat/Makefile44
-rw-r--r--net/spat/distinfo1
-rw-r--r--net/spat/files/patch-aa20
-rw-r--r--net/spat/files/patch-ab29
-rw-r--r--net/spat/files/patch-ac20
-rw-r--r--net/spat/files/patch-ad11
-rw-r--r--net/spat/files/patch-ae11
-rw-r--r--net/spat/files/patch-af11
-rw-r--r--net/spat/pkg-comment1
-rw-r--r--net/spat/pkg-descr19
-rw-r--r--net/spat/pkg-plist14
11 files changed, 181 insertions, 0 deletions
diff --git a/net/spat/Makefile b/net/spat/Makefile
new file mode 100644
index 000000000000..ebeb79e4dbbf
--- /dev/null
+++ b/net/spat/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: spat
+# Date created: 31 October 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= spat
+PORTVERSION= 0.9.9.1
+CATEGORIES= net gnome
+MASTER_SITES= http://spat.codehost.com/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}.src
+
+MAINTAINER= sobomax@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1$//}
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GNOME= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-lcompat -L${LOCALBASE}/lib"
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+
+pre-configure:
+ @${RM} -f ${WRKSRC}/config.cache
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/gnome/apps/Applications \
+ ${PREFIX}/etc/CORBA/servers
+.for file in spat.desktop spatd.desktop
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/gnome/apps/Applications
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/spatd.gnorba ${PREFIX}/etc/CORBA/servers
+ ${LN} -sf ${PREFIX}/share/gnome/pixmaps/spat/spat.png \
+ ${PREFIX}/share/gnome/pixmaps/spat.png
+
+.include <bsd.port.mk>
diff --git a/net/spat/distinfo b/net/spat/distinfo
new file mode 100644
index 000000000000..c834a35de311
--- /dev/null
+++ b/net/spat/distinfo
@@ -0,0 +1 @@
+MD5 (spat-0.9.9-1.src.tar.gz) = 4f8674ac49092065fd6675c3ca68d2d6
diff --git a/net/spat/files/patch-aa b/net/spat/files/patch-aa
new file mode 100644
index 000000000000..782020f4960b
--- /dev/null
+++ b/net/spat/files/patch-aa
@@ -0,0 +1,20 @@
+--- spatd/main.c 2000/10/31 11:17:27 1.1
++++ spatd/main.c 2000/10/31 11:33:07
+@@ -48,8 +48,16 @@
+ void
+ launch_spat()
+ {
+- system("/usr/local/bin/spat &");
++ system(PREFIX "/bin/spat &");
++}
++
++#ifdef __FreeBSD__
++char *gcvt(double value, int ndigit, char *buf)
++{
++ sprintf(buf, "%.*g", ndigit, value);
++ return buf;
+ }
++#endif
+
+ void
+ show_back()
diff --git a/net/spat/files/patch-ab b/net/spat/files/patch-ab
new file mode 100644
index 000000000000..76a888b1770b
--- /dev/null
+++ b/net/spat/files/patch-ab
@@ -0,0 +1,29 @@
+--- spatd/prefs.c 2000/10/31 11:30:17 1.1
++++ spatd/prefs.c 2000/10/31 11:30:43
+@@ -16,7 +16,7 @@
+ {
+ struct ifreq ifi;
+ int sock, iftype = 0;
+- char *bcast_addy, *interface = "eth0";
++ char *bcast_addy, *interface = "ed0";
+
+ sock = socket(AF_INET, SOCK_DGRAM, 0);
+ if (sock < 0)
+@@ -86,7 +86,7 @@
+ printf("Failure to create config. ARG!\n");
+ exit(0);
+ }
+- fprintf(fp, "interface: eth0\n");
++ fprintf(fp, "interface: ed0\n");
+ fprintf(fp, "away: no\n");
+ fclose(fp);
+ printf("Wrote ~/.spat/spatrc\n");
+@@ -173,7 +173,7 @@
+ printf("Failure to create config. ARG!\n");
+ exit(0);
+ }
+- fprintf(fp, "interface: eth0\n");
++ fprintf(fp, "interface: ed0\n");
+ fprintf(fp, "away: no\n");
+ fclose(fp);
+ printf("Wrote ~/.spat/spatrc\n");
diff --git a/net/spat/files/patch-ac b/net/spat/files/patch-ac
new file mode 100644
index 000000000000..0fba19c83f8b
--- /dev/null
+++ b/net/spat/files/patch-ac
@@ -0,0 +1,20 @@
+--- spat/callbacks.c 2000/10/31 11:30:56 1.1
++++ spat/callbacks.c 2000/10/31 11:31:13
+@@ -52,7 +52,7 @@
+ printf("Failure to create config. ARG!\n");
+ exit(0);
+ }
+- fprintf(fp, "spatrc -> interface: eth0\n");
++ fprintf(fp, "spatrc -> interface: ed0\n");
+ fclose(fp);
+ printf("Wrote ~/.spat/spatrc\n");
+ fp = fopen(dir, "r");
+@@ -104,7 +104,7 @@
+ {
+ struct ifreq ifi;
+ int sock, iftype = 0;
+- char *bcast_addy, *interface = "eth0";
++ char *bcast_addy, *interface = "ed0";
+
+ sock = socket(AF_INET, SOCK_DGRAM, 0);
+ if (sock < 0)
diff --git a/net/spat/files/patch-ad b/net/spat/files/patch-ad
new file mode 100644
index 000000000000..35adabd35aa5
--- /dev/null
+++ b/net/spat/files/patch-ad
@@ -0,0 +1,11 @@
+--- spatd/Makefile.in 2000/10/31 11:38:24 1.1
++++ spatd/Makefile.in 2000/10/31 11:39:48
+@@ -124,7 +124,7 @@
+
+
+ DEFS = @DEFS@ -I. -I$(srcdir) -I..
+-CPPFLAGS = @CPPFLAGS@
++CPPFLAGS = @CPPFLAGS@ -DPREFIX=\"@prefix@\"
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ spatd_OBJECTS = main.o support.o interface.o callbacks.o prefs.o
diff --git a/net/spat/files/patch-ae b/net/spat/files/patch-ae
new file mode 100644
index 000000000000..fec60492712e
--- /dev/null
+++ b/net/spat/files/patch-ae
@@ -0,0 +1,11 @@
+--- spatd/callbacks.c 2000/10/31 11:45:02 1.1
++++ spatd/callbacks.c 2000/10/31 11:43:46
+@@ -129,7 +129,7 @@
+ {
+ //exit(0);
+ }
+- strcpy(command, "/usr/local/bin/spat ");
++ strcpy(command, PREFIX "bin/spat ");
+ strcat(command, login);
+
+ strcat(command, " &");
diff --git a/net/spat/files/patch-af b/net/spat/files/patch-af
new file mode 100644
index 000000000000..5ee9ce94425a
--- /dev/null
+++ b/net/spat/files/patch-af
@@ -0,0 +1,11 @@
+--- Makefile.in 2000/10/31 12:18:31 1.1
++++ Makefile.in 2000/10/31 12:21:40
+@@ -95,7 +95,7 @@
+ ORBIT_LIBS = @ORBIT_LIBS@
+ PACKAGE = @PACKAGE@
+ PACKAGE_PIXMAPS_DIR = @PACKAGE_PIXMAPS_DIR@
+-PACKAGE_DOC_DIR = /usr/doc/spat-@VERSION@
++PACKAGE_DOC_DIR = @prefix@/share/doc/spat
+ POFILES = @POFILES@
+ POSUB = @POSUB@
+ PTHREAD_LIB = @PTHREAD_LIB@
diff --git a/net/spat/pkg-comment b/net/spat/pkg-comment
new file mode 100644
index 000000000000..5792afd95b41
--- /dev/null
+++ b/net/spat/pkg-comment
@@ -0,0 +1 @@
+A lightweight Intranet Messaging Application for GNOME desktop
diff --git a/net/spat/pkg-descr b/net/spat/pkg-descr
new file mode 100644
index 000000000000..8bc5a7bb50a4
--- /dev/null
+++ b/net/spat/pkg-descr
@@ -0,0 +1,19 @@
+Spat. The Gnome messaging system
+--------------------------------
+
+Spat is a lightweight, GNOME compliant Intranet Messaging Application designed
+and distributed by Codehost.com, Inc. This Intranet Messaging System was
+developed to easily install and run on a TCP/IP network.
+
+Until now, an easy to configure - easy to use, Messaging system has not existed
+for Unix since write(1).
+
+Easy to use - Easy to configure
+-------------------------------
+
+Spat was designed with the User in mind. Geared for the user friendly GNOME
+Desktop, this messaging system needs little or no configuration whatsoever. Use
+is simple too. Just run the application and select the user you want to send a
+message to. With Spat there is no need to remember IP Addresses.
+
+WWW: http://spat.codehost.com/
diff --git a/net/spat/pkg-plist b/net/spat/pkg-plist
new file mode 100644
index 000000000000..ee8162891d19
--- /dev/null
+++ b/net/spat/pkg-plist
@@ -0,0 +1,14 @@
+bin/spat
+bin/spatd
+etc/CORBA/servers/spatd.gnorba
+share/doc/spat/FAQ
+share/doc/spat/INSTALL
+share/gnome/apps/Applications/spat.desktop
+share/gnome/apps/Applications/spatd.desktop
+share/gnome/pixmaps/spat.png
+share/gnome/pixmaps/spat/about.jpg
+share/gnome/pixmaps/spat/away_with_msg.png
+share/gnome/pixmaps/spat/gnome-intranet.png
+share/gnome/pixmaps/spat/ok.png
+share/gnome/pixmaps/spat/spat.png
+@dirrm share/doc/spat