cd /usr/src/ rm -rf /usr/src/bind/ apt-get -t unstable -y build-dep bind9 apt-get -t unstable source bind9 mkdir /usr/src/bind/ mv bind9* /usr/src/bind/ wget 'http://projects.navynet.it/DLZ/ctrix_dlz_9.3.1-1.patch.gz' mv ctrix_dlz_9.3.1-1.patch.gz /usr/src/bind/ wget 'http://team.lea-linux.org/prae/dlz/N1N_extended_tags_DB_SQL_LDAP.patch' mv N1N_extended_tags_DB_SQL_LDAP.patch /usr/src/bind/ gunzip /usr/src/bind/ctrix_dlz_9.3.1-1.patch.gz cd /usr/src/bind/bind9-9.3.1/ patch -p1 < ../ctrix_dlz_9.3.1-1.patch patch -p0 < ../N1N_extended_tags_DB_SQL_LDAP.patch echo 'bind9 (1:9.3.1-3) unstable; urgency=low' > /tmp/.buffer echo '' >> /tmp/.buffer echo ' * Adding DLZ Patch and N1N Patch' >> /tmp/.buffer echo '' >> /tmp/.buffer echo ' -- Benjamin GIGON Mar, 11 Apr 2005 18:14:00 -0700' >> /tmp/.buffer echo '' >> /tmp/.buffer cat /tmp/.buffer /usr/src/bind/bind9-9.3.1/debian/changelog > /tmp/.changelog mv /tmp/.changelog /usr/src/bind/bind9-9.3.1/debian/changelog cd /usr/src/bind/bind9-9.3.1/debian/ rm rules wget "http://team.lea-linux.org/prae/dlz/debian/sources/bind-9.3.1/debian/rules" chmod +x /usr/src/bind/bind9-9.3.1/debian/rules cd /usr/src/bind/ rm -f N1N_extended_tags_DB_SQL_LDAP.patch bind9_9.3.1-2.diff.gz bind9_9.3.1-2.dsc bind9_9.3.1.orig.tar.gz ctrix_dlz_9.3.1-1.patch cd /usr/src/bind/bind9-9.3.1/ dpkg-buildpackage -rfakeroot -b -nc dpkg-buildpackage -rfakeroot -S cd .. mkdir /opt/bind/ rm -rf /opt/bind/* mv *.deb /opt/bind/ mv *.gz /opt/bind/ mv *.changes /opt/bind/ mv *.dsc /opt/bind/ cd /opt/bind dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz