It's my custom ebuild, and, as I mentioned, I don't use ffmpeg, so it may need tweaks if it's to work with ffmpeg. Also, note that it is customised, and it isn't in an install and run out of the box state. To make some use of it, fetch the file, and then do:
Code: Select all
# cd /usr/local/portage # or wherever you put your *local* portage tree
# tar zvxf /path/to/zm-1.21.0-portage.tgz
# cd www-misc/zoneminder
# ls
Code: Select all
-rw-r--r-- 1 rick users 2774 May 16 23:44 zoneminder-1.21.0.ebuild
drwxr-xr-x 2 rick users 256 May 17 10:31 files
-rw-r--r-- 1 rick users 14793 May 17 10:31 files/zm-1.21.0-config.txt
-rw-r--r-- 1 rick users 2581 Mar 30 00:02 files/zm-1.21.0-local_camera.patch
-rw-r--r-- 1 rick users 21120 Mar 30 00:02 files/zm-1.21.0-scripts.patch
-rw-r--r-- 1 rick users 5010 Mar 30 00:02 files/zm-1.21.0-security.patch
-rw-r--r-- 1 rick users 2845 Mar 30 00:02 files/zm-1.21.0-zone.patch
Code: Select all
# cp /path/to/my/zmconfig.txt files/zm-1.21.0-config.txt
Once you're happy with that, and you've had a look in the ebuild and you're happy with that too, try:
Code: Select all
# ebuild zoneminder-1.21.0.ebuild digest
It will put:
- executable stuff into /usr/bin
- the init script into /etc/init.d
- config stuff (including a copy of zmconfig.txt) into /etc/zm
- logs into /var/log/zm
- runstate stuff into /var/run/zm
- web stuff into ~apache/zm
- CGI stuff into ~apache/zm/bin (I probably oughtto move this...)
- documentation including all the zmalter scripts (which you may need if you're upgrading) into /usr/share/doc/zoneminder-1.21.0
Code: Select all
Alias /zm/ /www/zm/
<Directory /www/zm>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /www/zm/bin/
<Directory /www/zm/bin>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>