1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#!/usr/bin/make -f
HORDENAME=horde
DESTDIR=$(CURDIR)/debian/php-horde
%:
dh $@ --buildsystem=phppear --with phppear
override_dh_auto_configure:
dh_auto_configure -O--buildsystem=phppear
# Remove references to compiled Flash or Silverlight files
sed -i -e '/plupload\.flash\.swf/d' -e '/plupload\.silverlight\.xap/d' */package.xml
check_compiled_flash_files:
@if find horde-* -name '*.swf' -o -name '*.xap' | grep -q '.'; then \
echo " ********************************************************"; \
echo " ** **"; \
echo " ** tar contains compiled Flash or Silverlight files! **"; \
echo " ** **"; \
echo " ********************************************************"; \
find horde-* -name '*.swf' -o -name '*.xap'; \
echo "Those files should be stripped."; \
echo ""; \
exit 1; \
fi
override_dh_prep: check_compiled_flash_files
dh_prep -O--buildsystem=phppear
override_dh_link:
dh_link
dh_installdirs etc/horde
dh_installdirs var/cache/horde/static
# config of "horde" app:
mv $(DESTDIR)/usr/share/horde/config $(DESTDIR)/etc/horde/horde
dh_link etc/horde/horde usr/share/horde/config
# "This directory contains dynamically created files that need to be
# served statically to browsers."
rm $(DESTDIR)/usr/share/horde/static/README
rmdir $(DESTDIR)/usr/share/horde/static
dh_link var/cache/horde/static usr/share/horde/static
override_dh_fixperms:
dh_fixperms
chown www-data:www-data $(DESTDIR)/var/cache/horde/static
|