From owner-freebsd-questions@FreeBSD.ORG Thu Aug 11 13:47:03 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6352D106566C for ; Thu, 11 Aug 2011 13:47:03 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id C83F38FC12 for ; Thu, 11 Aug 2011 13:47:02 +0000 (UTC) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.4/8.14.4) with ESMTP id p7BDkvfh071786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 11 Aug 2011 15:46:57 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.4/8.14.4/Submit) id p7BDkvJo071785; Thu, 11 Aug 2011 15:46:57 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Thu, 11 Aug 2011 15:46:57 +0200 From: Ruben de Groot To: Howard Jones Message-ID: <20110811134657.GA71716@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Howard Jones , freebsd-questions@freebsd.org References: <55A74C53CF85244A8000286B9B0313FE19534CB154@SCHOENTB1EXMB02.ap.ds.army.mil> <46F365E4DFD3421A4869B342@mac-pro.magehandbook.com> <4E43C0D3.6040105@thingy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E43C0D3.6040105@thingy.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (ei.bzerk.org [127.0.0.1]); Thu, 11 Aug 2011 15:47:01 +0200 (CEST) Cc: freebsd-questions@freebsd.org Subject: Re: [freebsd-questions] FreeBSD supported versions (UNCLASSIFIED) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2011 13:47:03 -0000 On Thu, Aug 11, 2011 at 12:45:23PM +0100, Howard Jones typed: > On 11/08/2011 12:37, Daniel Staal wrote: > > > > (Well, ok, given the current release structure having an update today > > means you are in a supported branch, and that supported branch will > > continue to get updates for the foreseeable future. But that still > > does not tell me when the branch is likely to get unsupported, and in > > theory a patch release could be made on the last day of support for a > > branch.) > A simple solution would be for there to ALWAYS be a patch release on the > last day of support for a branch, that creates /etc/NOT-SUPPORTED or > similar. Then it's just a matter of adding an /etc/cron.daily job to > report on that, as long as you are following updates (and if you aren't > you don't care about this issue). > > I can't think of any other OS that does this, either - they generally > just report that there are no available updates. You can do a lot of nice stuff just parsing the cvsweb. For example, here's a very basic script for showing supported branches: #!/usr/bin/perl -w use strict; use LWP::Simple; print "Supported branches of FreeBSD:\n\n"; my @content = split /\n/, get("http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/www/en/security/security.sgml"); die "Couldn't get url!" unless @content; my $line = shift @content; do { $line = shift @content; } until ($line =~ /name="supported-branches"/); do { $line = shift @content; } until ($line =~ /table class="tblbasic"/); while ($line = shift @content) { last if $line =~ /\<\/table\>/; if ($line =~ /\/) { $line =~ s/<[^>]*>//g; $line =~ s/^\s*//; printf "%-20s", $line; } print "\n" if $line =~ /\<\/tr\>/; }