<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jabbering Giraffe &#187; freebsd</title>
	<atom:link href="http://happygiraffe.net/blog/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://happygiraffe.net/blog</link>
	<description></description>
	<lastBuildDate>Wed, 19 Oct 2011 10:40:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Postfix 2.5.1 TLS on FreeBSD</title>
		<link>http://happygiraffe.net/blog/2008/07/26/postfix-2-5-1-tls-on-freebsd/</link>
		<comments>http://happygiraffe.net/blog/2008/07/26/postfix-2-5-1-tls-on-freebsd/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 22:05:45 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2008/07/26/postfix-2-5-1-tls-on-freebsd/</guid>
		<description><![CDATA[This is one of those things that I have to put up there in case anybody else has the same obscure setup that I do&#8230; I run postfix on FreeBSD, using the ports system. This means I have a tendency &#8230; <a href="http://happygiraffe.net/blog/2008/07/26/postfix-2-5-1-tls-on-freebsd/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is one of those things that I <em>have</em> to put up there in case anybody else has the same obscure setup that I do&#8230;</p>
<p>I run <a href="http://www.postfix.org/">postfix</a> on <a href="http://www.freebsd.org/">FreeBSD</a>, using the <a href="http://www.freebsd.org/ports/">ports system</a>.  This means I have a tendency to just use <a href="http://wiki.freebsd.org/portupgrade">portupgrade</a> to upgrade to the latest version of anything I happen to have installed.  Normally, this works just fine.  I usually check the output to see if any warnings about upgrading pop out and that&#8217;s about it.  Slightly seat-of-the-pants, I know.</p>
<p>Anyway, I recently upgraded to postfix 2.5.1 and started seeing these messages in the logs.</p>
<blockquote>
<p>Jul 26 21:29:44 gimli postfix/tlsmgr[7789]: fatal: tls_prng_exch_open: cannot open <span class="caps">PRNG</span> exchange file /var/lib/postfix/prng_exch: Permission denied</p>
</blockquote>
<p>tlsmgr is the bit of postfix that handles <a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol"><span class="caps">SMTP</span></a> over <a href="http://en.wikipedia.org/wiki/Transport_Layer_Security"><span class="caps">SSL</span></a>.</p>
<p>The first port of call is to look through the postfix release notes.  This seemed relevant.</p>
<blockquote>
<p>[Incompat 20071206] The tlsmgr(8) and verify(8) servers no longer use root privileges when opening the address_verify_map, *_tls_session_cache_database, and tls_random_exchange_name cache files.  This avoids a potential security loophole where the ownership of a file (or directory) does not match the trust level of the content of that file (or directory).</p>
</blockquote>
<p>So, what&#8217;s the problem?</p>
<pre>
  % sudo -u postfix ls -l /var/lib/postfix
  Password:
  ls: /var/lib/postfix: Permission denied
  % sudo -u postfix ls -l /var/lib
  total 0
  ls: lib: Permission denied
  % sudo -u postfix ls -ld /var/lib
  drwxr-x---  5 root  wheel  512 26 Jul 08:14 /var/lib
</pre>
<p>So, it&#8217;s basically a permissions problem.  Postfix can&#8217;t see the directory it&#8217;s trying to use.  Previously it wasn&#8217;t a problem, as postfix was doing things as root, and root sidesteps permissions checks.</p>
<p>What to do?  The simplest is to change the permissions.  But I don&#8217;t <em>particularly</em> like doing that on systems directories, as they may well get reset in the future (e.g. nightly runs of <a href="http://www.freebsd.org/cgi/man.cgi?query=mtree&#38;sektion=8">mtree</a>).   So the simplest option is probably to reconfigure postfix to use a different directory.  One that it actually has permission to access, like <code>/var/db/postfix</code>.</p>
<p>Annoyingly, when I look at the port to understand this problem (<a href="http://www.FreeBSD.org/cgi/query-pr.cgi?pr=121236">PR#121236</a>), it was fixed in April.  I wonder why I didn&#8217;t get the fix?</p>
<p>As it turns out a reinstall of postfix (<code>portupgrade -f postfix-2.5.1_2,1</code>) completely fixes the problem, and the directory it uses is now <code>/var/db/postfix</code> by default.  I wonder what caused it to go wrong in the first place though?</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2008/07/26/postfix-2-5-1-tls-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cfengine Introduction</title>
		<link>http://happygiraffe.net/blog/2006/05/27/cfengine-introduction/</link>
		<comments>http://happygiraffe.net/blog/2006/05/27/cfengine-introduction/#comments</comments>
		<pubDate>Sat, 27 May 2006 22:30:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cfengine]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2006/05/27/cfengine-introduction/</guid>
		<description><![CDATA[For years, I&#8217;ve looked at cfengine and thought &#8220;I must get around to learning that&#8221;. Today, I was reading Building a Self-Healing Network and finally thought that I need to give it a try. One of my problems is that &#8230; <a href="http://happygiraffe.net/blog/2006/05/27/cfengine-introduction/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For years, I&#8217;ve looked at <a href="http://www.cfengine.org/">cfengine</a> and thought &#8220;I must get around to learning that&#8221;.  Today, I was reading <a href="http://www.onlamp.com/pub/a/onlamp/2006/05/25/self-healing-networks.html">Building a Self-Healing Network</a> and finally thought that I need to give it a try.</p>
<p>One of my problems is that processes on my FreeBSD server often get stopped when I run <a href="http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html">portupgrade</a> and I don&#8217;t notice.  cfengine claims to be good at fixing non-running processes, so I gave it a try and came up with this:</p>
<pre>
  control:
      actionsequence = ( processes )

  processes:
      "amavisd"        restart "/usr/local/etc/rc.d/amavisd restart"
      "clamd"          restart "/usr/local/etc/rc.d/clamav-clamd restart"
      "dhcpd"          restart "/usr/local/etc/rc.d/isc-dhcpd.sh restart"
      "dovecot"        restart "/usr/local/etc/rc.d/dovecot restart"
      "freshclam"      restart "/usr/local/etc/rc.d/clamav-freshclam restart"
      "httpd"          restart "/usr/local/etc/rc.d/apache restart"
      "named"          restart "/etc/rc.d/named restart"
      "nmbd"           restart "/usr/local/etc/rc.d/samba restart"
      "ntpd"           restart "/etc/rc.d/ntpd restart"
      "postfix/master" restart "/usr/local/etc/rc.d/postfix restart"
      "postmaster"     restart "/usr/local/etc/rc.d/010.pgsql.sh restart"
      "smartd"         restart "/usr/local/etc/rc.d/smartd restart"
      "smbd"           restart "/usr/local/etc/rc.d/samba restart"
      "squid"          restart "/usr/local/etc/rc.d/squid restart"
</pre>
<p>When run via <code>cfagent -f checkprocs.conf</code>, this works a treat.</p>
<p>The next step should be getting all the other cfengine gumph working on my network.  However, I&#8217;ve only got one box, so running it every hour out of cron is good enough.</p>
<pre>
  0 * * * * root /usr/local/sbin/cfexecd -f /usr/local/etc/cfengine/checkprocs.conf
</pre>
<p>In accordance with the <a href="http://www.cfengine.org/docs/cfengine-Reference.html#Cfexecd-reference">cfexecd documentation</a>, I also amended my control section so I&#8217;ll get mail when it does something.</p>
<pre>
  control:
      actionsequence = ( processes )
      smtpserver = ( localhost )
      sysadm = ( root@happygiraffe.net )
</pre>
<p>This seems to be a good start on getting cfengine working.  Now I can play more with it.  It seems like it&#8217;d be another useful tool for work.</p>
<p><strong>Update</strong>: cfexecd doesn&#8217;t work.  Running cfagent directly does.  How annoying.</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2006/05/27/cfengine-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Move</title>
		<link>http://happygiraffe.net/blog/2006/02/03/server-move/</link>
		<comments>http://happygiraffe.net/blog/2006/02/03/server-move/#comments</comments>
		<pubDate>Fri, 03 Feb 2006 00:23:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2006/02/03/server-move/</guid>
		<description><![CDATA[Well, after a couple of very long and frustrating evenings, I&#8217;ve finally managed to replicate the setup of my old, decrepit server onto a shiny new (and hopefully more reliable) dell box. I thought that this would be easy, as &#8230; <a href="http://happygiraffe.net/blog/2006/02/03/server-move/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well, after a couple of very long and frustrating evenings, I&#8217;ve finally managed to replicate the setup of my old, decrepit server onto a shiny new (and hopefully more reliable) dell box.  I thought that this would be easy, as I was under the impression that I had everything under version control.  But it&#8217;s only when you start on an endeavour like this that you realise <em>just how much</em> tweaking you have done to a box.  Some particular highlights of this move:</p>
<ul>
<li>I had been installing my squid.conf to the wrong place for about 2 years.</li>
<li>I discovered I&#8217;d been running clamscan (command line) instead of calling clamd (daemon) for a year.  Slow mail &#8216;r&#8217; us.</li>
<li>I discovered that my PostgreSQL backups had not been running for over a year.</li>
<li>I noticed that <a href="http://happygiraffe.net/trac/">my trac installation</a> had been wikispammed a few days ago (I didn&#8217;t notice when it happened).  Trac needs a &#8220;revert to previous version&#8221; button.</li>
<li>Rails has caused me the most grief, surprisingly.  getting typo up and running has been a pain.  Firstly, because I didn&#8217;t have FastCGI installed.  But I didn&#8217;t get an error for some reason.  But whe I did install it, all I got was &#8220;FastCGI: incomplete headers (35 bytes) received from server&#8221;.  I have now learned that this means &#8220;something went wrong but I&#8217;m not going to tell you what is.  In my case, it was needing to install the ruby-postgres drivers.  But rails isn&#8217;t kind enough to tell you that it can&#8217;t load the db drivers you&#8217;ve requested, instead it just silently fails.  Which is a bit of a nuisance.  I&#8217;ll have to check the trunk to see if it&#8217;s been fixed&#8230;</li>
</ul>
<p>Anyway, now I can <em>finally</em> get on with the other more important tasks that I have to do.  I gave up being a sysadmin 5 years ago for a damned good reason.</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2006/02/03/server-move/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Server</title>
		<link>http://happygiraffe.net/blog/2006/01/17/new-server/</link>
		<comments>http://happygiraffe.net/blog/2006/01/17/new-server/#comments</comments>
		<pubDate>Tue, 17 Jan 2006 01:31:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2006/01/17/new-server/</guid>
		<description><![CDATA[So I went ahead and bought a new Dell PowerEdge SC430, as my normal server is falling over on a far too regular basis. Lovely. Except that when I got it home, I made the discovery that Dell no longer &#8230; <a href="http://happygiraffe.net/blog/2006/01/17/new-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I went ahead and bought a new <a href="http://www1.euro.dell.com/content/products/productdetails.aspx/pedge_sc430?c=uk&#38;cs=ukbsdt1&#38;l=en&#38;s=bsd">Dell PowerEdge <span class="caps">SC430</span></a>, as my normal server is falling over on a far too regular basis.  Lovely.  Except that when I got it home, I made the discovery that Dell no longer fit PS/2 keyboard connectors.  There are 7 <span class="caps">USB</span> slots, however.  And guess which kind of keyboard I don&#8217;t posess?</p>
<p>On top of that, I also found that the only free-standing monitor I posess only had a <span class="caps">DVI</span> cable, not a <span class="caps">VGA</span>.</p>
<p>So, back to work to liberate some parts from the stores for an evening.  And now I have a very nice shiny new server running <a href="http://freebsd.org/">FreeBSD</a>.</p>
<p>Now starts the hard bit, configuring it the same as the other one&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2006/01/17/new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD / mod_fastcgi</title>
		<link>http://happygiraffe.net/blog/2006/01/05/freebsd-mod_fastcgi/</link>
		<comments>http://happygiraffe.net/blog/2006/01/05/freebsd-mod_fastcgi/#comments</comments>
		<pubDate>Thu, 05 Jan 2006 10:56:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2006/01/05/freebsd-mod_fastcgi/</guid>
		<description><![CDATA[Eventually, I managed to get mod_fastcgi to compile on FreeBSD. See PR#91190. It basically amounted to applying the patch in the mailing list automatically. But what really surprised me were the changes to the port&#8217;s Makefile. I trimmed out about &#8230; <a href="http://happygiraffe.net/blog/2006/01/05/freebsd-mod_fastcgi/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Eventually, I managed to get mod_fastcgi to compile on FreeBSD.  See <a href="http://www.freebsd.org/cgi/query-pr.cgi?pr=91190">PR#91190</a>.  It basically amounted to applying the patch in the mailing list automatically.  But what really surprised me were the changes to the port&#8217;s Makefile.  I trimmed out about 50 lines of confusion into this:</p>
<pre>AP_FAST_BUILD=    yes
AP_GENPLIST=    yes
SRC_FILE=    *.c
PORTDOCS=    LICENSE.TERMS mod_fastcgi.html</pre>
<p>This is all thanks to the new <a href="http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.apache.mk">bsd.apache.mk</a> support.  It really works well.  However, it is slightly underdocumented.   But this isn&#8217;t much of a problem.  <code>less /usr/ports/www/mod_*/Makefile</code> provided enough hints to get going quickly.</p>
<p>Now I just need to get the maintainer approval, in order to get this committed&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2006/01/05/freebsd-mod_fastcgi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bloody Software</title>
		<link>http://happygiraffe.net/blog/2005/12/30/bloody-software/</link>
		<comments>http://happygiraffe.net/blog/2005/12/30/bloody-software/#comments</comments>
		<pubDate>Fri, 30 Dec 2005 15:12:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[connectivity]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2005/12/30/bloody-software/</guid>
		<description><![CDATA[Over Christmas, my server has mostly been turned off. This is because it&#8217;s in one of the guest bedrooms and my mother who was staying in there didn&#8217;t appreciate the noise. On the day after boxing day, we travelled up &#8230; <a href="http://happygiraffe.net/blog/2005/12/30/bloody-software/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Over Christmas, my server has mostly been turned off.  This is because it&#8217;s in one of the guest bedrooms and my mother who was staying in there didn&#8217;t appreciate the noise.</p>
<p>On the day after <a href="http://en.wikipedia.org/wiki/Boxing_Day">boxing day</a>, we travelled up to the in-law&#8217;s for a few days.   And so I switched the server on and ran out of the door.  Unfortunately PostgreSQL failed to start up correctly (a <a href="http://www.freebsd.org/cgi/cvsweb.cgi/ports/databases/postgresql80-server/Makefile?rev=1.152&#38;content-type=text/x-cvsweb-markup">recent change</a> to the FreeBSD ports system, to which PostgreSQL had not been adjusted).  Thanks to the marvels of <span class="caps">PHP</span>, this blog just displayed a database connect error.  Including the database username and password in the clear.  How screwed is that?</p>
<p>What&#8217;s worse is that I kept getting &#8220;connection refused&#8221; when attempting to connect from the in-law&#8217;s broadband connection.  I have no idea why, but I suspect that some filtering is occuring in their router or at BT Internet.  Grrr.  So no way to fix it until I got back, just now.</p>
<p>So, the sooner I can get Typo up and running instead, the better.  It won&#8217;t work without a database,  but I very much doubt that it will default to spamming my username and password to the world&#8230;  Good job I don&#8217;t use that one elsewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2005/12/30/bloody-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD Crash Dump Analysis</title>
		<link>http://happygiraffe.net/blog/2005/11/23/freebsd-crash-dump-analysis/</link>
		<comments>http://happygiraffe.net/blog/2005/11/23/freebsd-crash-dump-analysis/#comments</comments>
		<pubDate>Wed, 23 Nov 2005 11:37:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2005/11/23/freebsd-crash-dump-analysis/</guid>
		<description><![CDATA[Unfortunately, I had a crash earlier on my FreeBSD server. It&#8217;s probably due to bad hardware. But I decided to take a look at the dumpfile anyway. The best resource is the FreeBSD handbook section on Debugging a Kernel Crash &#8230; <a href="http://happygiraffe.net/blog/2005/11/23/freebsd-crash-dump-analysis/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Unfortunately, I had a crash earlier on my FreeBSD server.  It&#8217;s probably due to bad hardware.  But I decided to take a look at the dumpfile anyway.  The best resource is the FreeBSD handbook section on <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-gdb.html">Debugging a Kernel Crash Dump with kgdb</a>.  That&#8217;s invaluable.</p>
<p>Sadly, it didn&#8217;t tell me much:</p>
<pre>Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x8
fault code              = supervisor write, page not present
instruction pointer     = 0x20:0xc04c8f79
stack pointer           = 0x28:0xd13ddb44
frame pointer           = 0x28:0xd13ddb54
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 864 (squid)
trap number             = 12
panic: page fault</pre>
<p>So at the time, squid was sitting around waiting for things to happen (the stacktrace showed it as being inside <code>poll()</code>) and the machine blew up.  Darn.  Ah well, the standard response is to just <code>make world</code> and try again.</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2005/11/23/freebsd-crash-dump-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD Perl Upgrade</title>
		<link>http://happygiraffe.net/blog/2005/06/28/freebsd-perl-upgrade/</link>
		<comments>http://happygiraffe.net/blog/2005/06/28/freebsd-perl-upgrade/#comments</comments>
		<pubDate>Tue, 28 Jun 2005 08:56:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2005/06/28/freebsd-perl-upgrade/</guid>
		<description><![CDATA[Like quite a few people, I dread upgrading Perl on my FreeBSD box. It&#8217;s a lot of hassle because it involves rebuilding a large number of dependent ports to use the new Perl. So I was pleased to see this &#8230; <a href="http://happygiraffe.net/blog/2005/06/28/freebsd-perl-upgrade/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Like quite a few people, I dread upgrading Perl on my FreeBSD box.  It&#8217;s a lot of hassle because it involves rebuilding a large number of dependent ports to use the new Perl.  So I was pleased to see this <a href="http://www.oreillynet.com/pub/wlg/7285">blog entry</a> stating how easy it was with the right tools.  So here we go, let&#8217;s see how easy it can be&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2005/06/28/freebsd-perl-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easier Porting</title>
		<link>http://happygiraffe.net/blog/2005/02/24/easier-porting/</link>
		<comments>http://happygiraffe.net/blog/2005/02/24/easier-porting/#comments</comments>
		<pubDate>Thu, 24 Feb 2005 13:24:00 +0000</pubDate>
		<dc:creator>Dominic Mitchell</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ports]]></category>

		<guid isPermaLink="false">http://happygiraffe.net/2005/02/24/easier-porting/</guid>
		<description><![CDATA[I&#8217;ve been updating all my FreeBSD ports recently and one continuing pain is the gerenation fo the plist file. Looking the Porters Handbook gave me the answer though. There&#8217;s a script you can use to make a plist. It needs &#8230; <a href="http://happygiraffe.net/blog/2005/02/24/easier-porting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been updating all my FreeBSD ports recently and one continuing pain is the gerenation fo the plist file.  Looking the Porters Handbook gave me the <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-autoplist.html">answer</a> though.  There&#8217;s a script you can use to make a plist.  It needs a bit of editing afterwards, but it&#8217;s a good start.</p>
<p>The only problem is that you have to install the port to a temporary area first.  This appears to be the best way to do it as an ordinary user instead of root.</p>
<pre>% make install PREFIX=/tmp/myport INSTALL_AS_USER=yes NO_PKG_REGISTER=yes</pre>
<p>After that, just run the magic script.</p>
<pre>/usr/ports/Tools/scripts/plist -Md -m /etc/mtree/BSD.local.dist /tmp/myport &gt; pkg-plist</pre>
]]></content:encoded>
			<wfw:commentRss>http://happygiraffe.net/blog/2005/02/24/easier-porting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

