dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22771
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11049: Fix up file permissions before assembling deb
------------------------------------------------------------
revno: 11049
committer: Bob Jolliffe <bobjolliffe@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-05-28 14:41:20 +0100
message:
Fix up file permissions before assembling deb
modified:
tools/dhis2-tools-deb/assemble.sh
tools/dhis2-tools-deb/pkg/DEBIAN/control*
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'tools/dhis2-tools-deb/assemble.sh'
--- tools/dhis2-tools-deb/assemble.sh 2013-05-28 12:06:12 +0000
+++ tools/dhis2-tools-deb/assemble.sh 2013-05-28 13:41:20 +0000
@@ -1,10 +1,26 @@
#!/bin/bash
+# first fixing up the horrible mess bazzar makes of file permissions
+find ./pkg -type d -exec chmod 0755 {} \;
+find ./pkg -type f -exec chmod 0644 {} \;
+
+chmod 0755 pkg/usr/bin/*
+chmod 0700 pkg/usr/share/dhis2-tools/skel/backups/
+chmod 0644 pkg/DEBIAN/conffiles
+chmod 0755 pkg/DEBIAN/postinst
+chmod 0755 pkg/DEBIAN/preinst
+chmod 0755 pkg/DEBIAN/postrm
+chmod 0440 pkg/etc/sudoers.d/dhis2
+chmod 0755 pkg/usr/share/dhis2-tools/skel/bin/setenv.sh
+
+# clean up any trash backup files
cd ./pkg
find . -iname *~ -exec rm '{}' ';'
+
+# generate the md5sums
find . -type f ! -regex '.*.hg.*' ! -regex '.*?debian-binary.*' ! -regex '.*?DEBIAN.*' -printf '%P ' | xargs md5sum > DEBIAN/md5sums
chmod 644 DEBIAN/md5sums
cd ..
+# assemble the deb package
fakeroot dpkg -b ./pkg $1
-
=== modified file 'tools/dhis2-tools-deb/pkg/DEBIAN/control' (properties changed: +x to -x)