Date: Mon, 20 Nov 2000 16:32:34 +0200 (IST) From: Roman Shterenzon <roman@xpert.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/22973: NEW PORT: net/linpopup Message-ID: <200011201432.eAKEWYi17894@trinity.harmonic.co.il>
next in thread | raw e-mail | index | archive | help
>Number: 22973 >Category: ports >Synopsis: NEW PORT: net/linpopup - port of windows' winpopup >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 20 06:40:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Roman Shterenzon >Release: FreeBSD 4.1.1-STABLE i386 >Organization: >Environment: >Description: 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/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # linpopup # linpopup/distinfo # linpopup/files # linpopup/files/patch-aa # linpopup/files/patch-ab # linpopup/files/patch-ac # linpopup/pkg-descr # linpopup/pkg-comment # linpopup/Makefile # linpopup/pkg-plist # linpopup/pkg-message # linpopup/pkg-install # echo c - linpopup mkdir -p linpopup > /dev/null 2>&1 echo x - linpopup/distinfo sed 's/^X//' >linpopup/distinfo << 'END-of-linpopup/distinfo' XMD5 (LinPopUp-1.2.0.src.tar.gz) = 26503ac44971e334cbbb0a79dd796d93 END-of-linpopup/distinfo echo c - linpopup/files mkdir -p linpopup/files > /dev/null 2>&1 echo x - linpopup/files/patch-aa sed 's/^X//' >linpopup/files/patch-aa << 'END-of-linpopup/files/patch-aa' X--- Makefile.orig Tue Mar 14 04:45:05 2000 X+++ Makefile Mon Nov 20 15:22:53 2000 X@@ -1,20 +1,21 @@ X SHELL=/bin/sh X-CC = gcc X-CFLAGS = -Wall -O2 -fno-strength-reduce #-g -pedantic X-GTK_CFLAGS = `gtk-config --cflags` X-GTK_LIBS = `gtk-config --libs` X+CC ?= gcc X+CFLAGS ?= -Wall -O2 -fno-strength-reduce #-g -pedantic X+GTK_CONFIG ?= gtk-config X+GTK_CFLAGS = `${GTK_CONFIG} --cflags` X+GTK_LIBS = `${GTK_CONFIG} --libs` X LFLAGS = $(GTK_LIBS) -lXmu -lXt -lSM -lICE X PROGNAME-STATIC = LinPopUp-static X PROGNAME = LinPopUp X PROGNAME_LNK = linpopup X VERSION = 1.2.0 X VERSION_DATE = 2000 X-DESTDIR = /usr/local X-INSTALL_BINPATH = $(DESTDIR)/bin X-INSTALL_MANPATH = $(DESTDIR)/man X-DOC_DIR = $(DESTDIR)/doc/$(PROGNAME)-$(VERSION) X-SHARE_DIR = $(DESTDIR)/share/$(PROGNAME) X-DATA_DIR = /var/lib/linpopup X+PREFIX ?= /usr/local X+INSTALL_BINPATH = $(PREFIX)/bin X+INSTALL_MANPATH = $(PREFIX)/man X+DOC_DIR = $(PREFIX)/doc/$(PROGNAME) X+SHARE_DIR = $(PREFIX)/share/$(PROGNAME) X+DATA_DIR ?= /var/db/linpopup X DATA_FILE = $(DATA_DIR)/messages.dat X X RPM_RELEASE = 1 X@@ -22,9 +23,9 @@ X RPM_ICONNAME = linpopup.gif X X X-$(PROGNAME): version.o dialog.o main.o text.o menu.o toolbar.o io.o send.o recept.o\ X- custom.o string.o GTKmisc.o docs.o netscape_remote.o execute.o X- $(CC) $(CFLAGS) -v $^ -o $(PROGNAME) $(GTK_CFLAGS) $(LFLAGS) X+$(PROGNAME): version.o dialog.o main.o text.o menu.o toolbar.o io.o send.o \ X+ recept.o custom.o string.o GTKmisc.o docs.o netscape_remote.o execute.o X+ $(CC) $(CFLAGS) $? -o $(PROGNAME) $(GTK_CFLAGS) $(LFLAGS) X X X install : X@@ -97,10 +98,10 @@ X > ../extra/$(PROGNAME).1.in; \ X fi; X @sed -e s,THIS_DATA_FILE,$(DATA_FILE), \ X- -e s,THIS_DESTDIR,$(DESTDIR), \ X+ -e s,THIS_DESTDIR,$(PREFIX), \ X -e s,THIS_VERSION,$(VERSION), \ X ../extra/$(PROGNAME).1.in > ../$(PROGNAME).1 X- @sed -e s,THIS_DESTDIR,$(DESTDIR), ../extra/install.in > ../INSTALL X+ @sed -e s,THIS_DESTDIR,$(PREFIX), ../extra/install.in > ../INSTALL X @nroff -mandoc -Tlatin1 ../$(PROGNAME).1 | col -bx > ../MANUAL X X X@@ -115,7 +116,7 @@ X @echo "#define COMPILE_TIME \"`date +%T`\"" >> version.h X @echo "#define COMPILE_BY \"`whoami`\"" >> version.h X @echo "#define COMPILE_HOST \"`hostname`\"" >> version.h X- @echo "#define GTK_VERSION \"GTK+ `gtk-config --version`\"" >> version.h X+ @echo "#define GTK_VERSION \"GTK+ `$GTK_CONFIG --version`\"" >> version.h X @echo "#define CC_VERSION \"`$(CC) -v 2>&1 | tail -1`\"">>version.h X @echo "#define CODE_LINES `cat *.c protos.h | grep -ch -e \"[[:alpha:]|[:punct:]]\"`">>version.h X END-of-linpopup/files/patch-aa echo x - linpopup/files/patch-ab sed 's/^X//' >linpopup/files/patch-ab << 'END-of-linpopup/files/patch-ab' X--- send.c.orig Mon Nov 20 16:07:54 2000 X+++ send.c Mon Nov 20 16:18:43 2000 X@@ -161,7 +161,7 @@ X gchar message_text[2048]; X guint message_length; X char IS_TRUNCATED = FALSE; X- char *temp_filename; X+ static char temp_filename[]="/tmp/LinPopUpXXXXXX"; X int file_handle_temp; X gchar new_header[256]; X X@@ -201,8 +201,7 @@ X X X /* -- write message text to a tempory file -- */ X- temp_filename = tmpnam (NULL); X- file_handle_temp = open (temp_filename, O_RDWR | O_CREAT | O_TRUNC, DATA_PERM); X+ if ( (file_handle_temp = mkstemp(temp_filename)) == -1 ) return; X write (file_handle_temp, message_text, strlen (message_text)); X close (file_handle_temp); X END-of-linpopup/files/patch-ab echo x - linpopup/files/patch-ac sed 's/^X//' >linpopup/files/patch-ac << 'END-of-linpopup/files/patch-ac' X--- recept.c.orig Mon Nov 20 16:20:24 2000 X+++ recept.c Mon Nov 20 16:22:04 2000 X@@ -359,7 +359,7 @@ X delete_showed_message (void) X { X struct linpopup_message this_message; X- char *temp_filename; X+ static char temp_filename[]="/tmp/LinPopUpXXXXXX"; X int file_handle_temp, file_handle_data; X int f; X X@@ -370,8 +370,7 @@ X return; X } X X- temp_filename = tmpnam (NULL); X- file_handle_temp = open (temp_filename, O_RDWR | O_CREAT, DATA_PERM); X+ if ( (file_handle_temp = mkstemp(temp_filename)) == -1 ) return; X file_handle_data = open (DATA_FILE, O_RDONLY, DATA_PERM); X /* lock it for reading .. */ X (void) lock_reg (file_handle_data, F_SETLKW, F_RDLCK, 0, SEEK_SET, 0); END-of-linpopup/files/patch-ac echo x - linpopup/pkg-descr sed 's/^X//' >linpopup/pkg-descr << 'END-of-linpopup/pkg-descr' XLinPopUp is a Xwindow port of Winpopup, Xrunning over Samba. It permits to communicate with a Xwindows computer that run Winpopup, sending or receiving Xmessage. (It also provides an alternative way Xto communicate between Linux computers that run Samba). XNote that LinPopUp is not only a port, as it includes Xseveral enhanced features. X XWWW: http://www.littleigloo.org/ X XRoman Shterenzon <roman@xpert.com> END-of-linpopup/pkg-descr echo x - linpopup/pkg-comment sed 's/^X//' >linpopup/pkg-comment << 'END-of-linpopup/pkg-comment' XX-Windows port of WinPopup END-of-linpopup/pkg-comment echo x - linpopup/Makefile sed 's/^X//' >linpopup/Makefile << 'END-of-linpopup/Makefile' X# New ports collection makefile for: linpopup X# Date created: 20 Nov 2000 X# Whom: Roman Shterenzon <roman@xpert.com> X# X# $FreeBSD$ X# X XPORTNAME= linpopup XPORTVERSION= 1.2.0 XCATEGORIES= net XMASTER_SITES= ftp://littleigloo.org/pub/ XDISTNAME= LinPopUp-${PORTVERSION}.src X XMAINTAINER= roman@xpert.com X XRUN_DEPENDS= ${LOCALBASE}/bin/smbclient:${PORTSDIR}/net/samba X XWRKSRC= ${WRKDIR}/LinPopUp-${PORTVERSION}/src XALL_TARGET= XMAN1= linpopup.1 LinPopUp.1 X XUSE_GTK= yes XUSE_X_PREFIX= yes X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-linpopup/Makefile echo x - linpopup/pkg-plist sed 's/^X//' >linpopup/pkg-plist << 'END-of-linpopup/pkg-plist' Xbin/linpopup Xbin/LinPopUp Xdoc/LinPopUp/AUTHORS Xdoc/LinPopUp/BUGS Xdoc/LinPopUp/COPYING Xdoc/LinPopUp/ChangeLog Xdoc/LinPopUp/INSTALL Xdoc/LinPopUp/MANUAL Xdoc/LinPopUp/NEWS Xdoc/LinPopUp/README Xdoc/LinPopUp/THANKS Xdoc/LinPopUp/TODO Xshare/LinPopUp/gtkrc Xshare/LinPopUp/pixmaps/little_igloo.xpm X@dirrm doc/LinPopUp X@dirrm share/LinPopUp/pixmaps X@dirrm share/LinPopUp X@unexec rm -rf /var/db/linpopup END-of-linpopup/pkg-plist echo x - linpopup/pkg-message sed 's/^X//' >linpopup/pkg-message << 'END-of-linpopup/pkg-message' X XPlease add the following line to your smb.conf file: Xmessage command = /usr/X11R6/bin/LinPopUp "%f" "%m" %s; rm %s X END-of-linpopup/pkg-message echo x - linpopup/pkg-install sed 's/^X//' >linpopup/pkg-install << 'END-of-linpopup/pkg-install' X#!/bin/sh XDBDIR=/var/db/linpopup X Xmkdir -p $DBDIR Xtouch $DBDIR/messages.dat Xchmod 666 $DBDIR/messages.dat END-of-linpopup/pkg-install exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011201432.eAKEWYi17894>