This guide is for rebuilding IPlinux from scratch, without using any repositories. You probably want the Porting instead.

host/tools

  1. Install the Debian Lenny chroot (all the following steps are to be performed in this chroot):
    sudo debootstrap lenny ip http://ftp.de.debian.org/debian
    sudo sh -c "echo LANG=C >> ip/etc/bash.bashrc"
    sudo chroot ip /bin/bash
    
  2. Install a few development packages:
    apt-get update
    apt-get install git-core build-essential dpkg-cross debhelper pkg-config po4a libncursesw5-dev zlib1g-dev libbz2-dev flex libselinux1-dev libio-string-perl quilt autoconf automake cvs gawk dpatch texinfo sharutils libgmp3-dev libmpfr-dev lsb-release realpath cdbs docbook-to-man sudo dbs
    
  3. Create a new user account and give it a passwordless sudo. It's a chroot, but your gut feeling probably won't let you compile as root anyway:
    useradd -m build
    echo 'build ALL=NOPASSWD: ALL' >> /etc/sudoers
    #echo 'export DEB_BUILD_OPTIONS="parallel=3"' >> /home/build/.bashrc
    su - build
    
  1. Clone our dpkg, dpkg-cross, debootstrap and toolchain-package gits, build and install them (using regular tools):
    for i in dpkg dpkg-cross debootstrap toolchain-package; do
      git clone git://git.iplinux.org/$i.git
    done
    
    for i in dpkg dpkg-cross toolchain-package debootstrap; do
      (cd $i; dpkg-buildpackage -b -us -uc)
    done
    sudo dpkg -i dpkg_*.deb dpkg-dev_*.deb toolchain-package_*.deb dpkg-cross_*.deb libdebian-dpkgcross-perl_*.deb debootstrap_*.deb