MD=`mdconfig -a -t malloc -s 1g`
newfs /dev/$MD
mount -o rw,noatime /dev/$MD /usr/local/var
mkdir -p /usr/local/var/django/cache/{osm_proxy,tile}
mkdir -p /usr/local/var/scan-data
mkdir -p /usr/local/var/httpd/cache/{osmproxy,maps}
chown -R www:www /usr/local/var/*

/usr/local/etc/rc.d/apache22 restart
