| |
1 |
1 |
|
| |
2 |
2 |
|
| |
3 |
3 |
|
| |
4 |
4 |
|
| |
5 |
5 |
|
| |
6 |
6 |
if [ ! -d debian/debian/var/www/www ]; then |
| |
7 |
7 |
echo "You need to put a .LRN or OpenACS checkout into debian/debian/var/www/. " |
| |
8 |
8 |
exit 1 |
| |
9 |
9 |
fi |
| |
10 |
10 |
|
| |
11 |
11 |
echo "Setting the permissions on the package shell scripts" |
| |
12 |
12 |
chmod 755 debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm |
| |
13 |
13 |
chown -R root:root debian/debian/DEBIAN/control debian/debian/DEBIAN/postinst debian/debian/DEBIAN/prerm |
| |
14 |
14 |
|
| |
15 |
15 |
echo "Setting OpenACS' ownership to www-data. We may want to set proper permissions here in the future." |
| |
16 |
16 |
chown -R www-data:www-data debian/debian/var/www |
| |
17 |
17 |
rm debian/debian/var/www/put-your-distro-here |
| |
18 |
18 |
|
| |
19 |
19 |
echo "Building the debian package" |
| |
|
20 |
pushd debian |
| |
20 |
21 |
dpkg-deb --build debian |
| |
21 |
|
mv debian.deb dotlrn-2.2.0-0.deb |
| |
|
22 |
mv debian.deb ../dotlrn-2.2.0-0.deb |
| |
|
23 |
popd |