A couple of months ago zoneminder 1.27 finally re-entered the official portage tree. For those who have yet to upgrade and are running an older version installed from an old overlay, I have posted my experiences of upgrading to v1.27 in the Gentoo forums.
It's essential reading as one can't just "emerge -u zoneminder" and have it work straight away. There are a few gotchas to be aware of when doing the upgrade...
- The database upgrade script has had a critical environment variable changed from ZM_PATH_BUILD to ZM_PATH_DATA, which can cause it to fail if /etc/zm.conf is not etc-updated first.
- The directories where the ebuild installs have moved from /var/www/zoneminder to /usr/libexec/zoneminder and /usr/share/zoneminder, so the apache config needs to be changed.
The ebuild doesn't update the apache config for you, you need to find where it is within /etc/apache2 and have a look at the example 10_zoneminder.conf.bz2 file placed in /usr/share/docs/zoneminder-1.27.0 to find out where the directories have gone.
- All your existing recorded images in the /var/www/zoneminder/htdocs/events directory need to be manually moved to /var/lib/zoneminder/events.
As well as the events directory, the contents of the images directory needs to be moved there as well.