port to last Mandaye version
This commit is contained in:
parent
cdee447640
commit
d7c82a091e
2
control
2
control
|
@ -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),
|
||||
|
|
1
install
1
install
|
@ -1 +1,2 @@
|
|||
debian/config.ini /etc/mandaye-meyzieu/
|
||||
debian/mandaye_meyzieu_manager /usr/bin/
|
||||
|
|
|
@ -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} "$@"
|
2
postinst
2
postinst
|
@ -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
2
rules
|
@ -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
|
||||
|
|
Reference in New Issue