more debian packaging fixes

This commit is contained in:
SJ 2013-10-13 22:29:45 +02:00
parent 5a695640eb
commit 3ad6c3bc66
4 changed files with 11 additions and 2 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
piler (0.1.25-2) UNRELEASED; urgency=low
piler (0.1.25-3) UNRELEASED; urgency=low
* Improved deb package of piler build 845.

2
debian/postinst vendored
View File

@ -31,6 +31,8 @@ fix_permissions() {
chmod +s /usr/local/bin/pilerexport /usr/local/bin/pilerpurge /usr/local/bin/pilerimport /usr/local/bin/pilerget /usr/local/bin/pileraget /usr/local/bin/reindex
chgrp piler /usr/local/etc/piler.conf
chmod 640 /usr/local/etc/piler.conf
chown piler:piler /var/piler/imap /var/piler/sphinx /var/piler/stat
}

View File

@ -27,6 +27,7 @@ INSTALL = @INSTALL@
all:
sed -e 's%pidfile=.*%pidfile=$(localstatedir)/run/piler/piler.pid%g' \
-e 's%iv=.*%iv=@iv@%g' \
-e '%pemfile=%pemfile=$(sysconfdir)/piler.pem%g' \
-e 's%workdir=.*%workdir=$(localstatedir)/piler/tmp%g' < $(srcdir)/example.conf | grep -v ^\; | grep '=' | sort > $(srcdir)/piler.conf
install:

View File

@ -365,6 +365,13 @@ execute_post_install_tasks() {
chmod 755 $LOCALSTATEDIR/piler/stat
if [ -d webui ]; then webui_install; fi
}
webui_install() {
echo -n "Copying www files to $DOCROOT... "
mkdir -p $DOCROOT || exit 1
@ -409,7 +416,6 @@ execute_post_install_tasks() {
echo "?>" >> $DOCROOT/config-site.php
echo "Done."
}