diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2007-06-08 02:06:40 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2007-06-08 02:06:40 +0000 |
commit | fab47993bc8a03ae0f54db62fbd50e41f1200f94 (patch) | |
tree | a10cc7a4b144e89f1a54be17d845b839f9a0c329 | |
parent | 2908675022dab456c1c5e74106e25837f40a6f32 (diff) | |
download | ports-fab47993bc8a03ae0f54db62fbd50e41f1200f94.tar.gz ports-fab47993bc8a03ae0f54db62fbd50e41f1200f94.zip |
Notes
-rw-r--r-- | net-im/vicq/Makefile | 14 | ||||
-rw-r--r-- | net-im/vicq/files/p5.8-patch-sigalrm | 19 |
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 |