Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5059 - rfcutil-3.2.3-r1.ebuild
Summary: rfcutil-3.2.3-r1.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-15 19:57 UTC by Paul Belt
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Belt 2002-07-15 19:57:30 UTC
# AUTHOR: gaarde at users dot sourceforge dot net

MY_PN="rfc"
MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="RFC Util allows you to specify the number of an RFC, or a search
string, and it returns all related RFCs. It features command line switches to
spawn lynx or w3m to view the RFC, dump to file for offline viewing, or mail to
an address. It also allows local and remote lookups of port, service, or proto
numbers."
HOMEPAGE="http://www.dewn.com/rfc/"
SRC_URI="http://www.dewn.com/rfc/${MY_P}.tar.gz"

src_compile() {
   patch -p0 < ${FILESDIR}/${MY_P}.gaarde || die
}

src_install () {
   newbin ${MY_P} ${MY_PN}
   doman ${MY_PN}.1
   dodoc CHANGELOG INSTALL KNOWN_BUGS README
   mkdir -p ${D}/var/cache/rfc/
}

pkg_postinst () {
   einfo "Generating rfc-index"
   /usr/bin/rfc -i
   einfo "Gaarde suggests you make a cron.monthly to run the following:"
   einfo "   /usr/bin/rfc -i"
}
Comment 1 Paul Belt 2002-07-15 19:58:37 UTC
Contents of files/rfc-3.2.3.gaarde

--- CUT BEGIN ---

--- rfc-3.2.3.orig      Mon Jul 15 20:37:00 2002
+++ rfc-3.2.3   Mon Jul 15 20:38:16 2002
@@ -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="/var/cache/rfc/rfc-index";
+$servpath="/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
+           /var/cache/rfc/rfcs/);   #MAKE SURE you have the trailing slashes
            # URLs beginning with an ! are treated as HTML and not text
 
 #######################

--- END CUT ---
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2002-07-28 08:26:08 UTC
Commited, thanks for the ebuild!