aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-06-08 10:06:40 +0800
committerkevlo <kevlo@FreeBSD.org>2007-06-08 10:06:40 +0800
commit2ea9e90a558cac1f7fbce71d14de90cc0d1fd424 (patch)
tree0b916119cc42e21bf89bfef06884d967fd341bf4 /net-im
parent0b69fbfb8c144390ca8cd4f7c8df05306bd22034 (diff)
downloadfreebsd-ports-gnome-2ea9e90a558cac1f7fbce71d14de90cc0d1fd424.tar.gz
freebsd-ports-gnome-2ea9e90a558cac1f7fbce71d14de90cc0d1fd424.tar.zst
freebsd-ports-gnome-2ea9e90a558cac1f7fbce71d14de90cc0d1fd424.zip
- 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 <eugen at grosbein dot pp dot ru>
Diffstat (limited to 'net-im')
-rw-r--r--net-im/vicq/Makefile14
-rw-r--r--net-im/vicq/files/p5.8-patch-sigalrm19
2 files changed, 31 insertions, 2 deletions
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 <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.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 <bsd.port.post.mk>
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