<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma">Hey Andrew</font><div style="font-family: Tahoma; "><br></div><div style="font-family: Tahoma; ">Sorry about that ... Appears I was being a bit dyslexic when I typed mine in and put the * in the wrong spot.</div><div style="font-family: Tahoma; ">The following is the correction:</div><div style="font-family: Tahoma; "><br></div><div><pre style="text-indent: 0px !important; font-family: Tahoma; ">sed -i '/file=/s@pro[^ ]*@&/&.txt@' Makefile</pre><pre style="text-indent: 0px !important; "><font class="Apple-style-span" face="Tahoma">I also did not like the formatting used in the source (picky I know), so</font></pre><pre style="text-indent: 0px !important; "><font class="Apple-style-span" face="Tahoma">attached are a couple of replacement scripts for protocols.gawk and services.gawk</font></pre><pre style="text-indent: 0px !important; "><font class="Apple-style-span" face="Tahoma">should anyone like to use them :)</font></pre><pre style="text-indent: 0px !important; "><font class="Apple-style-span" face="Tahoma">Cheers</font></pre><pre style="text-indent: 0px !important; "><font class="Apple-style-span" face="Tahoma">Grail</font></pre><br><div id="SkyDrivePlaceholder" style="font-family: Tahoma; "></div><font class="Apple-style-span" face="Tahoma">Date: Sun, 16 Jan 2011 11:24:03 -0500</font><br><font class="Apple-style-span" face="Tahoma">From: bradfa@gmail.com</font><br><font class="Apple-style-span" face="Tahoma">To: clfs-dev@lists.cross-lfs.org</font><br><font class="Apple-style-span" face="Tahoma">Subject: Re: [Clfs-dev] iana-etc</font><br><br><pre style="font-family: Tahoma; ">On Sun, Jan 16, 2011 at 11:13 AM, Andrew Bradford <bradfa@gmail.com> wrote:<br>><br>> On Thu, Jan 13, 2011 at 2:19 AM, Grail Dane <grail69@hotmail.com> wrote:<br>>><br>>> Hi All<br>>> Wasn't sure if this was a dev thing or not, but I see we have recently started to host our own copy of iana-etc as the original site seems<br>>> to not be responding.  After searching for a bit I found a thread on LFS talking about it and the fact that not only could<br>>> the source not been downloaded but once it is that the files being used, ie services and protocols, are out of date (circa 2008).<br>>> The hot debate about how to update them never really seemed to get resolved except to say to get them from iana directly.<br>>> What I thought I would add here is that with one simple change and an addition to make this can be done:<br>>> 1. The following sed update the now out of date link to where the protocol files are stored:<br>>> sed -i '/file=/s@pro[^ *]@&/&.txt@' Makefile<br>>> 2. There is already a built in get call that can retrieve the latest copies, so simply do the following:<br>>> make get && make<br>>> And viola, if you ran this today the files would be as up to date as:<br>>> services    2011-01-11<br>>> protocols   2010-11-23<br>>> Just thought you might all like to know :)<br>>> Cheers<br>>> Grail<br>><br>> Grail,<br>><br>> Thanks for pointing this out!  I didn't know the package had a built in updater script, that's neat.<br>><br>> I did find that your sed line doesn't work well for me on amd64 Debian 5, it ends up garbling the protocol-numbers.iana line in Makefile to look like this:<br>><br>> protocol-numbers.iana:<br>>         $(AWK) -f get.gawk -v file=prot/prot.txtocol-numbers >protocol-numbers.i<br>> ana<br>><br>> Which isn't the desired output.  A less complex sed line that works for me, achieves your desired intent, and is a little easier for the regex impaired (myself included :) would be:<br>><br>> sed -i '/file=/s@protocol-numbers@&/&.txt@' Makefile<br>><br>> I'll craft a patch and submit it to the list.<br>><br>> Regards,<br>> Andrew<br> <br>Patch attached for the embedded book.  It may also work on other books<br>but I haven't tested that.<br> <br>Sorry if my previous email's sed line got wrecked (the list archiver<br>didn't like it, thought it was an email address).<br> <br>Regards,<br>Andrew<br></pre><br><font class="Apple-style-span" face="Tahoma">_______________________________________________
Clfs-dev mailing list
Clfs-dev@lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org</font></div>                                           </body>
</html>