I would like to package Nagios 4 on Ubuntu. Installation from source involves multiple make commands and a configure command.
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.3.4.tar.gz
tar xzf nagioscore.tar.gz
cd /tmp/nagioscore-nagios-4.3.4/
./configure --with-httpd-conf=/etc/apache2/sites-enabled
make all
make install
make install-init
make install-commandmode
make install-config
make install-webconf
How do I make a deb or apt package out of this?
I tried following the Ubuntu instructions
http://packaging.ubuntu.com/html/packaging-new-software.html
When I run the bzr dh-make package version package.tar.gz
, I get the following error
bzr: ERROR: Either run the command from an existing branch of upstream, or move nagioscore-nagios-4.3.4 aside and a new branch will be created there.
make install
. The othermake install
commands generate config files which I can copy over. – pdna Oct 22 '17 at 01:55