diff options
author | pat <pat@FreeBSD.org> | 2002-01-06 12:52:03 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-01-06 12:52:03 +0800 |
commit | ff22a16cb1d07194212cfd5b29aec34ba49a56b0 (patch) | |
tree | 4acce776e71839ff6e4bbc0cc2b51112cf874e46 | |
parent | 16e66cb7e3f09e8e3090219bc58a89df09bbb9d3 (diff) | |
download | freebsd-ports-gnome-ff22a16cb1d07194212cfd5b29aec34ba49a56b0.tar.gz freebsd-ports-gnome-ff22a16cb1d07194212cfd5b29aec34ba49a56b0.tar.zst freebsd-ports-gnome-ff22a16cb1d07194212cfd5b29aec34ba49a56b0.zip |
Add humourous message if kenny is killed
PR: 33576
Submitted by: maintainer
-rw-r--r-- | misc/kenny/Makefile | 5 | ||||
-rw-r--r-- | misc/kenny/files/patch-kenny | 42 |
2 files changed, 44 insertions, 3 deletions
diff --git a/misc/kenny/Makefile b/misc/kenny/Makefile index 4b5d87ac59c4..319948f9d6d2 100644 --- a/misc/kenny/Makefile +++ b/misc/kenny/Makefile @@ -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 @@ MAINTAINER= ports@geeksrus.net USE_PERL5= yes NO_BUILD= yes +NO_WRKSUBDIR= yes MAN1= kenny.1 @@ -46,6 +48,3 @@ do-install: @${INSTALL_MAN} ${WRKDIR}/${manpage} ${MANPREFIX}/man/man1/${manpage} .include <bsd.port.mk> - -# -#EOF diff --git a/misc/kenny/files/patch-kenny b/misc/kenny/files/patch-kenny new file mode 100644 index 000000000000..9e901f819cb7 --- /dev/null +++ b/misc/kenny/files/patch-kenny @@ -0,0 +1,42 @@ +--- kenny.orig Sat Jan 5 23:45:34 2002 ++++ kenny Sat Jan 5 23:45:34 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! You bastards!\n"; ++ exit 0; ++} + + + |