ADDED mttroot/mtt/bin/mtt_deb2cd Index: mttroot/mtt/bin/mtt_deb2cd ================================================================== --- /dev/null +++ mttroot/mtt/bin/mtt_deb2cd @@ -0,0 +1,62 @@ +#! /bin/sh + +# Script to create a CD-ready directory from .deb package +# output from script will be a directory which should be copied to / of CDROM +# user of CDROM should run "apt-cdrom add" + +usage () +{ + cat < .disk/info +tmpfile=`mktemp mtt_deb2cd.tmp.XXXXXXXXXX` +echo "Scanning .deb packages" +dpkg-scanpackages . ${tmpfile} | gzip > ./Packages.gz +rm ${tmpfile} +# create Redhat package +echo "Creating .rpm, please wait ..." +alien --to-rpm ${debfile} +chown -R ${my_user:-"root"}.${my_group:-"root"} . +cd .. + +echo "Directory created (${tmpdir}) - copy this to iso9660 image as /" + +exit 0