summaryrefslogtreecommitdiff
path: root/www/webnew
diff options
context:
space:
mode:
authoris <is>2015-08-19 12:49:00 +0000
committeris <is>2015-08-19 12:49:00 +0000
commitc8abd81aeb043db2c5ac3de7ee1a34cd6a67aac3 (patch)
treef42ba12d7237d57c102f6ad18f2e4c3afa033f29 /www/webnew
parent84cd74187a630718377eab6811429aece4def0e6 (diff)
downloadpkgsrc-c8abd81aeb043db2c5ac3de7ee1a34cd6a67aac3.tar.gz
Fix two issues:
- with modern perl, 'do getopts' doesnt work any longer. - a dependency was missing.
Diffstat (limited to 'www/webnew')
-rw-r--r--www/webnew/Makefile6
-rw-r--r--www/webnew/patches/patch-webnew_pl13
2 files changed, 17 insertions, 2 deletions
diff --git a/www/webnew/Makefile b/www/webnew/Makefile
index 207244da269..c6babdf4f47 100644
--- a/www/webnew/Makefile
+++ b/www/webnew/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2015/06/12 10:52:16 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2015/08/19 12:49:00 is Exp $
#
DISTNAME= webnew-1.3
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= www
MASTER_SITES= http://oss.gw.com/people/kim/
@@ -17,6 +17,8 @@ BUILD_TARGET= all DEST=${PREFIX} PERL=${PERL5}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+DEPENDS+= p5-ParallelUserAgent:../../www/p5-ParallelUserAgent
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/webnew ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/webnew.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
diff --git a/www/webnew/patches/patch-webnew_pl b/www/webnew/patches/patch-webnew_pl
new file mode 100644
index 00000000000..63b1d435e42
--- /dev/null
+++ b/www/webnew/patches/patch-webnew_pl
@@ -0,0 +1,13 @@
+$NetBSD: patch-webnew_pl,v 1.1 2015/08/19 12:49:00 is Exp $
+
+--- webnew.pl.orig 2001-05-27 22:08:01.000000000 +0000
++++ webnew.pl
+@@ -66,7 +66,7 @@ $base = 'http://localhost/';
+ $opt_c = "text";
+ $opt_t = "What's new";
+
+-do getopts('A:PRVac:de:inrt:vx');
++getopts('A:PRVac:de:inrt:vx');
+
+ if ($opt_V) {
+ print "webnew @WEBNEWVER@ (@WEBNEWDATE@)\n";