diff options
author | is <is@pkgsrc.org> | 2015-08-19 12:49:00 +0000 |
---|---|---|
committer | is <is@pkgsrc.org> | 2015-08-19 12:49:00 +0000 |
commit | ba765313c6aa8861c34394089f39ab92c5f3e3d5 (patch) | |
tree | f42ba12d7237d57c102f6ad18f2e4c3afa033f29 /www/webnew | |
parent | c2f163ea76eef4c32836c4d67889090392933f86 (diff) | |
download | pkgsrc-ba765313c6aa8861c34394089f39ab92c5f3e3d5.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/Makefile | 6 | ||||
-rw-r--r-- | www/webnew/patches/patch-webnew_pl | 13 |
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"; |