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