<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Tumbleweed Rants</title>
  <subtitle>Stefano's World</subtitle>
  <link rel="alternate" type="text/html" href="http://tumbleweed.org.za/2007/06/10/php4-for-feisty-pbuilder-for-beginners"/>
  <link rel="self" type="application/atom+xml" href="http://tumbleweed.org.za/node/81/atom/feed"/>
  <id>http://tumbleweed.org.za/node/81/atom/feed</id>
  <updated>2008-09-19T08:16:10+00:00</updated>
  <entry>
    <title>PHP4 for feisty - pbuilder for beginners</title>
    <link rel="alternate" type="text/html" href="http://tumbleweed.org.za/2007/06/10/php4-for-feisty-pbuilder-for-beginners" />
    <id>http://tumbleweed.org.za/2007/06/10/php4-for-feisty-pbuilder-for-beginners</id>
    <published>2007-06-10T20:40:36+00:00</published>
    <updated>2008-09-19T08:16:10+00:00</updated>
    <author>
      <name>tumbleweed</name>
    </author>
    <category term="clug" />
    <category term="linux" />
    <category term="php" />
    <category term="software" />
    <category term="ubuntu" />
    <summary type="html"><![CDATA[<p>I helped Robbster out on #clug today, building php4 for feisty (it&#8217;s been dropped after edgy, in favour of php5). If you want to install it, don&#8217;t care about security holes, and want to use the debs I created, add this line to your apt sources list, and&nbsp;go&nbsp;wild:</p>

<div class="geshifilter"><div class="apt_sources geshifilter-apt_sources" style="font-family:monospace;"><span class="kw1">deb</span> <span class="re0">http://ftp.leg.uct.ac.za/pub/stuff/tmp/php4-feisty</span> ./</div></div>

<p>If on the other hand you want to know how to do it (so when the next <span class="caps"><span class="caps">PHP</span></span> security hole appears tomorrow, you can build the latest version <em>yourself</em>),&nbsp;read&nbsp;on:</p>

<p>I&#8217;ve never used <a href="http://www.netfort.gr.jp/~dancer/software/pbuilder-doc/pbuilder-doc.html">pbuilder</a> before, so it&nbsp;was&nbsp;fun:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># aptitude install pbuilder</div></div>

<p>Edit <span class="geshifilter"><code class="geshifilter-text">/etc/pbuilderrc</code></span> to point to your closest mirror, and uncomment the <span class="geshifilter"><code class="geshifilter-text">COMPONENTS</code></span>line (so that you get&nbsp;universe&nbsp;included)</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># pbuilder create</div></div>

<p>Now pbuilder is ready for work. Get the <a href="http://packages.debian.org/unstable/source/php4">latest sources from debian</a> (Download those 3 files at the end, dsc, orig.tar.gz&nbsp;and&nbsp;diff)</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># pbuilder build *.dsc</div></div>

<p>Sit back&nbsp;and&nbsp;watch&#8230;</p>

<p>When it&#8217;s done, you probably want to create a <a href="http://www.debian.org/doc/manuals/repository-howto/repository-howto#id2452849">trivial repository</a> of&nbsp;your&nbsp;debs:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># cd /var/cache/pbuilder/result/; dpkg-scanpackages . /dev/null | gzip -c -9 &gt; Packages.gz</div></div>

<p>Then add this to your <span class="geshifilter"><code class="geshifilter-text">sources.list</code></span></p>

<div class="geshifilter"><div class="apt_sources geshifilter-apt_sources" style="font-family:monospace;"><span class="kw1">deb</span> <span class="re0">file:///var/cache/pbuilder/result/</span> ./</div></div>

<p>Wohoo. Remember to watch out for those <em>security</em>&nbsp;holes&#8230;</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>I helped Robbster out on #clug today, building php4 for feisty (it&#8217;s been dropped after edgy, in favour of php5). If you want to install it, don&#8217;t care about security holes, and want to use the debs I created, add this line to your apt sources list, and go&nbsp;wild:</p>

<div class="geshifilter"><div class="apt_sources geshifilter-apt_sources" style="font-family:monospace;"><span class="kw1">deb</span> <span class="re0">http://ftp.leg.uct.ac.za/pub/stuff/tmp/php4-feisty</span> ./</div></div>

<p>If on the other hand you want to know how to do it (so when the next <span class="caps">PHP</span> security hole appears tomorrow, you can build the latest version <em>yourself</em>), read&nbsp;on:</p>

<p>I&#8217;ve never used <a href="http://www.netfort.gr.jp/~dancer/software/pbuilder-doc/pbuilder-doc.html">pbuilder</a> before, so it was&nbsp;fun:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># aptitude install pbuilder</div></div>

<p>Edit <code>/etc/pbuilderrc</code> to point to your closest mirror, and uncomment the <code>COMPONENTS</code>line (so that you get universe&nbsp;included)</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># pbuilder create</div></div>

<p>Now pbuilder is ready for work. Get the <a href="http://packages.debian.org/unstable/source/php4">latest sources from debian</a> (Download those 3 files at the end, dsc, orig.tar.gz and&nbsp;diff)</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># pbuilder build *.dsc</div></div>

<p>Sit back and&nbsp;watch&#8230;</p>

<p>When it&#8217;s done, you probably want to create a <a href="http://www.debian.org/doc/manuals/repository-howto/repository-howto#id2452849">trivial repository</a> of your&nbsp;debs:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;"># cd /var/cache/pbuilder/result/; dpkg-scanpackages . /dev/null | gzip -c -9 &gt; Packages.gz</div></div>

<p>Then add this to your <code>sources.list</code></p>

<div class="geshifilter"><div class="apt_sources geshifilter-apt_sources" style="font-family:monospace;"><span class="kw1">deb</span> <span class="re0">file:///var/cache/pbuilder/result/</span> ./</div></div>

<p>Wohoo. Remember to watch out for those <em>security</em>&nbsp;holes&#8230;</p>
    ]]></content>
  </entry>
</feed>
