1 #!/usr/bin/make -f 2 # -*- makefile -*- 3 # Sample debian/rules that uses debhelper. 4 # This file was originally written by Joey Hess and Craig Small. 5 # As a special exception, when this file is copied by dh-make into a 6 # dh-make output file, you may use that output file without restriction. 7 # This special exception was added by Craig Small in version 0.37 of dh-make. 8 9 # Uncomment this to turn on verbose mode. 10 export DH_VERBOSE=1 11 12 %: 13 dh $@ --with python2 --with autotools-dev --with autoreconf 14 15 override_dh_auto_test: 16 dh_auto_test || echo ???ignoring test failure??? 17 18 override_dh_install: 19 #dh_install --list-missing 20 if [ -x "$$(which univention-install-config-registry 2>/dev/null)" ]; then \ 21 echo "usr/lib*/python*/*-packages/pykolab/plugins/sievemgmt/__init__.py" >> $(CURDIR)/debian/pykolab.install ; \ 22 echo "usr/lib*/python*/*-packages/pykolab/cli/sieve/" >> $(CURDIR)/debian/kolab-cli.install ; \ 23 echo "ucs:Depends=python-sievelib" >> $(CURDIR)/debian/pykolab.substvars ; \ 24 echo "ucs:Depends=python-sievelib" >> $(CURDIR)/debian/kolab-cli.substvars ; \ 25 fi 26 dh_install 27 if [ -x "$$(which univention-install-config-registry 2>/dev/null)" ]; then \ 28 mkdir -p $(CURDIR)/debian/pykolab/usr/share/pyshared/pykolab/ucs/ ; \ 29 cp -a ucs/listener.py $(CURDIR)/debian/pykolab/usr/share/pyshared/pykolab/ucs/listener.py ; \ 30 fi 31