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