Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 5059

Summary: rfcutil-3.2.3-r1.ebuild
Product: Gentoo Linux Reporter: Paul Belt <gaarde>
Component: New packagesAssignee: Daniel Ahlberg (RETIRED) <aliz>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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!