Hi, i'm no compiling expert. is there a step by step to build the filedaemon on the raspberry pi?
regards Jörg Steffens schrieb am Montag, 19. März 2018 um 12:23:43 UTC+1: > Hi Greg, > > you are right. Bareos has switched from autoconf (configure, ...) to > cmake in master, and this is not yet documented in the developer > documentation. > > The best way to get the settings used by the Bareos project itself is to > look into the package building files, e.g. > > https://github.com/bareos/bareos/blob/master/platforms/packaging/bareos.spec > or https://github.com/bareos/bareos/blob/master/debian/rules > > In bareos.spec you see that we use following command to compile Bareos: > > # create temporary file in this subdirectory > CMAKE_BUILDDIR=cmake-build > > mkdir ${CMAKE_BUILDDIR} > pushd ${CMAKE_BUILDDIR} > > cmake .. \ > -DCMAKE_VERBOSE_MAKEFILE=ON \ > -DCMAKE_INSTALL_PREFIX:PATH=/usr \ > -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \ > -DINCLUDE_INSTALL_DIR:PATH=/usr/include \ > -DLIB_INSTALL_DIR:PATH=/usr/lib \ > -DSYSCONF_INSTALL_DIR:PATH=/etc \ > -DSHARE_INSTALL_PREFIX:PATH=/usr/share \ > -DBUILD_SHARED_LIBS:BOOL=ON \ > -Dprefix=%{_prefix}\ > -Dlibdir=%{library_dir} \ > -Dsbindir=%{_sbindir} \ > -Dsbin-perm=755 \ > -Dsysconfdir=%{_sysconfdir} \ > -Dconfdir=%{_sysconfdir}/bareos \ > -Dmandir=%{_mandir} \ > -Ddocdir=%{_docdir}/%{name} \ > -Dhtmldir=%{_docdir}/%{name}/html \ > -Darchivedir=/var/lib/%{name}/storage \ > -Dbackenddir=%{backend_dir} \ > -Dscriptdir=%{script_dir} \ > -Dworking-dir=%{working_dir} \ > -Dplugindir=%{plugin_dir} \ > -Dpid-dir=%{pid_dir} \ > -Dbsrdir=%{bsr_dir} \ > -Dlogdir=/var/log/bareos \ > -Dsubsys-dir=%{_subsysdir} \ > -Dpython=yes \ > -Dsmartalloc=yes \ > -Ddisable-conio=yes \ > -Dreadline=yes \ > -Dbatch-insert=yes \ > -Ddynamic-cats-backends=yes \ > -Ddynamic-storage-backends=yes \ > -Dscsi-crypto=yes \ > -Dlmdb=yes \ > -Dndmp=yes \ > -Dipv6=yes \ > -Dacl=yes \ > -Dxattr=yes \ > -Dtraymonitor=yes \ > -Dpostgresql=yes \ > -Dmysql=yes \ > -Dsqlite3=yes \ > -Dtcp-wrappers=yes \ > -Ddir-user=%{director_daemon_user} \ > -Ddir-group=%{daemon_group} \ > -Dsd-user=%{storage_daemon_user} \ > -Dsd-group=%{storage_daemon_group} \ > -Dfd-user=%{file_daemon_user} \ > -Dfd-group=%{daemon_group} \ > -Ddir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \ > -Dfd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \ > -Dsd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \ > -Dmon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \ > -Dmon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \ > -Dmon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \ > -Dopenssl=yes \ > -Dbasename="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \ > -Dhostname="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \ > -Dsystemd=yes \ > -Dincludes=yes > > make DESTDIR=%{buildroot} > > All the ${...} defines are set the the RPM build system and must be > adapted to your environment (or removed to take the default). > > However, as you plan to use this system in production I would recommend > to use the latest stable release (17.2.x) or branch (bareos-17.2) > instead of master. And 17.2 as well as all predecessors still use autoconf. > > regards, > Jörg > > On 18.03.2018 at 22:43 wrote Greg: > > Hi, This is my first post, so bear with me. > > > > I am NOT a programmer but I want to compile bareos client only (file > > daemon) onto my firewall which is called ipfire as it has a bacula > > client that works with bareos but this was upgraded and now it is not > > compatible anymore. > > > > I have downloaded the bareos source files and I cannot find any > > documentation on how to compile from source. I did find documentation > > that said to run ./configure and then run make etc but these > > instructions seem old. > > > > I think the new source is supposed to compiled using cmake (which I > > have never heard of until today) > > > > I have read about cmake and how easy it is supposed to be, which is > > probably true if you use it everyday and know how it all works. > > > > I just want to be able to compile the client and its is not easy for > > someone with zero experience with cmake or compiling. Is there anyone > > out there that knows how to do this and have instructions on how to > > compile the client only? > > > > Thanks > > > > > -- > Jörg Steffens joerg.s...@bareos.com > Bareos GmbH & Co. KG Phone: +49 221 630693-91 <+49%20221%2063069391> > http://www.bareos.com Fax: +49 221 630693-10 <+49%20221%2063069310> > > Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 > Komplementär: Bareos Verwaltungs-GmbH > Geschäftsführer: > S. Dühr, M. Außendorf, Jörg Steffens, P. Storz > > -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/4ddd9abd-4bf0-4f49-a802-97a6461b44e9n%40googlegroups.com.