Allow users to disable systemd support in iprutils for distros that
don't support it. One can run ../configure --without-systemd to avoid
building the service files.
The default behavior is to build systemd files (--with-systemd) and they
will be installed into %{prefix}/usr/lib/systemd/system/. But path can
be overriden using --with-systemd=<path>.
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
We replace every hardcoded path with an autotools variable @sbindir@
that is replaced at build time by the correct installation path.
This was tested on SLES and RHEL.
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <Brian King brking@linux.vnet.ibm.com>
This commit adds support to build iprutils using GNU Autools. It
replaces the old Makefile and version.mk file with Automake. Now, the
version information is available at the configure.ac file.
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
iprutils daemon files (iprdump.service, iprinit.service and
iprupdate.service) were created and housed on systemd directory.
In the file system, they should be sent to /usr/lib/systemd/system.
iprutils.spec was adapted to support the changes and manage
those service files.
Signed-off-by: Daniel Kreling <kreling@imap.linux.ibm.com>
Criated iprinit.service, iprdump.service and iprupdate.service files to
provide support to distros using systemd instead of init.d. Also by doing
that, we're bumping to version 2.4.2.
Signed-off by: Daniel Kreling <dkreling@imap.linux.ibm.com>