# 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" }
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 ---
Commited, thanks for the ebuild!