[Python-apps-commits] r7037 - in packages/fookebox/trunk/debian (control postinst rules)
cockroach-guest at users.alioth.debian.org
cockroach-guest at users.alioth.debian.org
Sat Apr 30 17:03:24 UTC 2011
Date: Saturday, April 30, 2011 @ 17:03:12
Author: cockroach-guest
Revision: 7037
Moved permissions stuff from postinst to rules, updated standards version
Modified:
packages/fookebox/trunk/debian/control
packages/fookebox/trunk/debian/postinst
packages/fookebox/trunk/debian/rules
Modified: packages/fookebox/trunk/debian/control
===================================================================
--- packages/fookebox/trunk/debian/control 2011-04-30 16:57:04 UTC (rev 7036)
+++ packages/fookebox/trunk/debian/control 2011-04-30 17:03:12 UTC (rev 7037)
@@ -4,7 +4,7 @@
Maintainer: Stefan Ott <stefan at ott.net>
Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
Build-Depends: debhelper (>= 7.0.50), python, python-support, python-setuptools, python-pastescript
-Standards-Version: 3.9.1
+Standards-Version: 3.9.2
Homepage: http://fookebox.googlecode.com/
Vcs-Svn: svn://svn.debian.org/python-apps/packages/fookebox/trunk
Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/fookebox
Modified: packages/fookebox/trunk/debian/postinst
===================================================================
--- packages/fookebox/trunk/debian/postinst 2011-04-30 16:57:04 UTC (rev 7036)
+++ packages/fookebox/trunk/debian/postinst 2011-04-30 17:03:12 UTC (rev 7037)
@@ -8,17 +8,7 @@
# only on new installations and upgrades from pre-0.5.0:
if [ "$2" = "" ] || \
dpkg --compare-versions "$2" lt-nl "0.5.0-1" ; then
- chown -R :www-data /var/cache/fookebox
- chmod -R 0770 /var/cache/fookebox
- chown :www-data /var/lib/fookebox
- chmod 0770 /var/lib/fookebox
-
- chown :www-data /etc/fookebox/apache.conf
- chown :www-data /etc/fookebox/fookebox.wsgi
- chown :www-data /etc/fookebox/config.ini
- chmod 0640 /etc/fookebox/config.ini
-
# Create database
python /usr/share/doc/fookebox/examples/create-database.py
chown :www-data /var/lib/fookebox/fookebox.sqlite
Modified: packages/fookebox/trunk/debian/rules
===================================================================
--- packages/fookebox/trunk/debian/rules 2011-04-30 16:57:04 UTC (rev 7036)
+++ packages/fookebox/trunk/debian/rules 2011-04-30 17:03:12 UTC (rev 7037)
@@ -11,3 +11,17 @@
rm debian/fookebox/usr/share/locale/fookebox.pot
rm debian/fookebox/usr/share/locale/de/LC_MESSAGES/fookebox.po
+
+override_dh_fixperms:
+ dh_fixperms
+
+ chown -R :www-data debian/fookebox/var/cache/fookebox
+ chmod -R 0770 debian/fookebox/var/cache/fookebox
+
+ chown :www-data debian/fookebox/var/lib/fookebox
+ chmod 0770 debian/fookebox/var/lib/fookebox
+
+ chown :www-data debian/fookebox/etc/fookebox/apache.conf
+ chown :www-data debian/fookebox/etc/fookebox/fookebox.wsgi
+ chown :www-data debian/fookebox/etc/fookebox/config.ini
+ chmod 0640 debian/fookebox/etc/fookebox/config.ini
More information about the Python-apps-commits
mailing list