#!/bin/bash name=idesk version=0.7.5 arch=i586 build=2 tag=vl59 pkg=$PWD/${name}-${version}/PKG PWD=$(pwd) mkdir -p ${pkg}/install cp $PWD/slack-desc $pkg/install/slack-desc # now copy the files for the new users mkdir -p ${pkg}/etc/skel cp $PWD/.ideskrc ${pkg}/etc/skel/ cp -a $PWD/.idesktop ${pkg}/etc/skel/ chown -R root:root ${pkg}/etc/skel/.idesk* tar xf $PWD/${name}-${version}.tar.bz2 cd ${name}-${version} ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/man make make DESTDIR=${pkg} install # add the settings for the exising users echo '# copy the config files to the right place for i in $(ls /home|grep -v ftp); do cp /etc/skel/.ideskrc /home/$i cp -a /etc/skel/.idesktop /home/$i chown -r $(basename $i) /home/$i/.idesktop chown $(basename $i) /home/$i/.ideskrc done '>> ${pkg}/install/doinst.sh cd ${pkg} makeslapt --tlz $PWD/${name}-${version}-${arch}-${build}${tag}.tlz exit 0