Bareos .deb generator

95 views
Skip to first unread message

Juanjo Ivars

unread,
Nov 17, 2020, 9:20:58 AM11/17/20
to bareos-devel
Hello, i am trying to generate a .deb installer of bareos from sources, i have followed the instructions in dev-doc but it seems confusing to me, the steps i have followed are:

cd bareos/core/src/droplet
git submodule update --init --recursive

cd
mkdir build
cd build
cmake -Dsqlite3=yes -Dtraymonitor=yes ../bareos
make -j8

cmake --build .


vi CPackConfig.cmake
SET(CPACK_BINARY_DEB "ON")
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_NAME "bareos")
SET(CPACK_PACKAGE_VERSION "0.1")
SET(CPACK_PACKAGE_FILE_NAME "bareos-0.1")
SET(CPACK_INSTALL_CMAKE_PROJECTS "/root/build;bareos;ALL;/")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "/root/bareos/README.md")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "bareos")
SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
SET(CPACK_PACKAGE_CONTACT "sys@xxxxxcom")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "s...@xxxxx.com")

cpack

The package is generated but it seems to install all the bareos parts(sd-fd-director...), the init scripts are not installed, how can i package each service in diferent .deb files? is that the correct way to generate the bareos packages? is there any detailed guide explaining the steps?

Thank you for your time.

Andreas Rogge

unread,
Nov 17, 2020, 11:57:32 AM11/17/20
to bareos...@googlegroups.com
Hi,

we use CPack only for MacOS.
All other packages (including Debian) are built natively.
Basically, all you need is a tar.gz of the tree after "git submodule
update --init" that you can then use for dpkg-buildpackage.

Hope that helps!

Best Regards,
Andreas

--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

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. Steffens, Philipp Storz
Reply all
Reply to author
Forward
0 new messages