1 #!/usr/bin/make -f 2 3 export DH_OPTIONS=-v 4 export DH_VERBOSE=1 5 6 override_dh_auto_install: 7 # Test to see if we are building for a UCS platform 8 if [ -x "$$(which univention-install-config-registry 2>/dev/null)" ]; then \ 9 cp -av $(CURDIR)/ucs/conffiles/ $(CURDIR)/. ; \ 10 cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-config-registry $(CURDIR)/debian/ ; \ 11 cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-config-registry-categories $(CURDIR)/debian/ ; \ 12 cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-config-registry-variables $(CURDIR)/debian/ ; \ 13 cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-service $(CURDIR)/debian/ ; \ 14 cp -av $(CURDIR)/ucs/debian/kolab-mta.univention-config-registry $(CURDIR)/debian/ ; \ 15 cp -av $(CURDIR)/ucs/debian/kolab-mta.univention-config-registry-categories $(CURDIR)/debian/ ; \ 16 cp -av $(CURDIR)/ucs/debian/kolab-mta.univention-config-registry-variables $(CURDIR)/debian/ ; \ 17 cp -av $(CURDIR)/ucs/debian/kolab-ucs.univention-config-registry $(CURDIR)/debian/ ; \ 18 cp -av $(CURDIR)/ucs/debian/kolab-webclient.univention-config-registry $(CURDIR)/debian/ ; \ 19 cp -av $(CURDIR)/ucs/debian/kolab-webclient.univention-config-registry-variables $(CURDIR)/debian/ ; \ 20 univention-install-config-registry --verbose ; \ 21 cp -av $(CURDIR)/ucs/kolab-imap-join-script.sh $(CURDIR)/81kolab-imap.inst ; \ 22 cp -av $(CURDIR)/ucs/kolab-imap-passwd-change.sh $(CURDIR)/kolab-imap ; \ 23 cp -av $(CURDIR)/ucs/debian/kolab-imap.dirs $(CURDIR)/debian/kolab-imap.dirs ; \ 24 cp -av $(CURDIR)/ucs/debian/kolab-imap.install $(CURDIR)/debian/kolab-imap.install ; \ 25 cp -av $(CURDIR)/ucs/debian/kolab-imap.postinst $(CURDIR)/debian/kolab-imap.postinst ; \ 26 cp -av $(CURDIR)/ucs/debian/kolab-imap.preinst $(CURDIR)/debian/kolab-imap.preinst ; \ 27 cp -av $(CURDIR)/ucs/debian/kolab-imap.prerm $(CURDIR)/debian/kolab-imap.prerm ; \ 28 cp -av $(CURDIR)/ucs/kolab-mta-join-script.sh $(CURDIR)/67kolab-mta.inst ; \ 29 cp -av $(CURDIR)/ucs/kolab-mta-passwd-change.sh $(CURDIR)/kolab-mta ; \ 30 cp -av $(CURDIR)/ucs/debian/kolab-mta.dirs $(CURDIR)/debian/kolab-mta.dirs ; \ 31 cp -av $(CURDIR)/ucs/debian/kolab-mta.install $(CURDIR)/debian/kolab-mta.install ; \ 32 cp -av $(CURDIR)/ucs/debian/kolab-mta.postinst $(CURDIR)/debian/kolab-mta.postinst ; \ 33 cp -av $(CURDIR)/ucs/debian/kolab-mta.preinst $(CURDIR)/debian/kolab-mta.preinst ; \ 34 cp -av $(CURDIR)/ucs/kolab-ucs-join-script.sh $(CURDIR)/65kolab-ucs.inst ; \ 35 cp -av $(CURDIR)/ucs/kolab-ucs-passwd-change.sh $(CURDIR)/kolab-ucs ; \ 36 cp -av $(CURDIR)/ucs/debian/kolab-ucs.dirs $(CURDIR)/debian/kolab-ucs.dirs ; \ 37 cp -av $(CURDIR)/ucs/debian/kolab-ucs.install $(CURDIR)/debian/kolab-ucs.install ; \ 38 cp -av $(CURDIR)/ucs/debian/kolab-ucs.postinst $(CURDIR)/debian/kolab-ucs.postinst ; \ 39 cp -av $(CURDIR)/ucs/debian/kolab-ucs.preinst $(CURDIR)/debian/kolab-ucs.preinst ; \ 40 cp -av $(CURDIR)/ucs/debian/kolab-ucs.prerm $(CURDIR)/debian/kolab-ucs.prerm ; \ 41 cp -av $(CURDIR)/ucs/kolab-webclient-join-script.sh $(CURDIR)/85kolab-webclient.inst ; \ 42 cp -av $(CURDIR)/ucs/kolab-webclient-passwd-change.sh $(CURDIR)/kolab-webclient ; \ 43 cp -av $(CURDIR)/ucs/kolab_ucs_logo.png $(CURDIR)/. ; \ 44 cp -av $(CURDIR)/ucs/debian/kolab-webclient.dirs $(CURDIR)/debian/kolab-webclient.dirs ; \ 45 cp -av $(CURDIR)/ucs/debian/kolab-webclient.install $(CURDIR)/debian/kolab-webclient.install ; \ 46 cp -av $(CURDIR)/ucs/debian/kolab-webclient.postinst $(CURDIR)/debian/kolab-webclient.postinst ; \ 47 for pkg in kolab kolab-imap kolab-mta kolab-webclient; do \ 48 echo "ucs:Depends=kolab-ucs,roundcubemail-skin-kolab" >> $(CURDIR)/debian/$${pkg}.substvars ; \ 49 done ; \ 50 echo "ucs:Depends=kolab-ucs" >> $(CURDIR)/debian/kolab-ldap.substvars ; \ 51 echo "ucs:Pre-Depends=kolab-schema" >> $(CURDIR)/debian/kolab-ldap.substvars ; \ 52 echo "ucs:Conflicts=univention-mail-postfix,univention-mail-postfix-forward,univention-mail-postfix-kolab2" >> $(CURDIR)/debian/kolab-mta.substvars ; \ 53 echo "ucs:Provides=univention-mail-postfix,univention-mail-postfix-forward,univention-mail-postfix-kolab2" >> $(CURDIR)/debian/kolab-mta.substvars ; \ 54 echo "ucs:Replaces=univention-mail-postfix,univention-mail-postfix-forward,univention-mail-postfix-kolab2" >> $(CURDIR)/debian/kolab-mta.substvars ; \ 55 else \ 56 echo "nonucs:Depends=kolab-webadmin" >> $(CURDIR)/debian/kolab.substvars ; \ 57 fi 58 dh_auto_install 59 60 %: 61 dh $@