diff --git a/docs/installationguide/ubuntu.rst b/docs/installationguide/ubuntu.rst index 54df8529a..bad2b651d 100644 --- a/docs/installationguide/ubuntu.rst +++ b/docs/installationguide/ubuntu.rst @@ -294,14 +294,12 @@ Harder Way: Build Package From Source chmod a+x do_debian_package.sh -**Step 2:** Install some core dependencies +**Step 2:** Update the system :: sudo apt-get update - sudo apt-get install git cmake pbuilder debhelper sphinx-common apache2-dev dh-linktree dh-systemd libavcodec-ffmpeg-dev libavformat-ffmpeg-dev libswscale-ffmpeg-dev libavutil-ffmpeg-dev libavdevice-ffmpeg-dev libbz2-dev libdate-manip-perl libdbd-mysql-perl libgcrypt-dev libcurl4-gnutls-dev libgnutls-openssl-dev libjpeg-dev libmysqlclient-dev libpcre3-dev libphp-serialization-perl libpolkit-gobject-1-dev libsys-mmap-perl libv4l-dev libvlc-dev libjs-mootools mysql-server apache2 libapache2-mod-php5 gdebi - **Step 3** Create the package diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index 2b4e88f54..6fff59967 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -52,6 +52,10 @@ else ln -sf distros/ubuntu1504_cmake debian fi; +# Auto-install all ZoneMinder's depedencies using the Debian control file +sudo apt-get install devscripts equivs +sudo mk-build-deps -ir ./debian/control + if [ -z `hostname -d` ] ; then AUTHOR="`getent passwd $USER | cut -d ':' -f 5 | cut -d ',' -f 1` <`whoami`@`hostname`.local>" else