Commit ea359ce0 authored by Francois Marier's avatar Francois Marier
Browse files

Depend on ttf-freefont and symlink to the FreeMono font for CAPTCHAs

parent 70ac0d54
......@@ -10,7 +10,7 @@ Vcs-Browser: http://git.catalyst.net.nz/gw?p=mahara.git
Package: mahara
Architecture: all
Depends: ${misc:Depends}, php5-pgsql, php5-cli, php5-gd, file, cron, perl
Depends: ${misc:Depends}, php5-pgsql, php5-cli, php5-gd, file, cron, perl, ttf-freefont
Recommends: mahara-apache2 | mahara-apache, postgresql-8.1, clamav, clamav-daemon, php5-curl, php5-openssl, php5-xmlrpc, php5-imagick, libfile-slurp-perl, libtext-diff-perl
Description: Electronic portfolio, weblog, and resume builder
Mahara is a fully featured electronic portfolio, weblog, resume builder and
......
......@@ -61,6 +61,10 @@ case "$1" in
# Touch cron log
touch /var/log/mahara-cron.log
chown www-data:www-data /var/log/mahara-cron.log
# Link to captcha font
ln -s /usr/share/fonts/truetype/freefont/FreeMono.ttf /usr/share/mahara/theme/default/static/captcha.ttf
ln -s /usr/share/fonts/truetype/freefont/FreeMono.ttf /usr/share/mahara/theme/schoolmyportfolio/static/captcha.ttf
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
......@@ -29,6 +29,8 @@ install: configure-stamp
find $(CURDIR)/debian/mahara/usr/share/mahara/ -name "LICENSE*" -exec rm {} \;
# Exclude specific files/directories
rm -f $(CURDIR)/debian/mahara/usr/share/mahara/theme/default/static/captcha.ttf
rm -f $(CURDIR)/debian/mahara/usr/share/mahara/theme/schoolmyportfolio/static/captcha.ttf
rm -f $(CURDIR)/debian/mahara/usr/share/mahara/robots.txt
rm -f $(CURDIR)/debian/mahara/usr/share/mahara/lib/phpmailer/ChangeLog.txt
rm -rf $(CURDIR)/debian/mahara/usr/share/mahara/lib/adodb/docs/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment