Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 10:31:01 -0500 (EST)
From:      Alan Eldridge <ports@geeksrus.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/33576: maintainer-update: misc/kenny now reacts appropriately to being killed 
Message-ID:  <200201051531.g05FV1L96315@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>Number:         33576
>Category:       ports
>Synopsis:       maintainer-update: misc/kenny now reacts appropriately to being killed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 05 07:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sun Dec 2 19:14:12 EST 2001 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386

>Description:

An appropriate message is now emitted if kenny is killed.

>How-To-Repeat:

>Fix:

Index: misc/kenny/Makefile
===================================================================
RCS file: /home/alane/cvsroot/ports/misc/kenny/Makefile,v
retrieving revision 1.1
diff -u -3 -r1.1 Makefile
--- misc/kenny/Makefile	2 Jan 2002 23:22:26 -0000	1.1
+++ misc/kenny/Makefile	5 Jan 2002 15:25:20 -0000
@@ -9,6 +9,7 @@
 
 PORTNAME=	kenny
 PORTVERSION=	1.6
+PORTREVISION=	1
 CATEGORIES=	misc perl5
 MASTER_SITES=	http://www.h.shuttle.de/mitch/stuff/
 DISTNAME=	kenny.pl-${PORTVERSION}
@@ -19,6 +20,7 @@
 
 USE_PERL5=	yes
 NO_BUILD=	yes
+NO_WRKSUBDIR=	yes
 
 MAN1=		kenny.1
 
Index: misc/kenny/files/patch-kenny
===================================================================
RCS file: misc/kenny/files/patch-kenny
diff -N misc/kenny/files/patch-kenny
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ misc/kenny/files/patch-kenny	5 Jan 2002 15:26:58 -0000
@@ -0,0 +1,42 @@
+--- kenny.orig	Sat Jan  5 10:23:55 2002
++++ kenny	Sat Jan  5 10:26:37 2002
+@@ -149,6 +149,7 @@
+ sub translate($);
+ sub addGermanUmlauts($);
+ sub printHelp();
++sub theyKilledKenny();
+ 
+ 
+ 
+@@ -169,6 +170,15 @@
+ 
+ 
+ 
++##### Install signal handlers
++
++$SIG{HUP} = \&theyKilledKenny;
++$SIG{INT} = \&theyKilledKenny;
++$SIG{QUIT} = \&theyKilledKenny;
++$SIG{TERM} = \&theyKilledKenny;
++
++
++
+ ##### Parse commandline arguments
+ 
+ # "-h" switch (print help):
+@@ -224,6 +234,15 @@
+ ##### That's all, folks!
+ 
+ exit 0;
++
++
++##### Signal handler, if we're kill(1)ed
++
++sub theyKilledKenny()
++{
++    print "Oh my God! They killed Kenny! The bastards!\n";
++    exit 0;
++}
+ 
+ 
+ 

>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?200201051531.g05FV1L96315>