diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/rfcutil | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/rfcutil')
-rw-r--r-- | app-text/rfcutil/Manifest | 5 | ||||
-rw-r--r-- | app-text/rfcutil/files/rfc-3.2.3-index.patch | 17 | ||||
-rw-r--r-- | app-text/rfcutil/files/rfc-3.2.3-paths.patch | 22 | ||||
-rw-r--r-- | app-text/rfcutil/metadata.xml | 5 | ||||
-rw-r--r-- | app-text/rfcutil/rfcutil-3.2.3-r2.ebuild | 45 |
5 files changed, 94 insertions, 0 deletions
diff --git a/app-text/rfcutil/Manifest b/app-text/rfcutil/Manifest new file mode 100644 index 000000000000..1b2fc35136f4 --- /dev/null +++ b/app-text/rfcutil/Manifest @@ -0,0 +1,5 @@ +AUX rfc-3.2.3-index.patch 998 BLAKE2B 03681e23c38abb48d31f1b163ac4086b90a535ec1e27ea7a9dd8d9ed7fe3d6dfeb215a0199525677b0e648aac7ab5abf269c9bda2c8631b580d14c97e2123b68 SHA512 cbf0dd87e6879e2510da0cbb43a62ac1e772afda178d8c9d6a8817c93b8edfa2dda98bda0b57c6bd3abdc06e558b8656ef9dd7467cd4efdba391a01a1f47180a +AUX rfc-3.2.3-paths.patch 839 BLAKE2B 64a0dcd84fe6405e6f1f03c5be3bf4de7dc4d1f1fc9fbf393d7ddded35b20bbc2669a1e5c35fa1ae75d8950f89ce10ef4ebda4e1ded729c6a00da039ee9ed85a SHA512 be0897633ed1a56ccd5f44b018af030a9eeb6c02cd792dfe5cc0f3280f9a9319f5c48a2f71a6928b64c6ec7360c3f7c18ec74d9cea4039cfd68e35147eea1d79 +DIST rfc-3.2.3.tar.gz 10469 BLAKE2B 8158a707c216a88b0ed41b60146f1ef53bdd060ed88cef18e38c9fe69c638fec38df1c83d4bce281d85446f11e2035086c7d2f19b8bd60c8fa4349f0e9f35bfa SHA512 b16ff2ee0c7a1213369dd4d5d1033c6daf95f283b170ffc46c02b65cd125d4bf2b5dd8b25e8b6a9153330f8fc624454589ecb6d77f2d47e9e34ae18ccbdaf095 +EBUILD rfcutil-3.2.3-r2.ebuild 951 BLAKE2B bc581f684a5cb4d812606152295e7dcecdde81c33f468226f0adbdefb568f3f338886964e2818095415e2d33ae49a74028039f0427e8a3d15b1402bd958ad27f SHA512 5d86444d8656d6c1aa725868a8aac33b040da5e5c6b5aefac542cc40b186e3d05ac17b99d936bec1077bcbbbac17f2194fde08528493d91d3a725734842f4788 +MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 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/* +} |