Compiling option from source in Debian

34 views
Skip to first unread message

nicolas G

unread,
Mar 1, 2025, 4:35:59 AMMar 1
to bareos-users
Hello, 

When a new version is avalaible, i compil whith this cmake command :
cmake -Dsysconfdir=/etc -Dbindir=/usr/local/bin -Dsbindir=/usr/local/sbin -Dworkingdir=/var/lib/bareos -Dlogdir=/var/log/bareos -Darchivedir=/var/lib/bareos/storage -Dscriptdir=/usr/lib/bareos/scripts -Dbackenddir=/usr/lib64/bareos/backends -S/home/nicolas/bareos -Wno-dev

All is good except bareos-webui

How to change the path of Bareos-webui

It's /usr/local/share/bareos-webui

But in the apache config file  bareos-webui.conf
the path is /usr/share/bareos-webui
(If i modify this file is good !)

 Thank you !   

Bruno Friedmann (bruno-at-bareos)

unread,
Mar 3, 2025, 3:58:14 AMMar 3
to bareos-users
Look like this configuration file should be enhanced to use the  variable set here "webui/CMakeLists.txt:104:set(WEBUI_DIR ${CMAKE_INSTALL_FULL_DATAROOTDIR}/bareos-webui)" 
usually if it is transformed as bareos-webui.conf.in and set @WEBUI_DIR@ that should do the trick.

Worth to be tried, and if that works, please open a PR so it get fixed.

nicolas G

unread,
Mar 3, 2025, 10:37:50 AMMar 3
to bareos-users
The file bareos-webui.conf.in doesn't exist.
Y try to rename  bareos-webui.conf in  bareos-webui.conf.in and replace in the file "/usr/share" by @WEBUI_DIR@
After the compile (make) the file  bareos-webui.conf not exist, only  bareos-webui.conf.in

Is it the good job ?

Bruno Friedmann (bruno-at-bareos)

unread,
Mar 3, 2025, 10:59:16 AMMar 3
to bareos-users
You may have to do a bit of research to get this new file processed by cmake ... Sorry if this is not what you expected, as you were building manually with cmake I was believing you go the skill to do so ;-)
But with little effort you certainly still can to do it.

nicolas G

unread,
Mar 4, 2025, 5:13:31 PMMar 4
to bareos-users
Thanks !
I tried to make a PR. Not easy for me. It #2201

Bruno Friedmann (bruno-at-bareos)

unread,
Mar 5, 2025, 10:31:16 AMMar 5
to bareos-users
Thanks for tying at least, at the end it will get fixed  so always good ...
Sorry didn't had time to look at it, but it will be checked.

Reply all
Reply to author
Forward
0 new messages