From 3dc4467dc061b40752b3a28639d2b465a04d3e07 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 27 Aug 2015 11:08:42 -0400 Subject: [PATCH] restore missing docs --- docs/installationguide/centos.rst | 5 +++++ docs/installationguide/debian.rst | 37 +++++++++++++++++++++++++++++++ docs/installationguide/fedora.rst | 4 ++++ docs/installationguide/index.rst | 12 ++++++++++ 4 files changed, 58 insertions(+) create mode 100644 docs/installationguide/centos.rst create mode 100644 docs/installationguide/debian.rst create mode 100644 docs/installationguide/fedora.rst create mode 100644 docs/installationguide/index.rst diff --git a/docs/installationguide/centos.rst b/docs/installationguide/centos.rst new file mode 100644 index 000000000..606aaffd5 --- /dev/null +++ b/docs/installationguide/centos.rst @@ -0,0 +1,5 @@ +Centos +====== + + + diff --git a/docs/installationguide/debian.rst b/docs/installationguide/debian.rst new file mode 100644 index 000000000..9294ebeb6 --- /dev/null +++ b/docs/installationguide/debian.rst @@ -0,0 +1,37 @@ +Debian +====== + +A fresh build based on master branch running Debian 7 (wheezy)\: +:: + + root@host:~# aptitude install -y apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf libjpeg8-dev libjpeg8 apache2-mpm-prefork libapache2-mod-php5 php5-cli libphp-serialization-perl libgnutls-dev libjpeg8-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libv4l-dev libtool ffmpeg libnetpbm10-dev libavdevice-dev libmime-lite-perl dh-autoreconf dpatch; + + root@host:~# git clone https://github.com/ZoneMinder/ZoneMinder.git zoneminder; + root@host:~# cd zoneminder; + root@host:~# ln -s distros/debian; + root@host:~# dpkg-checkbuilddeps; + root@host:~# dpkg-buildpackage; + +One level above you'll now find a deb package matching the architecture of the build host: +:: + + root@host:~# ls -1 ~/zoneminder*; + /root/zoneminder_1.26.4-1_amd64.changes + /root/zoneminder_1.26.4-1_amd64.deb + /root/zoneminder_1.26.4-1.dsc + /root/zoneminder_1.26.4-1.tar.gz + +The dpkg command itself does not resolve dependencies. That's what high-level interfaces like aptitude and apt-get are normally for. Unfortunately, unlike RPM, there's no easy way to install a separate deb package not contained with any repository. + +To overcome this "limitation" we'll use dpkg only to install the zoneminder package and apt-get to fetch all needed dependencies afterwards. Running dpkg-reconfigure in the end will ensure that the setup scripts e.g. for database provisioning were executed. +:: + + root@host:~# dpkg -i /root/zoneminder_1.26.4-1_amd64.deb; apt-get install -f; + root@host:~# dpkg-reconfigure zoneminder; + +Alternatively you may also use gdebi to automatically resolve dependencies during installation: +:: + + root@host:~# aptitude install -y gdebi; + root@host:~# gdebi /root/zoneminder_1.26.4-1_amd64.deb; + diff --git a/docs/installationguide/fedora.rst b/docs/installationguide/fedora.rst new file mode 100644 index 000000000..09ffe4297 --- /dev/null +++ b/docs/installationguide/fedora.rst @@ -0,0 +1,4 @@ +Fedora +====== + + diff --git a/docs/installationguide/index.rst b/docs/installationguide/index.rst new file mode 100644 index 000000000..58a8f4b21 --- /dev/null +++ b/docs/installationguide/index.rst @@ -0,0 +1,12 @@ +Installation Guide +====================================== + +Contents: + +.. toctree:: + :maxdepth: 2 + + ubuntu + debian + fedora + centos