mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
New Port: net/linpopup
X-Windows port of WinPopup PR: 22973 Submitted by: Roman Shterenzon <roman@xpert.com>
This commit is contained in:
parent
95f68a9247
commit
8d61bf6afb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35967
28
net-im/linpopup/Makefile
Normal file
28
net-im/linpopup/Makefile
Normal file
@ -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>
|
1
net-im/linpopup/distinfo
Normal file
1
net-im/linpopup/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (LinPopUp-1.2.0.src.tar.gz) = 26503ac44971e334cbbb0a79dd796d93
|
69
net-im/linpopup/files/patch-aa
Normal file
69
net-im/linpopup/files/patch-aa
Normal file
@ -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
|
||||
|
21
net-im/linpopup/files/patch-ab
Normal file
21
net-im/linpopup/files/patch-ab
Normal file
@ -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);
|
||||
|
21
net-im/linpopup/files/patch-ac
Normal file
21
net-im/linpopup/files/patch-ac
Normal file
@ -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);
|
1
net-im/linpopup/pkg-comment
Normal file
1
net-im/linpopup/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
X-Windows port of WinPopup
|
11
net-im/linpopup/pkg-descr
Normal file
11
net-im/linpopup/pkg-descr
Normal file
@ -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>
|
6
net-im/linpopup/pkg-install
Normal file
6
net-im/linpopup/pkg-install
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
DBDIR=/var/db/linpopup
|
||||
|
||||
mkdir -p $DBDIR
|
||||
touch $DBDIR/messages.dat
|
||||
chmod 666 $DBDIR/messages.dat
|
4
net-im/linpopup/pkg-message
Normal file
4
net-im/linpopup/pkg-message
Normal file
@ -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
|
||||
|
18
net-im/linpopup/pkg-plist
Normal file
18
net-im/linpopup/pkg-plist
Normal file
@ -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
|
@ -134,6 +134,7 @@
|
||||
SUBDIR += libunp
|
||||
SUBDIR += libunpipc
|
||||
SUBDIR += licq
|
||||
SUBDIR += linpopup
|
||||
SUBDIR += macipgw
|
||||
SUBDIR += mars_nwe
|
||||
SUBDIR += merlinmon
|
||||
|
28
net/linpopup/Makefile
Normal file
28
net/linpopup/Makefile
Normal file
@ -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>
|
1
net/linpopup/distinfo
Normal file
1
net/linpopup/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (LinPopUp-1.2.0.src.tar.gz) = 26503ac44971e334cbbb0a79dd796d93
|
69
net/linpopup/files/patch-aa
Normal file
69
net/linpopup/files/patch-aa
Normal file
@ -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
|
||||
|
21
net/linpopup/files/patch-ab
Normal file
21
net/linpopup/files/patch-ab
Normal file
@ -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);
|
||||
|
21
net/linpopup/files/patch-ac
Normal file
21
net/linpopup/files/patch-ac
Normal file
@ -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);
|
1
net/linpopup/pkg-comment
Normal file
1
net/linpopup/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
X-Windows port of WinPopup
|
11
net/linpopup/pkg-descr
Normal file
11
net/linpopup/pkg-descr
Normal file
@ -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>
|
6
net/linpopup/pkg-install
Normal file
6
net/linpopup/pkg-install
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
DBDIR=/var/db/linpopup
|
||||
|
||||
mkdir -p $DBDIR
|
||||
touch $DBDIR/messages.dat
|
||||
chmod 666 $DBDIR/messages.dat
|
4
net/linpopup/pkg-message
Normal file
4
net/linpopup/pkg-message
Normal file
@ -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
|
||||
|
18
net/linpopup/pkg-plist
Normal file
18
net/linpopup/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user