I verified that ./configure was building the spec
file by renaming bacula.spec to bacula.spec.old. It recreated
the spec file. What options do I need to build the spec file
correctly?
Script to run configure:
#!/bin/bash
PREFIX=/opt/bacula
CFLAGS="-g -O2 -Wall" \
./configure \
--enable-bat \
--enable-conio \
--enable-smartalloc \
--docdir=${PREFIX}/html \
--htmldir=${PREFIX}/html \
--libdir=${PREFIX}/lib \
--with-baseport=9101 \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=bacula \
--with-sd-group=bacula \
--with-fd-user=bacula \
--with-fd-group=bacula \
--with-mysql \
--with-pid-dir=${PREFIX}/var/run/bacula \
--with-plugindir=${PREFIX}/plugins \
--with-scriptdir=${PREFIX}/scripts \
--with-systemd \
--with-working-dir=${PREFIX}/var/lib/bacula \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=bacula \
--with-sd-group=bacula \
--with-fd-user=bacula \
--with-fd-group=bacula \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=bacula \
--with-sd-group=bacula \
--with-fd-user=bacula \
--with-fd-group=bacula \
--sbindir=${PREFIX}/bin \
--sysconfdir=${PREFIX}/etc/bacula
On Mon, Jun 12, 2017 at 1:25 PM, Kern Sibbald <
kern AT sibbald DOT com>
wrote:
>
> Hello,
>
> I suspect that you used the
bacula.spec.in
file, which is not going to work. If you do a correct
./configure with all needed arguments for a proper build in the
root directory the
bacula.spec.in file will be
compiled into a bacula.spec file, which should work if you set
up all the variables that the spec file needs. It seems that
you have already figured out the two most important variables
from what I see.
>
> By the way, I am not sure the 7.4.7 .spec files have ever
been used. We are currently building some CentOS systems on
7.9.x, but have not yet tried the SuSE spec files, which will
surely need some changing.
>
>
> Best regards,
> Kern
>
--
David Westfall