From 4bb8afb16acc8a06c3b2f740e1d3fa3385575d8c Mon Sep 17 00:00:00 2001 From: jeh Date: Thu, 14 Dec 2000 03:40:31 +0000 Subject: New Port: net/linpopup X-Windows port of WinPopup PR: 22973 Submitted by: Roman Shterenzon --- net-im/linpopup/Makefile | 28 +++++++++++++++++ net-im/linpopup/distinfo | 1 + net-im/linpopup/files/patch-aa | 69 ++++++++++++++++++++++++++++++++++++++++++ net-im/linpopup/files/patch-ab | 21 +++++++++++++ net-im/linpopup/files/patch-ac | 21 +++++++++++++ net-im/linpopup/pkg-comment | 1 + net-im/linpopup/pkg-descr | 11 +++++++ net-im/linpopup/pkg-install | 6 ++++ net-im/linpopup/pkg-message | 4 +++ net-im/linpopup/pkg-plist | 18 +++++++++++ 10 files changed, 180 insertions(+) create mode 100644 net-im/linpopup/Makefile create mode 100644 net-im/linpopup/distinfo create mode 100644 net-im/linpopup/files/patch-aa create mode 100644 net-im/linpopup/files/patch-ab create mode 100644 net-im/linpopup/files/patch-ac create mode 100644 net-im/linpopup/pkg-comment create mode 100644 net-im/linpopup/pkg-descr create mode 100644 net-im/linpopup/pkg-install create mode 100644 net-im/linpopup/pkg-message create mode 100644 net-im/linpopup/pkg-plist (limited to 'net-im/linpopup') 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 +# +# $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 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 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 -- cgit