aboutsummaryrefslogtreecommitdiff
path: root/net-im/linpopup
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-12-14 03:40:31 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-12-14 03:40:31 +0000
commit8d61bf6afb9a90b1693cdb44241b4e8e134ce6f3 (patch)
treec5bce359cacc7f8f6a91cfa78ed0e5eaa353c370 /net-im/linpopup
parent95f68a924771e569695f6c8c6d1b5b493e550a10 (diff)
downloadports-8d61bf6afb9a90b1693cdb44241b4e8e134ce6f3.tar.gz
ports-8d61bf6afb9a90b1693cdb44241b4e8e134ce6f3.zip
Notes
Diffstat (limited to 'net-im/linpopup')
-rw-r--r--net-im/linpopup/Makefile28
-rw-r--r--net-im/linpopup/distinfo1
-rw-r--r--net-im/linpopup/files/patch-aa69
-rw-r--r--net-im/linpopup/files/patch-ab21
-rw-r--r--net-im/linpopup/files/patch-ac21
-rw-r--r--net-im/linpopup/pkg-comment1
-rw-r--r--net-im/linpopup/pkg-descr11
-rw-r--r--net-im/linpopup/pkg-install6
-rw-r--r--net-im/linpopup/pkg-message4
-rw-r--r--net-im/linpopup/pkg-plist18
10 files changed, 180 insertions, 0 deletions
diff --git a/net-im/linpopup/Makefile b/net-im/linpopup/Makefile
new file mode 100644
index 000000000000..26b212efcfd4
--- /dev/null
+++ b/net-im/linpopup/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: linpopup
+# Date created: 20 Nov 2000
+# Whom: Roman Shterenzon <roman@xpert.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= linpopup
+PORTVERSION= 1.2.0
+CATEGORIES= net
+MASTER_SITES= ftp://littleigloo.org/pub/linpopup/
+DISTNAME= LinPopUp-${PORTVERSION}.src
+
+MAINTAINER= roman@xpert.com
+
+RUN_DEPENDS= ${LOCALBASE}/bin/smbclient:${PORTSDIR}/net/samba
+
+WRKSRC= ${WRKDIR}/LinPopUp-${PORTVERSION}/src
+ALL_TARGET=
+MAN1= linpopup.1 LinPopUp.1
+
+USE_GTK= yes
+USE_X_PREFIX= yes
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/net-im/linpopup/distinfo b/net-im/linpopup/distinfo
new file mode 100644
index 000000000000..39dfa39c1ea5
--- /dev/null
+++ b/net-im/linpopup/distinfo
@@ -0,0 +1 @@
+MD5 (LinPopUp-1.2.0.src.tar.gz) = 26503ac44971e334cbbb0a79dd796d93
diff --git a/net-im/linpopup/files/patch-aa b/net-im/linpopup/files/patch-aa
new file mode 100644
index 000000000000..ca7726647aa2
--- /dev/null
+++ b/net-im/linpopup/files/patch-aa
@@ -0,0 +1,69 @@
+--- Makefile.orig Tue Mar 14 04:45:05 2000
++++ Makefile Mon Nov 20 15:22:53 2000
+@@ -1,20 +1,21 @@
+ SHELL=/bin/sh
+-CC = gcc
+-CFLAGS = -Wall -O2 -fno-strength-reduce #-g -pedantic
+-GTK_CFLAGS = `gtk-config --cflags`
+-GTK_LIBS = `gtk-config --libs`
++CC ?= gcc
++CFLAGS ?= -Wall -O2 -fno-strength-reduce #-g -pedantic
++GTK_CONFIG ?= gtk-config
++GTK_CFLAGS = `${GTK_CONFIG} --cflags`
++GTK_LIBS = `${GTK_CONFIG} --libs`
+ LFLAGS = $(GTK_LIBS) -lXmu -lXt -lSM -lICE
+ PROGNAME-STATIC = LinPopUp-static
+ PROGNAME = LinPopUp
+ PROGNAME_LNK = linpopup
+ VERSION = 1.2.0
+ VERSION_DATE = 2000
+-DESTDIR = /usr/local
+-INSTALL_BINPATH = $(DESTDIR)/bin
+-INSTALL_MANPATH = $(DESTDIR)/man
+-DOC_DIR = $(DESTDIR)/doc/$(PROGNAME)-$(VERSION)
+-SHARE_DIR = $(DESTDIR)/share/$(PROGNAME)
+-DATA_DIR = /var/lib/linpopup
++PREFIX ?= /usr/local
++INSTALL_BINPATH = $(PREFIX)/bin
++INSTALL_MANPATH = $(PREFIX)/man
++DOC_DIR = $(PREFIX)/doc/$(PROGNAME)
++SHARE_DIR = $(PREFIX)/share/$(PROGNAME)
++DATA_DIR ?= /var/db/linpopup
+ DATA_FILE = $(DATA_DIR)/messages.dat
+
+ RPM_RELEASE = 1
+@@ -22,9 +23,9 @@
+ RPM_ICONNAME = linpopup.gif
+
+
+-$(PROGNAME): version.o dialog.o main.o text.o menu.o toolbar.o io.o send.o recept.o\
+- custom.o string.o GTKmisc.o docs.o netscape_remote.o execute.o
+- $(CC) $(CFLAGS) -v $^ -o $(PROGNAME) $(GTK_CFLAGS) $(LFLAGS)
++$(PROGNAME): version.o dialog.o main.o text.o menu.o toolbar.o io.o send.o \
++ recept.o custom.o string.o GTKmisc.o docs.o netscape_remote.o execute.o
++ $(CC) $(CFLAGS) $? -o $(PROGNAME) $(GTK_CFLAGS) $(LFLAGS)
+
+
+ install :
+@@ -97,10 +98,10 @@
+ > ../extra/$(PROGNAME).1.in; \
+ fi;
+ @sed -e s,THIS_DATA_FILE,$(DATA_FILE), \
+- -e s,THIS_DESTDIR,$(DESTDIR), \
++ -e s,THIS_DESTDIR,$(PREFIX), \
+ -e s,THIS_VERSION,$(VERSION), \
+ ../extra/$(PROGNAME).1.in > ../$(PROGNAME).1
+- @sed -e s,THIS_DESTDIR,$(DESTDIR), ../extra/install.in > ../INSTALL
++ @sed -e s,THIS_DESTDIR,$(PREFIX), ../extra/install.in > ../INSTALL
+ @nroff -mandoc -Tlatin1 ../$(PROGNAME).1 | col -bx > ../MANUAL
+
+
+@@ -115,7 +116,7 @@
+ @echo "#define COMPILE_TIME \"`date +%T`\"" >> version.h
+ @echo "#define COMPILE_BY \"`whoami`\"" >> version.h
+ @echo "#define COMPILE_HOST \"`hostname`\"" >> version.h
+- @echo "#define GTK_VERSION \"GTK+ `gtk-config --version`\"" >> version.h
++ @echo "#define GTK_VERSION \"GTK+ `$GTK_CONFIG --version`\"" >> version.h
+ @echo "#define CC_VERSION \"`$(CC) -v 2>&1 | tail -1`\"">>version.h
+ @echo "#define CODE_LINES `cat *.c protos.h | grep -ch -e \"[[:alpha:]|[:punct:]]\"`">>version.h
+
diff --git a/net-im/linpopup/files/patch-ab b/net-im/linpopup/files/patch-ab
new file mode 100644
index 000000000000..02d7dcd5c34e
--- /dev/null
+++ b/net-im/linpopup/files/patch-ab
@@ -0,0 +1,21 @@
+--- send.c.orig Mon Nov 20 16:07:54 2000
++++ send.c Mon Nov 20 16:18:43 2000
+@@ -161,7 +161,7 @@
+ gchar message_text[2048];
+ guint message_length;
+ char IS_TRUNCATED = FALSE;
+- char *temp_filename;
++ static char temp_filename[]="/tmp/LinPopUpXXXXXX";
+ int file_handle_temp;
+ gchar new_header[256];
+
+@@ -201,8 +201,7 @@
+
+
+ /* -- write message text to a tempory file -- */
+- temp_filename = tmpnam (NULL);
+- file_handle_temp = open (temp_filename, O_RDWR | O_CREAT | O_TRUNC, DATA_PERM);
++ if ( (file_handle_temp = mkstemp(temp_filename)) == -1 ) return;
+ write (file_handle_temp, message_text, strlen (message_text));
+ close (file_handle_temp);
+
diff --git a/net-im/linpopup/files/patch-ac b/net-im/linpopup/files/patch-ac
new file mode 100644
index 000000000000..a784074a2126
--- /dev/null
+++ b/net-im/linpopup/files/patch-ac
@@ -0,0 +1,21 @@
+--- recept.c.orig Mon Nov 20 16:20:24 2000
++++ recept.c Mon Nov 20 16:22:04 2000
+@@ -359,7 +359,7 @@
+ delete_showed_message (void)
+ {
+ struct linpopup_message this_message;
+- char *temp_filename;
++ static char temp_filename[]="/tmp/LinPopUpXXXXXX";
+ int file_handle_temp, file_handle_data;
+ int f;
+
+@@ -370,8 +370,7 @@
+ return;
+ }
+
+- temp_filename = tmpnam (NULL);
+- file_handle_temp = open (temp_filename, O_RDWR | O_CREAT, DATA_PERM);
++ if ( (file_handle_temp = mkstemp(temp_filename)) == -1 ) return;
+ file_handle_data = open (DATA_FILE, O_RDONLY, DATA_PERM);
+ /* lock it for reading .. */
+ (void) lock_reg (file_handle_data, F_SETLKW, F_RDLCK, 0, SEEK_SET, 0);
diff --git a/net-im/linpopup/pkg-comment b/net-im/linpopup/pkg-comment
new file mode 100644
index 000000000000..16e2a7066e4d
--- /dev/null
+++ b/net-im/linpopup/pkg-comment
@@ -0,0 +1 @@
+X-Windows port of WinPopup
diff --git a/net-im/linpopup/pkg-descr b/net-im/linpopup/pkg-descr
new file mode 100644
index 000000000000..26aa10eb6851
--- /dev/null
+++ b/net-im/linpopup/pkg-descr
@@ -0,0 +1,11 @@
+LinPopUp is a Xwindow port of Winpopup,
+running over Samba. It permits to communicate with a
+windows computer that run Winpopup, sending or receiving
+message. (It also provides an alternative way
+to communicate between Linux computers that run Samba).
+Note that LinPopUp is not only a port, as it includes
+several enhanced features.
+
+WWW: http://www.littleigloo.org/
+
+Roman Shterenzon <roman@xpert.com>
diff --git a/net-im/linpopup/pkg-install b/net-im/linpopup/pkg-install
new file mode 100644
index 000000000000..5e469c50561d
--- /dev/null
+++ b/net-im/linpopup/pkg-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+DBDIR=/var/db/linpopup
+
+mkdir -p $DBDIR
+touch $DBDIR/messages.dat
+chmod 666 $DBDIR/messages.dat
diff --git a/net-im/linpopup/pkg-message b/net-im/linpopup/pkg-message
new file mode 100644
index 000000000000..cbd4020f763d
--- /dev/null
+++ b/net-im/linpopup/pkg-message
@@ -0,0 +1,4 @@
+
+Please add the following line to your smb.conf file:
+message command = /usr/X11R6/bin/LinPopUp "%f" "%m" %s; rm %s
+
diff --git a/net-im/linpopup/pkg-plist b/net-im/linpopup/pkg-plist
new file mode 100644
index 000000000000..7614a2e8e913
--- /dev/null
+++ b/net-im/linpopup/pkg-plist
@@ -0,0 +1,18 @@
+bin/linpopup
+bin/LinPopUp
+doc/LinPopUp/AUTHORS
+doc/LinPopUp/BUGS
+doc/LinPopUp/COPYING
+doc/LinPopUp/ChangeLog
+doc/LinPopUp/INSTALL
+doc/LinPopUp/MANUAL
+doc/LinPopUp/NEWS
+doc/LinPopUp/README
+doc/LinPopUp/THANKS
+doc/LinPopUp/TODO
+share/LinPopUp/gtkrc
+share/LinPopUp/pixmaps/little_igloo.xpm
+@dirrm doc/LinPopUp
+@dirrm share/LinPopUp/pixmaps
+@dirrm share/LinPopUp
+@unexec rm -rf /var/db/linpopup