Import wmNetscapeKiller 0.3.
Submitted by Peter Stromberg <home@wilfried.net>. This dock-app kills (and restarts) netscape when you click on the icon! You can now specify which program to kill and if you want to restart it or not.
This commit is contained in:
parent
46f336864e
commit
cf9a010802
20
misc/wmnetscapekiller/Makefile
Normal file
20
misc/wmnetscapekiller/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/01/11 23:23:17 naddy Exp $
|
||||
|
||||
DISTNAME= wmNetscapeKiller-0.3
|
||||
PKGNAME= ${DISTNAME:L}
|
||||
CATEGORIES= misc x11
|
||||
NEED_VERSION= 1.340
|
||||
HOMEPAGE= http://pblumo.free.fr/wmNetscapeKiller/
|
||||
|
||||
MAINTAINER= Peter Stromberg <home@wilfried.net>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}wmNetscapeKiller-0.3/
|
||||
|
||||
RUN_DEPENDS= skill::sysutils/skill
|
||||
|
||||
.include <bsd.port.mk>
|
3
misc/wmnetscapekiller/files/md5
Normal file
3
misc/wmnetscapekiller/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (wmNetscapeKiller-0.3.tar.gz) = 5d8caeec3212dafbfca467ec8d3eece6
|
||||
RMD160 (wmNetscapeKiller-0.3.tar.gz) = 52e59d5c85f546295b85fd63d9c6e63dbf8f7e80
|
||||
SHA1 (wmNetscapeKiller-0.3.tar.gz) = 664d190d8646b34c46ec4419e344ac00619eef4d
|
21
misc/wmnetscapekiller/patches/patch-Makefile
Normal file
21
misc/wmnetscapekiller/patches/patch-Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/01/11 23:23:17 naddy Exp $
|
||||
--- Makefile.orig Fri Jul 21 20:32:07 2000
|
||||
+++ Makefile Thu Jan 11 19:06:02 2001
|
||||
@@ -1,14 +1,11 @@
|
||||
-CC= gcc
|
||||
-CFLAGS= -Wall
|
||||
+CFLAGS+= -I${X11BASE}/include
|
||||
LDLIBS = -lX11 -lXpm -lXext
|
||||
-LDFLAGS= -L/usr/X/lib -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib/X11
|
||||
+LDFLAGS= -L${X11BASE}/lib
|
||||
|
||||
all: wmNetscapeKiller
|
||||
|
||||
install:
|
||||
- install -D -s -m 111 wmNetscapeKiller /usr/local/bin/wmNetscapeKiller
|
||||
- @echo "-- Install Complete --"
|
||||
- @echo "Warning : before docking wmNetscapeKiller, don't forget to log on the same username as you used for WindowMaker (see README file)"
|
||||
+ ${BSD_INSTALL_PROGRAM} wmNetscapeKiller ${PREFIX}/bin
|
||||
|
||||
clean:
|
||||
rm -f *.o wmNetscapeKiller core
|
31
misc/wmnetscapekiller/patches/patch-wmNetscapeKiller_c
Normal file
31
misc/wmnetscapekiller/patches/patch-wmNetscapeKiller_c
Normal file
@ -0,0 +1,31 @@
|
||||
$OpenBSD: patch-wmNetscapeKiller_c,v 1.1.1.1 2001/01/11 23:23:17 naddy Exp $
|
||||
--- wmNetscapeKiller.c.orig Tue Aug 8 00:24:03 2000
|
||||
+++ wmNetscapeKiller.c Thu Jan 11 18:37:47 2001
|
||||
@@ -64,15 +64,15 @@ void DoExpose() {
|
||||
// Getionnaire evenement bouton souris
|
||||
void DoButtonPress() {
|
||||
int retour ;
|
||||
- char* command;
|
||||
- sprintf(command,"killall -9 %s",prog_victim) ;
|
||||
+ char command[1024];
|
||||
+ snprintf(command,sizeof(command),"skill -9 %s",prog_victim) ;
|
||||
retour = system(command) ;
|
||||
// retour = system("killall -12 netscape") ;
|
||||
if(retour!= -1 && retour != 127 && retour != 256 && restart == TRUE)
|
||||
{
|
||||
nXPM = KILLED_XPM ;
|
||||
DoExpose() ;
|
||||
- sprintf(command,"%s&",prog_victim) ;
|
||||
+ snprintf(command,sizeof(command),"%s&",prog_victim) ;
|
||||
system(command) ;
|
||||
}
|
||||
else
|
||||
@@ -118,7 +118,7 @@ int main(int argc, char *argv[])
|
||||
else
|
||||
{
|
||||
|
||||
- strncpy(prog_victim,argv[1],255) ;
|
||||
+ strlcpy(prog_victim,argv[1],sizeof(prog_victim)) ;
|
||||
if(argc == 3) // il faut etudier le deuxieme aussi
|
||||
{
|
||||
if(!strcmp(argv[2],"restart"))
|
1
misc/wmnetscapekiller/pkg/COMMENT
Normal file
1
misc/wmnetscapekiller/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
dockapp for killing Netscape when it freezes
|
11
misc/wmnetscapekiller/pkg/DESCR
Normal file
11
misc/wmnetscapekiller/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
This dock-app kills (and restarts) netscape when you click
|
||||
on the icon! You can now specify which program to kill and
|
||||
if you want to restart it or not.
|
||||
|
||||
See wmNetscapeKiller --help for command line options.
|
||||
|
||||
It must be launched under the same username of the user of
|
||||
WindowMaker. If you dock it as root and you use Netscape as
|
||||
user your preferences will not be reloaded.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
2
misc/wmnetscapekiller/pkg/PLIST
Normal file
2
misc/wmnetscapekiller/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/01/11 23:23:17 naddy Exp $
|
||||
bin/wmNetscapeKiller
|
Loading…
x
Reference in New Issue
Block a user