debian/rules, one of the files that makes a debian package, how apt. :)

We've been rolling out more and more linux boxes at work (another 10 or so
to be added soon) and I've started using more features that makes 
debian so great.

First step was to debianise some locally written programs. It wasn't too hard,
just had to follow the "Debian New Maintainers' Guide".

Next was to set up a local debian package archive so I can apt-get local
packages. The debian FAQ 10.9, has the answer. Basically

mkdir -p  /var/www/debian/dists/local/main/binary-i386/local
mv local-package.deb /var/www/debian/dists/local/main/binary-i386/local
cd /var/www/debian
dpkg-scanpackages dists/local/main/binary-i386 /dev/null  \
  >dists/local/main/binary-i386/Packages
gzip -9 -f dists/local/main/binary-i386/Packages

Then you add to /etc/apt/sources.list something like
deb http://debarchive/debian local main

I made some task packages that installs a standard set of packages for
what ever job the box will be doing, as well as my favourite editor,
snmpd, ssh, etc. (added them to the local archives, of cause.) 

So now when I need to build a new box, I just apt-get or tasksel one of
my tasks and I have all the packages installed for the job. Making task 
packages are really quick and easy, I just copied how one was done.

I compile all my kernels on the local debian archive box using make-kpkg 
and add the kernel to the local package archive and apt-get it. I set the 
EXTRAVERSION variable in the Makefile to the host name the kernel is going
to be installed on.

I'm thinking about making some deb packages that makes some changes
to config files that I need to edit on every box I install. Nothing too
fancy, just things like echo "alias ls='ls --color'" >>/etc/bash.bashrc
Its nice to have a standard environment on all boxes.

debian/rules, just had to let you know. :)

-- 
        chesty


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to