compile language files for the debian package

This commit is contained in:
lars 2006-11-28 13:49:24 +00:00
parent f514c53bfd
commit 0ccd3f1a41
2 changed files with 5 additions and 1 deletions

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: cryptobox
Section: admin
Priority: extra
Maintainer: Lars Kruse <devel@sumpfralle.de>
Build-Depends: debhelper (>= 5.0.38), dpatch, python-all-dev (>= 2.4), python-central (>= 0.5.6)
Build-Depends: debhelper (>= 5.0.38), dpatch, python-all-dev (>= 2.4), python-central (>= 0.5.6), gettext
XS-Python-Version: >= 2.4
Standards-Version: 3.7.2

4
debian/rules vendored
View File

@ -31,6 +31,7 @@ clean-patched:
python setup.py clean
rm -f build-stamp
rm -rf build
find -type f -name '*.mo' -print0 | xargs -0 rm -f
find -type f -name '*.py[co]' -print0 | xargs -0 rm -f
rm -f MANIFEST
dh_clean
@ -50,6 +51,9 @@ install: build
dh_clean -k
dh_installdirs
python setup.py install --root=$(DEB_BUILD_DIR)
# compile language files
find $(DEB_BUILD_DIR) -type f -name \*.po | while read pofile; \
do msgfmt -o "$${pofile%.po}.mo" "$$pofile"; rm "$$pofile"; done
# the cryptobox is a webserver - it should be installed in /usr/sbin
mv $(DEB_BUILD_DIR)/usr/bin/CryptoBoxWebserver $(DEB_BUILD_DIR)/usr/sbin/
mv $(DEB_BUILD_DIR)/usr/bin/CryptoBoxRootActions $(DEB_BUILD_DIR)/usr/sbin/