Skip to content

Commit

Permalink
- srss_install.sh: clean more stuff up in purge + fixed the KDEPS Dep…
Browse files Browse the repository at this point in the history
…ends was a ()-shubshell!
  • Loading branch information
CowboyTim committed Mar 26, 2012
1 parent 6a5fc11 commit 44c9d66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion srss_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ for V in `ls /usr/src|grep 'linux-headers'|grep -v common`; do
done
done
rm src.tgz
echo $KDEPS > $tmproot/kdeps
)

echo "Making empty dirs..."
Expand Down Expand Up @@ -297,6 +298,8 @@ fakeroot tar czf $tmpdir/srss-${version}-${rev}.tgz *
echo "Making .deb..."
fakeroot alien --version=${version} --bump=$rev -g -c -d $tmpdir/srss-${version}-${rev}.tgz

KDEPS=`cat $tmproot/kdeps`

mv $tmproot/postbak/* $tmpdir/srss-${version}/debian/
cat > $tmpdir/srss-${version}/debian/control <<EOctrl
Source: srss
Expand All @@ -318,7 +321,7 @@ Description: SunRay server software
EOctrl
cat > $tmpdir/srss-${version}/debian/prerm <<EOrm
#!/bin/sh
rm -rf /var/dt /var/opt/SUNWut /var/log/SUNWut /etc/opt/SUNWut /var/lib/gdm
rm -rf /var/dt /var/opt/SUNWut /var/log/SUNWut /etc/opt/SUNWut /var/lib/gdm /etc/gdm/custom.conf /srv/tftp/Corona* /srv/tftp/SunRay*
EOrm
(cd $tmpdir/srss-${version}/ && fakeroot debian/rules binary)

Expand Down

0 comments on commit 44c9d66

Please sign in to comment.