1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debian/rules Sat Feb 22 01:05:35 2014 +0100
1.3 @@ -0,0 +1,61 @@
1.4 +#!/usr/bin/make -f
1.5 +
1.6 +export DH_OPTIONS=-v
1.7 +export DH_VERBOSE=1
1.8 +
1.9 +override_dh_auto_install:
1.10 + # Test to see if we are building for a UCS platform
1.11 + if [ -x "$$(which univention-install-config-registry 2>/dev/null)" ]; then \
1.12 + cp -av $(CURDIR)/ucs/conffiles/ $(CURDIR)/. ; \
1.13 + cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-config-registry $(CURDIR)/debian/ ; \
1.14 + cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-config-registry-categories $(CURDIR)/debian/ ; \
1.15 + cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-config-registry-variables $(CURDIR)/debian/ ; \
1.16 + cp -av $(CURDIR)/ucs/debian/kolab-imap.univention-service $(CURDIR)/debian/ ; \
1.17 + cp -av $(CURDIR)/ucs/debian/kolab-mta.univention-config-registry $(CURDIR)/debian/ ; \
1.18 + cp -av $(CURDIR)/ucs/debian/kolab-mta.univention-config-registry-categories $(CURDIR)/debian/ ; \
1.19 + cp -av $(CURDIR)/ucs/debian/kolab-mta.univention-config-registry-variables $(CURDIR)/debian/ ; \
1.20 + cp -av $(CURDIR)/ucs/debian/kolab-ucs.univention-config-registry $(CURDIR)/debian/ ; \
1.21 + cp -av $(CURDIR)/ucs/debian/kolab-webclient.univention-config-registry $(CURDIR)/debian/ ; \
1.22 + cp -av $(CURDIR)/ucs/debian/kolab-webclient.univention-config-registry-variables $(CURDIR)/debian/ ; \
1.23 + univention-install-config-registry --verbose ; \
1.24 + cp -av $(CURDIR)/ucs/kolab-imap-join-script.sh $(CURDIR)/81kolab-imap.inst ; \
1.25 + cp -av $(CURDIR)/ucs/kolab-imap-passwd-change.sh $(CURDIR)/kolab-imap ; \
1.26 + cp -av $(CURDIR)/ucs/debian/kolab-imap.dirs $(CURDIR)/debian/kolab-imap.dirs ; \
1.27 + cp -av $(CURDIR)/ucs/debian/kolab-imap.install $(CURDIR)/debian/kolab-imap.install ; \
1.28 + cp -av $(CURDIR)/ucs/debian/kolab-imap.postinst $(CURDIR)/debian/kolab-imap.postinst ; \
1.29 + cp -av $(CURDIR)/ucs/debian/kolab-imap.preinst $(CURDIR)/debian/kolab-imap.preinst ; \
1.30 + cp -av $(CURDIR)/ucs/debian/kolab-imap.prerm $(CURDIR)/debian/kolab-imap.prerm ; \
1.31 + cp -av $(CURDIR)/ucs/kolab-mta-join-script.sh $(CURDIR)/67kolab-mta.inst ; \
1.32 + cp -av $(CURDIR)/ucs/kolab-mta-passwd-change.sh $(CURDIR)/kolab-mta ; \
1.33 + cp -av $(CURDIR)/ucs/debian/kolab-mta.dirs $(CURDIR)/debian/kolab-mta.dirs ; \
1.34 + cp -av $(CURDIR)/ucs/debian/kolab-mta.install $(CURDIR)/debian/kolab-mta.install ; \
1.35 + cp -av $(CURDIR)/ucs/debian/kolab-mta.postinst $(CURDIR)/debian/kolab-mta.postinst ; \
1.36 + cp -av $(CURDIR)/ucs/debian/kolab-mta.preinst $(CURDIR)/debian/kolab-mta.preinst ; \
1.37 + cp -av $(CURDIR)/ucs/kolab-ucs-join-script.sh $(CURDIR)/65kolab-ucs.inst ; \
1.38 + cp -av $(CURDIR)/ucs/kolab-ucs-passwd-change.sh $(CURDIR)/kolab-ucs ; \
1.39 + cp -av $(CURDIR)/ucs/debian/kolab-ucs.dirs $(CURDIR)/debian/kolab-ucs.dirs ; \
1.40 + cp -av $(CURDIR)/ucs/debian/kolab-ucs.install $(CURDIR)/debian/kolab-ucs.install ; \
1.41 + cp -av $(CURDIR)/ucs/debian/kolab-ucs.postinst $(CURDIR)/debian/kolab-ucs.postinst ; \
1.42 + cp -av $(CURDIR)/ucs/debian/kolab-ucs.preinst $(CURDIR)/debian/kolab-ucs.preinst ; \
1.43 + cp -av $(CURDIR)/ucs/debian/kolab-ucs.prerm $(CURDIR)/debian/kolab-ucs.prerm ; \
1.44 + cp -av $(CURDIR)/ucs/kolab-webclient-join-script.sh $(CURDIR)/85kolab-webclient.inst ; \
1.45 + cp -av $(CURDIR)/ucs/kolab-webclient-passwd-change.sh $(CURDIR)/kolab-webclient ; \
1.46 + cp -av $(CURDIR)/ucs/kolab_ucs_logo.png $(CURDIR)/. ; \
1.47 + cp -av $(CURDIR)/ucs/debian/kolab-webclient.dirs $(CURDIR)/debian/kolab-webclient.dirs ; \
1.48 + cp -av $(CURDIR)/ucs/debian/kolab-webclient.install $(CURDIR)/debian/kolab-webclient.install ; \
1.49 + cp -av $(CURDIR)/ucs/debian/kolab-webclient.postinst $(CURDIR)/debian/kolab-webclient.postinst ; \
1.50 + for pkg in kolab kolab-imap kolab-mta kolab-webclient; do \
1.51 + echo "ucs:Depends=kolab-ucs" >> $(CURDIR)/debian/$${pkg}.substvars ; \
1.52 + done ; \
1.53 + echo "ucs:Depends=kolab-ucs" >> $(CURDIR)/debian/kolab-ldap.substvars ; \
1.54 + echo "ucs:Pre-Depends=univention-legacy-kolab-schema" >> $(CURDIR)/debian/kolab-ldap.substvars ; \
1.55 + echo "ucs:Conflicts=univention-mail-postfix,univention-mail-postfix-forward,univention-mail-postfix-kolab2" >> $(CURDIR)/debian/kolab-mta.substvars ; \
1.56 + echo "ucs:Provides=univention-mail-postfix,univention-mail-postfix-forward,univention-mail-postfix-kolab2" >> $(CURDIR)/debian/kolab-mta.substvars ; \
1.57 + echo "ucs:Replaces=univention-mail-postfix,univention-mail-postfix-forward,univention-mail-postfix-kolab2" >> $(CURDIR)/debian/kolab-mta.substvars ; \
1.58 + else \
1.59 + echo "nonucs:Depends=kolab-webadmin" >> $(CURDIR)/debian/kolab.substvars ; \
1.60 + fi
1.61 + dh_auto_install
1.62 +
1.63 +%:
1.64 + dh $@