Commit d80c4b80 authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[debian] Update packaging

Use dh_python2 instead of hand-rolling maintainer script
parent fcafe0af6449
......@@ -2,13 +2,18 @@ Source: cubicweb-trustedauth
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends: debhelper (>= 5.0.37.1), python (>=2.4), python-dev (>=2.4)
Build-Depends: debhelper (>= 7), python (>= 2.6.5)
Standards-Version: 3.8.0
Homepage: http://www.cubicweb.org/project/cubicweb-trustedauth
X-Python-Version: >= 2.6
Package: cubicweb-trustedauth
Architecture: all
Depends: cubicweb-common (>= 3.9.3), python-crypto
Depends:
cubicweb-common (>= 3.17.0),
python-crypto,
${misc:Depends},
${python:Depends},
Description: authentication plugin for CubicWeb instances behind a reverse proxy
CubicWeb is a semantic web application framework.
.
......
#!/bin/sh -e
delete_pyo_pyc () {
find /usr/share/cubicweb/cubes/trustedauth -name "*.pyc" | xargs rm -f
find /usr/share/cubicweb/cubes/trustedauth -name "*.pyo" | xargs rm -f
}
case "$1" in
failed-upgrade|abort-install|abort-upgrade|disappear)
;;
upgrade)
delete_pyo_pyc
;;
remove)
delete_pyo_pyc
;;
purge)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
#DEBHELPER#
......@@ -38,6 +38,7 @@ binary-indep: build install
dh_installdocs -i
dh_installman -i
dh_link -i
dh_python2 -i /usr/share/cubicweb
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment