summaryrefslogtreecommitdiff
path: root/pcr/zoneminder/zoneminder.install
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-13 20:33:33 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-13 20:33:33 -0300
commit1125e0af211fdad4bf992229317014d5cc5aa030 (patch)
tree68ce9e268461e5106810f35145c7700be6a8ed44 /pcr/zoneminder/zoneminder.install
parentb4903e03dc897db3b525a3dd85b96be8cc30bf01 (diff)
parent03b51852bcdd2ab24f5761a903bbebbac5028c40 (diff)
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'pcr/zoneminder/zoneminder.install')
-rw-r--r--pcr/zoneminder/zoneminder.install57
1 files changed, 57 insertions, 0 deletions
diff --git a/pcr/zoneminder/zoneminder.install b/pcr/zoneminder/zoneminder.install
new file mode 100644
index 000000000..be449a5ca
--- /dev/null
+++ b/pcr/zoneminder/zoneminder.install
@@ -0,0 +1,57 @@
+# zoneminder.install
+
+## arg 1: the new package version
+post_install() {
+ ln -s /usr/share/cambozola/cambozola.jar /srv/zoneminder/www/
+ chown -R http.http /srv/zoneminder
+ chown http.http /etc/zm.conf
+ mkdir /srv/zoneminder/backup
+ mkdir /srv/zoneminder/socks
+ cat << EOF
+Note:
+==> To initialize the ZoneMinder database run (as root)
+==> /srv/zoneminder/bin/zminit
+EOF
+
+ cat << EOF
+==> Check /etc/php/php.ini and make sure these are uncommented
+==> extension=gd.so
+==> extension=gettext.so
+==> extension=mcrypt.so
+==> extension=mysql.so
+==> extension=mysqli.so
+==> extension=session.so
+==> extension=sockets.so
+EOF
+ cat << EOF
+==> Check /etc/php/php.ini and make sure short_open_tag = On
+EOF
+
+
+ cat /etc/php/php.ini |grep "^open_basedir.*/etc/" | \
+grep "/srv/zoneminder/www">/dev/null || cat << EOF
+==> You must edit /etc/php/php.ini and add to open_basedir "/etc/" and
+==> "/srv/zoneminder/" like so
+==> open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/:/srv/zoneminder/
+==> Otherwise ZoneMinder will be unable to read /etc/zm.conf
+==> or display its own web directory
+EOF
+
+ cat << EOF
+Note:
+==> You must edit /etc/httpd/conf/httpd.conf and uncomment/add the line
+==> LoadModule php5_module modules/libphp5.so
+==> You must also add these lines:
+==> Include conf/extra/php5_module.conf
+==> Include /etc/httpd/conf/extra/httpd-zm.conf
+EOF
+ touch /srv/zoneminder/zm_backup.sql
+}
+
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ /srv/zoneminder/bin/zmupdate.pl -f >/dev/null
+}
+# vim:set ts=2 sw=2 et: