port to last Mandaye version

This commit is contained in:
Jérôme Schneider 2014-12-09 11:46:58 +01:00
parent cdee447640
commit d7c82a091e
5 changed files with 27 additions and 2 deletions

View File

@ -9,7 +9,7 @@ X-Python-Version: current
Package: mandaye-meyzieu
Architecture: all
Depends: ${misc:Depends}, ${python:Depends},
python-mandaye (>= 0.8),
python-mandaye (>= 0.10.2),
python-beautifulsoup (>= 3.1),
python-crypto (>= 2.6),
python-lasso (>= 2.4.0),

View File

@ -1 +1,2 @@
debian/config.ini /etc/mandaye-meyzieu/
debian/mandaye_meyzieu_manager /usr/bin/

22
mandaye_meyzieu_manager Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
NAME=mandaye-meyzieu
MANAGER="/usr/lib/$NAME/manager.py --config=/etc/$NAME/config.ini"
# check user
if test x$1 = x"--forceuser"
then
shift
elif test $(id -un) != "$NAME"
then
echo "error: must use $0 with user ${NAME}"
exit 1
fi
if test $# -eq 0
then
python ${MANAGER} --help
exit 1
fi
python ${MANAGER} "$@"

View File

@ -41,7 +41,7 @@ case "$1" in
if [ -z "$2" ]; then
echo "Please create your database :"
echo "su $USER -p -c '/usr/bin/rp_meyzieu_manager --createdb'"
echo "su $USER -p -c '/usr/bin/mandaye_meyzieu_manager --createdb'"
fi
;;

2
rules
View File

@ -7,4 +7,6 @@ BUILD_DIR=$(CURDIR)/debian/mandaye-meyzieu
override_dh_install:
dh_install
mv $(BUILD_DIR)/usr/bin/server.py $(BUILD_DIR)/usr/lib/mandaye-meyzieu/server.py
mv $(BUILD_DIR)/usr/bin/manager.py $(BUILD_DIR)/usr/lib/mandaye-meyzieu/manager.py
cp -R rp_meyzieu/static $(BUILD_DIR)/usr/share/mandaye-meyzieu