Index: openacs-dist/create-package.sh =================================================================== RCS file: /usr/local/cvsroot/openacs-dist/create-package.sh,v diff -u -N -r1.1 -r1.2 --- openacs-dist/create-package.sh 12 Sep 2006 14:02:48 -0000 1.1 +++ openacs-dist/create-package.sh 13 Sep 2006 22:41:25 -0000 1.2 @@ -1,7 +1,21 @@ #!/bin/bash -# todo: set permissions on files properly -# todo: check whether openacs or .lrn is in /var/www +# Written by Dirk Gomez (openacs@dirkgomez.de) on 11-Sep-2006 +# License: GPL +if ! -d debian/debian/var/www/www ; then + echo "You need to put a .LRN or OpenACS checkout into debian/debian/var/www/. " + exit 1 +fi + +echo "Setting the permissions on the package shell scripts" +chmod 755 debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm +chown -R root:root debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm + +echo "Setting OpenACS' ownership to www-data. We may want to set proper permissions here in the future." +chown -R www-data:www-data debian/debian/var/www +rm debian/debian/var/www/put-your-distro-here + +echo "Building the debian package" dpkg-deb --build debian mv debian.deb dotlrn-2.2.0-0.deb