mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add humourous message if kenny is killed
PR: 33576 Submitted by: maintainer
This commit is contained in:
parent
681c8fa929
commit
bbf5242155
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52642
@ -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
|
||||
|
42
misc/kenny/files/patch-kenny
Normal file
42
misc/kenny/files/patch-kenny
Normal file
@ -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;
|
||||
+}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user