|
|
|
@ -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/
|
|
|
|
|