summaryrefslogtreecommitdiff
path: root/app-text/rfcutil
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/rfcutil
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/rfcutil')
-rw-r--r--app-text/rfcutil/Manifest7
-rw-r--r--app-text/rfcutil/files/rfc-3.2.3-index.patch17
-rw-r--r--app-text/rfcutil/files/rfc-3.2.3-paths.patch22
-rw-r--r--app-text/rfcutil/metadata.xml5
-rw-r--r--app-text/rfcutil/rfcutil-3.2.3-r2.ebuild45
5 files changed, 96 insertions, 0 deletions
diff --git a/app-text/rfcutil/Manifest b/app-text/rfcutil/Manifest
new file mode 100644
index 000000000000..faa52749b7a0
--- /dev/null
+++ b/app-text/rfcutil/Manifest
@@ -0,0 +1,7 @@
+AUX rfc-3.2.3-index.patch 998 SHA256 7ccf5a4ca44bf97fbddaef08f1a17c54fd482fff2a6ea65ec2d738fb1edf370a SHA512 cbf0dd87e6879e2510da0cbb43a62ac1e772afda178d8c9d6a8817c93b8edfa2dda98bda0b57c6bd3abdc06e558b8656ef9dd7467cd4efdba391a01a1f47180a WHIRLPOOL 39f7d578970958e0b119d052154243fa8e08a25eb86e4764dcd155200a0a863e67e4b1bff1d8c9ee7d7e605d707a9e4cdd789214fff4393de2a2ca9e091764c8
+AUX rfc-3.2.3-paths.patch 839 SHA256 8058e668a8d9580b816b40f28c7efaf9d69bbd08f048afe381bf3f1adc606462 SHA512 be0897633ed1a56ccd5f44b018af030a9eeb6c02cd792dfe5cc0f3280f9a9319f5c48a2f71a6928b64c6ec7360c3f7c18ec74d9cea4039cfd68e35147eea1d79 WHIRLPOOL 9d2278230b873271ab8fce49ac23b39fb440c536bac5fbcacf290334ffc8ca37dd863c6da288ad063eca8823fa2f6ac56f9713feaf3cd1a3a2ac12ce614dbc5b
+DIST rfc-3.2.3.tar.gz 10469 SHA256 894ca3d84bbe354748a4808e60f3d35879637b0fb5a6f9e47a1ece3314231950 SHA512 b16ff2ee0c7a1213369dd4d5d1033c6daf95f283b170ffc46c02b65cd125d4bf2b5dd8b25e8b6a9153330f8fc624454589ecb6d77f2d47e9e34ae18ccbdaf095 WHIRLPOOL ac2e2648f21e6e8aeceef7e2d8e2efe2bddf6cceaf14c87b6f024264cbe04e7ba6a7713103478b45aaba9438dce233d830fae9721c5b408a7a513c27bd53b005
+EBUILD rfcutil-3.2.3-r2.ebuild 951 SHA256 b283c7cbe636c0dff913c9fafa5b73fc22ea18daf7f157f012d1e380c1918d29 SHA512 5d86444d8656d6c1aa725868a8aac33b040da5e5c6b5aefac542cc40b186e3d05ac17b99d936bec1077bcbbbac17f2194fde08528493d91d3a725734842f4788 WHIRLPOOL 32885d0fb448f81dad0d7b5be0e3b1fd1c15ecdbcef38ae2e45100c072b36b4bb705b59d3c7a5bef7c9613d01cda20c35e2199e0aeab792e701ed1d93335d174
+MISC ChangeLog 2590 SHA256 b9c805d23c2efa68577cd84d051ca35cdbafc0703ba08db07676ba1093a25805 SHA512 6bb3d15f97d1fca34ab76fcd33bb29420eedb9a3c50b9db8f7e10048240fd0ce9cd78f3a2537e549a652a93f58728ea36f0cd944bd953d03317d51d98d581777 WHIRLPOOL f8f9811fc23f877e66670d91dc2d074ffd814c860cf4354ce76e95d5825740edbeb727742036812ff66dd4167659e2f1d84497a343731ce6a8be172792bbaeca
+MISC ChangeLog-2015 4485 SHA256 f569b8671e1d531abb7830358c1cf8fb139465952ff6046eede0a825c25ccfb0 SHA512 a0d081bbf91cfb340946146d3695f44259cb158199ca5bf810cf84e826fe3b9fb9dd1d03b0ec13298fbb2d2695cb6b80c928939acf3cca4a6540e09c1ed210eb WHIRLPOOL 4b57ba67c3378e0ae8d30b7418d16a4135074d0bf035bf6cf49da9aef6c5da1fae85eb271d1d87df96b8cbf71e0a752b0f3c38fd9b8bc7b4cbe8bfdf4fd793ea
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-text/rfcutil/files/rfc-3.2.3-index.patch b/app-text/rfcutil/files/rfc-3.2.3-index.patch
new file mode 100644
index 000000000000..6b4deb607d6a
--- /dev/null
+++ b/app-text/rfcutil/files/rfc-3.2.3-index.patch
@@ -0,0 +1,17 @@
+--- a/rfc-3.2.3/rfc-3.2.3
++++ b/rfc-3.2.3/rfc-3.2.3
+@@ -103,11 +103,12 @@
+ ."It may be desirable to change the\n\$indexpath to a location you can write to.";
+ close (INDEXPATH);
+ $indexlength=numlines($indexpath);
+- print "Modem users one moment, it's about 400k \(doesn't need to be updated often\)\n";
++ print "Modem users one moment, it's about 1024k \(doesn't need to be updated often\)\n";
+ print "original lines \t= $indexlength\t$indexpath\n";
+ #system ("$viewer -dump http://www.faqs.org/rfc/rfc-index.txt > $indexpath");
+ #system ("$viewer -dump http://www.dewn.com/rfc/rfc-index.txt > $indexpath");
+- system ("$viewer -dump http://ftp.isi.edu/in-notes/rfc-index.txt > $indexpath");
++ #system ("$viewer -dump http://ftp.isi.edu/in-notes/rfc-index.txt > $indexpath");
++ system ("$viewer -dump http://www.ietf.org/rfc/rfc-index.txt > $indexpath");
+ $indexlength=numlines($indexpath); print "new lines \t= $indexlength\t$indexpath\n";
+ exit }
+
diff --git a/app-text/rfcutil/files/rfc-3.2.3-paths.patch b/app-text/rfcutil/files/rfc-3.2.3-paths.patch
new file mode 100644
index 000000000000..8d61bdbf3889
--- /dev/null
+++ b/app-text/rfcutil/files/rfc-3.2.3-paths.patch
@@ -0,0 +1,22 @@
+--- a/rfc-3.2.3/rfc-3.2.3
++++ b/rfc-3.2.3/rfc-3.2.3
+@@ -36,8 +36,8 @@
+
+ # These make it avail for all users if you can't
+ # run it as root. (full path, not ~/ )
+-$indexpath="/usr/local/etc/rfc-index";
+-$servpath="/usr/local/etc/nmap-services";
++$indexpath="@GENTOO_PORTAGE_EPREFIX@/var/cache/rfc/rfc-index";
++$servpath="@GENTOO_PORTAGE_EPREFIX@/etc/nmap-services";
+
+ ####################################
+ ## add as many urls as you please ##
+@@ -46,7 +46,7 @@
+ !http://www.faqs.org/rfcs/
+ http://www.isi.edu/in-notes/
+ http://www.cis.ohio-state.edu/htbin/rfc/
+- /local/path/to/rfcs/); #MAKE SURE you have the trailing slashes
++ @GENTOO_PORTAGE_EPREFIX@/var/cache/rfc/rfcs/); #MAKE SURE you have the trailing slashes
+ # URLs beginning with an ! are treated as HTML and not text
+
+ #######################
diff --git a/app-text/rfcutil/metadata.xml b/app-text/rfcutil/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-text/rfcutil/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-text/rfcutil/rfcutil-3.2.3-r2.ebuild b/app-text/rfcutil/rfcutil-3.2.3-r2.ebuild
new file mode 100644
index 000000000000..2706c02ec2ab
--- /dev/null
+++ b/app-text/rfcutil/rfcutil-3.2.3-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils prefix
+
+MY_PN="rfc"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="return all related RFCs based upon a number or a search string"
+HOMEPAGE="http://www.dewn.com/rfc/"
+SRC_URI="http://www.dewn.com/rfc/${MY_P}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="amd64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ || ( www-client/lynx virtual/w3m )"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${MY_P}-paths.patch \
+ "${FILESDIR}"/${MY_P}-index.patch
+ eprefixify ${MY_P}
+}
+
+src_install() {
+ newbin ${MY_P} ${MY_PN}
+ doman ${MY_PN}.1
+ dodoc CHANGELOG KNOWN_BUGS README
+ keepdir /var/cache/rfc
+}
+
+pkg_postinst() {
+ elog "Gaarde suggests you make a cron.monthly to run the following:"
+ elog " ${EPREFIX}/usr/bin/rfc -i"
+}
+
+pkg_prerm() {
+ rm -f "${EROOT}"/var/cache/rfc/*
+}