LogoKolab Groupware OBS > Projects
Log In

View File debian.rules of Package iRony (Project Kolab:16)

#!/usr/bin/make -f

#export DH_OPTIONS=-v
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_configure:
	rm -rvf vendor/sabre

	rm -rf composer.json
	mv composer.json-dist composer.json
	mkdir -p $$HOME/.composer/
	echo '{}' > $$HOME/.composer/composer.json
	sed -i \
		-e 's/"\^/"/g' \
		composer.lock \
		vendor/composer/installed.json

	composer -vvv dumpautoload --optimize

	# Fix wrong paths generated by Composer: they contain one '../' too many
	sed -i 's/\/\.\.\/\.\.\/\.\.\//\/..\/..\//' \
	        vendor/composer/autoload_*.php

	if [ -f "/etc/plesk-release" ]; then \
		sed -i -e 's/www-data adm/roundcube_sysuser roundcube_sysgroup/g' debian/irony.logrotate ; \
	fi

override_dh_install:
	if [ ! -f "/etc/plesk-release" ]; then \
		mkdir -p $(CURDIR)/debian/irony/etc/apache2/sites-available ; \
		cp -a $(CURDIR)/debian/iRony.conf \
			$(CURDIR)/debian/irony/etc/apache2/sites-available/iRony.conf ; \
	fi

	mkdir -p $(CURDIR)/debian/irony/etc/iRony/
	cp -a config/dav.inc.php.sample $(CURDIR)/debian/irony/etc/iRony/dav.inc.php
	mkdir -p $(CURDIR)/debian/irony/usr/share/iRony/config
	mkdir -p $(CURDIR)/debian/irony/usr/share/iRony/lib
	cp -a lib/Kolab $(CURDIR)/debian/irony/usr/share/iRony/lib
	cp -a public_html $(CURDIR)/debian/irony/usr/share/iRony/
	cp -a vendor $(CURDIR)/debian/irony/usr/share/iRony/