From owner-freebsd-ports@FreeBSD.ORG Wed Oct 26 17:13:41 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 9668F1065674; Wed, 26 Oct 2011 17:13:41 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 400E98FC16; Wed, 26 Oct 2011 17:13:40 +0000 (UTC) Received: by vws11 with SMTP id 11so2501894vws.13 for ; Wed, 26 Oct 2011 10:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PHMPmhIrX2XDBYQmGozeoB46t5NMNluYzERdUaebBDU=; b=Gd+UPBxwUACIu6srrYsmBgAuSKJBDT8CHRgp2o9uAh1DlWAzWUqTEghdOCuASCGJsT hFtsv75gH5KTE5cI6FZBLAYdCL/iDkBrzWLa3LHV/5hIw9P9Al++MkWVsKNoDZbPzpFg eSHy9lS2KrhWynwqnmOUCgSxEgUB9xTMdJpMY= MIME-Version: 1.0 Received: by 10.52.92.212 with SMTP id co20mr76954vdb.119.1319649219596; Wed, 26 Oct 2011 10:13:39 -0700 (PDT) Received: by 10.52.111.99 with HTTP; Wed, 26 Oct 2011 10:13:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 26 Oct 2011 19:13:39 +0200 Message-ID: From: Torfinn Ingolfsen To: "Sean C. Farley" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:13:41 -0000 On Wed, Oct 26, 2011 at 7:02 PM, Sean C. Farley wrote: > 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 =A0 =A0 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERI= C >> amd64 >> tingo@kg-v2$ rfc >> rfc v3.2.3: perl util to search the rfc-index and disply the pages with >> $viewer >> usage: =A0rfc # =A0 =A0 search rfc-index for specified RFC and list topi= c >> =A0 =A0 =A0 =A0rfc -d # /path/ (optional) dumps plain text RFC. default = is current >> dir >> =A0 =A0 =A0 =A0rfc -h =A0 =A0displays this stuff >> =A0 =A0 =A0 =A0rfc -i =A0 =A0updates the /usr/local/etc/rfc-index via $v= iewer >> =A0 =A0 =A0 =A0rfc -k =A0 =A0keyword; same as -s >> =A0 =A0 =A0 =A0rfc -l # =A0spawns $viewer to the specified RFC >> =A0 =A0 =A0 =A0rfc -m # user@remote.net [opt subject]; emails the RFC to= given >> address >> =A0 =A0 =A0 =A0rfc -n #/daemon local search for non-standard service/por= t nums >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(BO, Netbus, etc) >> =A0 =A0 =A0 =A0rfc -o # =A0Dumps RFC to STDOUT >> =A0 =A0 =A0 =A0rfc -p =A0 =A0Connect to INI's assigned numbers for proto= nums or >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0services/ports association >> =A0 =A0 =A0 =A0rfc -r =A0 =A0go wild with your own regexp on rfc-index >> =A0 =A0 =A0 =A0rfc -s "string" Search the index for specific string >> =A0 =A0 =A0 =A0rfc -u # =A0sets the base URL to the number listed with -= w >> =A0 =A0 =A0 =A0rfc -w =A0 =A0lists the available webservers to display >> baseURL=3Dhttp://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 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D =A0up-to-date with port > > Thank you for the report. =A0I am not sure if this application is maintai= ned > elsewhere, but I could not find any new updates from the developer or any= one > else that had forked it last night. > > I did write a patch[1] against the port to use the data from the FTP serv= er > instead of the HTTP server. =A0The HTTP server provides XML by default an= d > 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. root@kg-v2# cd /usr/ports/misc/rfc root@kg-v2# patch < /home/tingo/work/rfc.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: Makefile |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |RCS file: /usr/FreeBSD/repos/ncvs/ports/misc/rfc/Makefile,v |retrieving revision 1.20 |diff -u -r1.20 Makefile |--- Makefile 15 Apr 2010 21:00:21 -0000 1.20 |+++ Makefile 26 Oct 2011 02:08:30 -0000 -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 7. Hunk #2 succeeded at 27. done root@kg-v2# make =3D=3D=3D> Vulnerability check disabled, database not found =3D=3D=3D> License check disabled, port has not defined LICENSE =3D=3D=3D> Extracting for rfc-3.2.3_2 =3D> SHA256 Checksum OK for rfc-3.2.3.tar.gz. =3D=3D=3D> Patching for rfc-3.2.3_2 =3D=3D=3D> Configuring for rfc-3.2.3_2 root@kg-v2# make deinstall =3D=3D=3D> Deinstalling for misc/rfc =3D=3D=3D> Deinstalling rfc-3.2.3_1 root@kg-v2# make reinstall =3D=3D=3D> Installing for rfc-3.2.3_2 =3D=3D=3D> rfc-3.2.3_2 depends on executable: w3m - found =3D=3D=3D> Generating temporary packing list =3D=3D=3D> Checking if misc/rfc already installed install -o root -g wheel -m 555 /usr/ports/misc/rfc/work/rfc-3.2.3/rfc-3.2.3 /usr/local/bin/rfc install -o root -g wheel -m 444 /usr/ports/misc/rfc/work/rfc-3.2.3/rfc.1 /usr/local/man/man1 =3D=3D=3D> Compressing manual pages for rfc-3.2.3_2 =3D=3D=3D> Registering installation for rfc-3.2.3_2 root@kg-v2# rfc -p port 23 Making connection to server.... ftp://ftp.iana.org/assignments/port-numbers telnet 23/tcp Telnet telnet 23/udp Telnet # Jon Postel root@kg-v2# rfc -p port 22 Making connection to server.... ftp://ftp.iana.org/assignments/port-numbers ssh 22/tcp The Secure Shell (SSH) Protocol ssh 22/udp The Secure Shell (SSH) Protocol # [RFC4251] ssh 22/sctp SSH # IETF TSVWG # Randall Stewart # [RFC4960] Yes - it works. Thanks a lot! --=20 Regards, Torfinn Ingolfsen