From fab47993bc8a03ae0f54db62fbd50e41f1200f94 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Fri, 8 Jun 2007 02:06:40 +0000 Subject: - Add a feature to vicq that updates status and delivers messages asyncronously with input from keyboard when used with perl 5.8. - Update MASTER_SITES - Bump PORTREVISION PR: ports/113458 Submitted by: Eugene Grosbein --- net-im/vicq/Makefile | 14 ++++++++++++-- net-im/vicq/files/p5.8-patch-sigalrm | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 net-im/vicq/files/p5.8-patch-sigalrm (limited to 'net-im/vicq') diff --git a/net-im/vicq/Makefile b/net-im/vicq/Makefile index 0a01da2db7a5..3137b191d01c 100644 --- a/net-im/vicq/Makefile +++ b/net-im/vicq/Makefile @@ -7,8 +7,9 @@ PORTNAME= vicq PORTVERSION= 0.4.2 +PORTREVISION= 1 CATEGORIES= net-im -MASTER_SITES= http://gonzo.kiev.ua/projects/vicq/ +MASTER_SITES= http://gonzo.kiev.ua/projects/vicq.old/ MAINTAINER= kevlo@FreeBSD.org COMMENT= A text-based ICQ implementation @@ -30,4 +31,13 @@ post-install: ${MKDIR} ${PREFIX}/share/examples/vicq ${INSTALL_DATA} ${WRKSRC}/vicqrc.example ${PREFIX}/share/examples/vicq -.include +.include + +.if ${PERL_LEVEL} >= 500800 +SIGNAL_PATCH=p5.8-patch-sigalrm +post-patch: + @${ECHO_MSG} "===> Applying patch ${SIGNAL_PATCH} for ${PKGNAME}" + @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/${SIGNAL_PATCH} +.endif + +.include diff --git a/net-im/vicq/files/p5.8-patch-sigalrm b/net-im/vicq/files/p5.8-patch-sigalrm new file mode 100644 index 000000000000..ac7fd494b3f4 --- /dev/null +++ b/net-im/vicq/files/p5.8-patch-sigalrm @@ -0,0 +1,19 @@ +--- vicq.orig Thu Jun 7 23:15:28 2007 ++++ vicq Thu Jun 7 23:16:41 2007 +@@ -20,6 +20,7 @@ + use Getopt::Std; + use Socket; + use POSIX qw(mktime getcwd); ++use POSIX ':signal_h'; + package main; + use locale; + #use Data::Dumper; +@@ -3347,7 +3348,7 @@ + if(!$err) + { + print "done!\n"; +- $SIG{ALRM} = \&tick_handler; ++ sigaction SIGALRM, new POSIX::SigAction \&tick_handler; + alarm 1; + return 0; + } else -- cgit v1.2.3