diff options
author | hans <hans@pkgsrc.org> | 2011-05-04 16:27:42 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2011-05-04 16:27:42 +0000 |
commit | eb6e13e2f7dc73a164dfff9c4531efccd1680e3d (patch) | |
tree | 0cd8b933e14c8977cfa8b95da5b91977dc4ac27e /textproc | |
parent | 9578761f79d1a7a5cf97673f46400644c5fba987 (diff) | |
download | pkgsrc-eb6e13e2f7dc73a164dfff9c4531efccd1680e3d.tar.gz |
Fix patch breakage when not using links as viewer.
Instead of patching the URL for rfc-index.txt, define it in the Makefile
and use the existing sed command in do-extract.
Bump revision to 6.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/rfcutil/Makefile | 7 | ||||
-rw-r--r-- | textproc/rfcutil/distinfo | 3 | ||||
-rw-r--r-- | textproc/rfcutil/patches/patch-aa | 13 |
3 files changed, 6 insertions, 17 deletions
diff --git a/textproc/rfcutil/Makefile b/textproc/rfcutil/Makefile index c59202f85bb..b19debf8622 100644 --- a/textproc/rfcutil/Makefile +++ b/textproc/rfcutil/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.19 2011/01/19 22:13:04 hubertf Exp $ +# $NetBSD: Makefile,v 1.20 2011/05/04 16:27:42 hans Exp $ # DISTNAME= rfc-3.2 PKGNAME= rfcutil-3.2 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= textproc MASTER_SITES= http://www.dewn.com/rfc/ EXTRACT_SUFX= # @@ -21,6 +21,8 @@ NO_BUILD= YES USE_TOOLS+= perl:run REPLACE_PERL= rfc +RFCINDEXURL= http://www.ietf.org/download/ + INSTALLATION_DIRS= bin .include "options.mk" @@ -30,6 +32,7 @@ do-extract: -e 's,/usr/local,${PREFIX},' \ -e '/VIEWER=/s,w3m lynx,${RFCVIEWER},' \ -e '/viewer/s,-dump,${RFCDUMPOPT},' \ + -e '/viewer/s,http://ftp.isi.edu/in-notes/,${RFCINDEXURL},' \ <${DISTDIR}/${DISTNAME} >${WRKSRC}/rfc do-install: diff --git a/textproc/rfcutil/distinfo b/textproc/rfcutil/distinfo index 43cb81f7bce..7829d3b9d41 100644 --- a/textproc/rfcutil/distinfo +++ b/textproc/rfcutil/distinfo @@ -1,6 +1,5 @@ -$NetBSD: distinfo,v 1.4 2011/01/19 22:13:04 hubertf Exp $ +$NetBSD: distinfo,v 1.5 2011/05/04 16:27:42 hans Exp $ SHA1 (rfc-3.2) = 1dd1b8f90d0e24fcd8447ff563ca6c47931a826c RMD160 (rfc-3.2) = 40c8bfb3baa4bee7060cc69cd908395df19d678b Size (rfc-3.2) = 15308 bytes -SHA1 (patch-aa) = 8d6a593278dd6a27b0824275c86c291119ccd874 diff --git a/textproc/rfcutil/patches/patch-aa b/textproc/rfcutil/patches/patch-aa deleted file mode 100644 index 9af749c8e25..00000000000 --- a/textproc/rfcutil/patches/patch-aa +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-aa,v 1.1 2011/01/19 22:13:04 hubertf Exp $ - ---- rfc.orig 2011-01-19 21:50:02.000000000 +0000 -+++ rfc -@@ -105,7 +105,7 @@ if ($ARGV[0] eq "-i") { - print "original lines \t= $indexlength\t$indexpath\n"; - #system ("$viewer -source http://www.faqs.org/rfc/rfc-index.txt > $indexpath"); - #system ("$viewer -source http://www.dewn.com/rfc/rfc-index.txt > $indexpath"); -- system ("$viewer -source http://ftp.isi.edu/in-notes/rfc-index.txt > $indexpath"); -+ system ("$viewer -source http://www.ietf.org/download/rfc-index.txt | gunzip > $indexpath"); - $indexlength=numlines($indexpath); print "new lines \t= $indexlength\t$indexpath\n"; - exit } - |