fix debian files
to work again (hopefully). Also: - few minor tweaks for py3 - added psi facility - split secop-gui into separate package, so secop-core doesn't need QT Change-Id: I457d3c9c60c78feb40e15c2fb153ce0d3491d1e8 Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/21327 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
40
debian/rules
vendored
40
debian/rules
vendored
@ -2,20 +2,42 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
export DH_VERBOSE=1
|
||||
|
||||
DEBPYTHON_DEFAULT=2.7
|
||||
DEBPYTHON_SUPPORTED=2.7
|
||||
DEBPYTHON_DEFAULT=3.6
|
||||
DEBPYTHON_SUPPORTED=3.6
|
||||
|
||||
export DEBPYTHON_DEFAULT DEBPYTHON_SUPPORTED
|
||||
|
||||
override_dh_install:
|
||||
dh_install --list-missing
|
||||
@find debian/tmp -name '*.pyc' -exec rm \{\} \;
|
||||
@find debian/tmp -type d -name '__pycache__' | xargs rmdir
|
||||
|
||||
override_dh_installinit:
|
||||
if [ "$$(lsb_release -s -c)" = "wheezy" ] ; then \
|
||||
dh_installinit --onlyscripts --name=secop-server --no-start; \
|
||||
fi
|
||||
@echo "regen debian/secop-core.install"
|
||||
@echo "usr/bin/secop-server" > debian/secop-core.install
|
||||
@echo "usr/bin/secop-console" >> debian/secop-core.install
|
||||
@echo "etc/init.d/secop-server" >> debian/secop-core.install
|
||||
@(cd debian/tmp; find . -name '*.py'| grep -v gui|grep /secop/; \
|
||||
find . | grep egg-info; \
|
||||
find . | grep RELEASE-VERSION; \
|
||||
find ./lib; \
|
||||
find ./var ) | \
|
||||
while read f;do echo $${f#./};done | cat >> debian/secop-core.install
|
||||
|
||||
@echo "regen debian/secop-gui.install"
|
||||
@echo "usr/bin/secop-gui" > debian/secop-gui.install
|
||||
@echo "usr/bin/secop-cfg-editor" >> debian/secop-gui.install
|
||||
@(cd debian/tmp; find . |grep gui|grep /secop/) | \
|
||||
while read f;do echo $${f#./};done | cat >> debian/secop-gui.install
|
||||
|
||||
@for facility in demo ess mlz psi;do \
|
||||
echo "regen debian/secop-$${facility}.install"; \
|
||||
(cd debian/tmp; find . -name '*.py'|grep /secop_$${facility}/) | \
|
||||
while read f;do echo $${f#./};done | cat > debian/secop-$${facility}.install; \
|
||||
done
|
||||
|
||||
dh_install -i -O--buildsystem=pybuild
|
||||
dh_missing --fail-missing
|
||||
|
||||
%:
|
||||
dh $@ --with python2 --buildsystem=python_distutils
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
Reference in New Issue
Block a user