From owner-freebsd-ports@FreeBSD.ORG Wed Oct 26 17:02:38 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A5441065670 for ; Wed, 26 Oct 2011 17:02:38 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f07:14d3:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id 33EF38FC14 for ; Wed, 26 Oct 2011 17:02:38 +0000 (UTC) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f07:14d3:1::5]) by mail.farley.org (8.14.5/8.14.5) with ESMTP id p9QH2Uo3068108; Wed, 26 Oct 2011 13:02:31 -0400 (EDT) (envelope-from scf@FreeBSD.org) Date: Wed, 26 Oct 2011 13:02:30 -0400 (EDT) From: "Sean C. Farley" To: Torfinn Ingolfsen In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (BSF 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.farley.org Cc: rfc@blinky-lights.org, FreeBSD Ports ML Subject: Re: misc/rfc - the port / protocol option doesn't work anymore X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2011 17:02:38 -0000 On Tue, 25 Oct 2011, Torfinn Ingolfsen wrote: > Hello, > It seems that the '-p' option of rfc doesn't work anymore: > tingo@kg-v2$ uname -a > FreeBSD kg-v2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #4: Sat Jul 16 > 02:07:14 CEST 2011 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC > amd64 > tingo@kg-v2$ rfc > rfc v3.2.3: perl util to search the rfc-index and disply the pages with $viewer > usage: rfc # search rfc-index for specified RFC and list topic > rfc -d # /path/ (optional) dumps plain text RFC. default is current dir > rfc -h displays this stuff > rfc -i updates the /usr/local/etc/rfc-index via $viewer > rfc -k keyword; same as -s > rfc -l # spawns $viewer to the specified RFC > rfc -m # user@remote.net [opt subject]; emails the RFC to given address > rfc -n #/daemon local search for non-standard service/port nums > (BO, Netbus, etc) > rfc -o # Dumps RFC to STDOUT > rfc -p Connect to INI's assigned numbers for proto nums or > services/ports association > rfc -r go wild with your own regexp on rfc-index > rfc -s "string" Search the index for specific string > rfc -u # sets the base URL to the number listed with -w > rfc -w lists the available webservers to display > baseURL=http://www.ietf.org/rfc/ > comments/bugfixes mailto: rfc@blinky-lights.org > > tingo@kg-v2$ rfc -p port 23 > Making connection to server.... > http://www.iana.org/assignments/port-numbers > tingo@kg-v2$ rfc -p port 22 > Making connection to server.... > http://www.iana.org/assignments/port-numbers > tingo@kg-v2$ rfc -p ip 8 > Making connection to server.... > http://www.iana.org/assignments/protocol-numbers > > Details: > root@kg-v2# portversion -v | grep rfc > rfc-3.2.3_1 = up-to-date with port Thank you for the report. I am not sure if this application is maintained elsewhere, but I could not find any new updates from the developer or anyone else that had forked it last night. I did write a patch[1] against the port to use the data from the FTP server instead of the HTTP server. The HTTP server provides XML by default and text if requested, however, the text is not the same format that rfc expects. Let me know if it works for you--it works for me :), and I will try to update the port tonight with it. Sean 1. http://people.freebsd.org/~scf/rfc.patch -- scf@FreeBSD.org