Package Base Details: bareos

Git Clone URL: https://aur-dev.archlinux.org/bareos.git (read-only)
Submitter: AlD
Maintainer: spradlim
Last Packager: spradlim
Votes: 3
Popularity: 0.005075
First Submitted: 2014-07-23 09:45
Last Updated: 2016-10-30 22:15

Latest Comments

spradlim commented on 2017-01-30 02:48

PiroXiline,

You are correct that it builds them once and installs the needed one this is an offical Arch Linux way of doing it. They are called split packages and you can read more about them here: https://wiki.archlinux.org/index.php/PKGBUILD

As for a command that installs just a file daemon on my clients I use:
"pacaur -S bareos-filedaemon"

FYI:
I used to use yaourt but then found out it doesn't support split packages. I actually determined this when trying to install another PKGBUILD maintained by another user.

I took over maintaining bareos, it already had split packages, I kept them. They have an advantage that the components can be installed many times on the same machine, but only need to be built once. For example the director and storage daemon is a common case for users.

PiroXiline commented on 2017-01-28 20:53

Hello, spradlim.

I though I was completely wrong, as it often happens.

But no. I see not.
I do install bareos-filedaemon,
and get:

$ makepkg -si
==> WARNING: The package group has already been built, installing existing packages...
==> Installing bareos package group with pacman -U...
[sudo] password for pyro:
loading packages...
warning: bareos-common-16.2.4-1 is up to date -- reinstalling
warning: bareos-bconsole-16.2.4-1 is up to date -- reinstalling
warning: bareos-database-common-16.2.4-1 is up to date -- reinstalling
warning: bareos-database-mysql-16.2.4-1 is up to date -- reinstalling
warning: bareos-database-postgresql-16.2.4-1 is up to date -- reinstalling
warning: bareos-database-sqlite3-16.2.4-1 is up to date -- reinstalling
warning: bareos-database-tools-16.2.4-1 is up to date -- reinstalling
warning: bareos-devel-16.2.4-1 is up to date -- reinstalling
warning: bareos-director-16.2.4-1 is up to date -- reinstalling
warning: bareos-storage-fifo-16.2.4-1 is up to date -- reinstalling
warning: bareos-tools-16.2.4-1 is up to date -- reinstalling
warning: bareos-storage-16.2.4-1 is up to date -- reinstalling
warning: bareos-director-python-plugin-16.2.4-1 is up to date -- reinstalling
warning: bareos-storage-python-plugin-16.2.4-1 is up to date -- reinstalling
resolving dependencies...
warning: cannot resolve "mtx", a dependency of "bareos-storage-tape"
:: The following package cannot be upgraded due to unresolvable dependencies:
bareos-storage-tape

:: Do you want to skip the above package for this upgrade? [y/N]


In other words - It do compile and install all BareoOS packages. It compile and install whole bareos group.
That what I was talking about in previous message, mentioning PKGBUILD is bold and include all packages all together. And all BareOS packages share that one PKGBUILD.
That all this is one also can be seen through - all AUR package pages share one page and one message thread, only Description changes.

Or I don't understand something.

Maybe you don't see users perspective.

This seems like with official way - we can build only a main BareOS group package and all other names are aliases to "bareos" one.
And with this group we build all packages and install them.

So, to clear the question.
I approach with a question to you, as a maintainer.
Please, can you provide information on how you build/install separate packages, and if so - can you provide a description of it where users can see it?

P.S.

Now, I see - it builds all packages. And then I can choose which to install.

The thing is - you need to do it manually. User needs to do process manually and to see packages and to do minor, but nonstandard operation, which is completely not obvious, because users and even experienced ones are blind while no needed information provided.

Official AUR building guide (https://wiki.archlinux.org/index.php/Arch_User_Repository#Build_and_install_the_package) states to use "$ makepkg -si", take a note "-i" is install option, and that installs everything.
Yaourt also does it "official way" installing everything, I also think other helpers do the same.

So what user need to do literally:
$ cd 'to_build\git_directory'
$ git clone https://aur.archlinux.org/package_name.git
$ cd package_name
# Get everything and builds everything, but not install
$ makepkg -s
# See list of packages
$ ls
# Install chosen packages
# pacman -U selected_package.pkg.tar.xz

That does the trick.

So Michael, please provide this information.

It can be seen as I am disrespectful, but I thank you.
I go to such extends to link developers/maintainers/users and share perspective. I am persistent - because it takes effort of persistency to explain bugreports/feature_requests, otherwise, as 99% do - we skip "it", and becouse of that - "it" silently repeats to all other people over and over who knows how many times.

spradlim commented on 2017-01-20 05:17

Hello PrioXiline,

These packages are in the same layout as every other distro that bareos officially supports. This aur packages asctually reads/converts from those source packages.

I don't know what you are seeing but you only need to install the components you need. For example, The installing the file daemon only requires a few other bareos packages. bareos-common, etc...

Hope this helps,
Michael

PiroXiline commented on 2017-01-17 21:48

Guys, come on.

I need install client ('bareos-filedaemon'). I see this list, and it's not even funny.

PKGBUILD:
bareos-bconsole 16.2.4-1 0.04 MiB
bareos-common 16.2.4-1 1.57 MiB
bareos-database-common 16.2.4-1 0.21 MiB
bareos-database-mysql 16.2.4-1 0.05 MiB
bareos-database-postgresql 16.2.4-1 0.07 MiB
bareos-database-sqlite3 16.2.4-1 0.05 MiB
bareos-database-tools 16.2.4-1 0.18 MiB
bareos-devel 16.2.4-1 0.88 MiB
bareos-director 16.2.4-1 0.74 MiB
bareos-director-python-plugin 16.2.4-1 0.03 MiB
bareos-filedaemon 16.2.4-1 0.22 MiB
bareos-filedaemon-python-plugin 16.2.4-1 0.09 MiB
bareos-storage 16.2.4-1 0.18 MiB
bareos-storage-fifo 16.2.4-1 0.02 MiB
bareos-storage-python-plugin 16.2.4-1 0.03 MiB
bareos-tools

## kind rant
Client don't need all other services/servers hanging-around on system, more than it is all AUR deps. This package forces to install a whole everything that we can find of BareOS in Arch stack.
## /kind rant

Official Bacula documentation says:
"If the machine (they mean architecture, x64) and the Operating System are identical, you can simply copy the Bacula File daemon binary file bacula-fd as well as its configuration file bacula-fd.conf" - and install is already over, then goes manual configuration.
http://www.bacula.org/5.1.x-manuals/en/main/main/Installing_Bacula.html#SECTION0017180000000000000000

So, BareOS Client (File Daemon) needs only: binary, and /etc/bareos/bareos-fd.d/* configs.
In latest releases BareOS even simplified client, untying it from need of straight DB connection configuration.

As we install prebuilt package - clearly package bareos-filedaemon needs only itself.

Maybe I did't know or understand something.

It doesn't cancel thou, I am thankful that you provided me BareOS packages.

spradlim commented on 2016-10-31 01:57

Hello all,

I am using all daemons of this package now as a backup solution. I am supporting it as I am actively using it.

spradlim commented on 2016-05-10 01:56

eayin2: This package is not out of date. 15.2.2 is the latest official released package.

spradlim commented on 2016-05-10 01:21

Eayin2: I agree, I was just looking at middy's problem and this is how I fixed it.

Also to be fair, I haven't used the FD on Linux yet. I am getting to it. Finished my window clients first.

eayin2 commented on 2016-05-09 21:10

please change in PKGBUILD.common:
--with-fd-group=root
--with-fd-user=root

muddy.muskrat commented on 2016-04-13 12:11

Example:
- bareos-filedaemon started with user bareos
- bareos user have not permission on directories /home
- as a result we have "Permission denied" erro when try backup /home directory

spradlim commented on 2016-04-07 01:38

bareos-filedamon is configured with --with-fd-user=bareos and --with-fd-group=bareos. What is your problem?

muddy.muskrat commented on 2016-04-06 16:31

bareos-filedarmon must be configure with:
--with-fd-user= \
--with-fd-group="

bareos user have not permissions for read most files in system

spradlim commented on 2015-12-12 23:33

I have noticed this and updated my checksum before. I don't know why github is regenerating the compressed files. I need to change this to checkout the git repository.

oneup commented on 2015-12-12 21:14

Upstream updated the 15.2.2 release and re-uploaded it as a new 15.2.2 with no version change, causing the checksum to fail on 15.2.2.tar.gz. There are at least 8 commits included in this updated 15.2.2 tag that have been made since this package was updated to use 15.2.2 on Nov 21, so it's unclear to me if the 15.2.2 release is being continually updated or if this was a one time fix.

Having updated the checksum locally, everything appears to build fine.

spradlim commented on 2015-11-16 04:52

PKGBUILDS have been updated to handle all install steps but creating the database. A note is printed out when installing on how to create the database/tables.

spradlim commented on 2015-10-31 02:12

Yes I changed the package names to match how the bareos developer expected them to be built. I don't remember the old packages names, so it will be hard to update variables you specify.

AlD commented on 2015-10-29 03:40

Looks like you renamed some packages. Would be nice to use
- depends=newpackage on the old package (not sure if that works)
- replaces=oldpackage on the new package
- maybe conflicts=oldpackage on -common
to make sure those get upgraded.

spradlim commented on 2015-10-02 18:51

Everything seems good to me. Let me know if anyone has problems.

spradlim commented on 2015-04-04 04:57

I uploaded this package, but I still need to do some work.
Let me know what you guys need.
Todo:
* Fix file paths up so it matches the "Arch Linux filesystem"
* Fix plugins
* Fix dependencies

spradlim commented on 2015-04-03 04:45

@freaknils
I am working on updating the directory structure. It should work much better and have the missing binaries. Still working on this...

spradlim commented on 2015-04-01 02:38

@freaknils
I am working on updating the directory structure. It should work much better and have the missing binaries.

max_meyer commented on 2015-03-31 14:52

I created both packages for my bareos-packages...

max_meyer commented on 2015-03-31 14:52

And this one? https://aur.archlinux.org/packages/mtx/

max_meyer commented on 2015-03-31 14:52

Are you interested to take over https://aur.archlinux.org/packages/fastlzlib/?

freaknils commented on 2015-03-30 19:29

The tool "bareos-dbcheck" is missing, why?

freaknils commented on 2015-02-25 10:52

No, new Version 14.2.3 ist available https://github.com/bareos/bareos/releases/tag/Release%2F14.2.3

spradlim commented on 2015-02-23 02:32

Package is not out of date. 14.2.2 is the latest version.

spradlim commented on 2014-12-15 03:57

The bareos packages compile but don't install. I believe this is because every package is trying to install everything not just a single component. For example, installing bareos-fd installs bareos-sd, baros-dir, etc.
(9/9) checking for file conflicts [#####################################################################] 100%
error: failed to commit transaction (conflicting files)
/usr/lib/libbareoscats-7.0.3.so exists in both 'bareos-dir-mariadb' and 'bareos-dir-postgresql'
/usr/lib/libbareoscats-7.0.3.so exists in both 'bareos-dir-mariadb' and 'bareos-dir-sqlite3'
/usr/lib/libbareoscats-7.0.3.so exists in both 'bareos-dir-postgresql' and 'bareos-dir-sqlite3'

AlD commented on 2014-07-23 09:47

Thanks, fixed and updated.

MagnusW commented on 2014-07-22 21:47

Not sure if you still are interrested in this, but it seems that the names of the files in the "install"-portion of this PKGBUILD has changed. I changed:

<code>
install -D ${_instdir}/usr/lib/libbac-${pkgver}.so ${pkgdir}/usr/lib/libbac-${pkgver}.so
install -D ${_instdir}/usr/lib/libbaccfg-${pkgver}.so ${pkgdir}/usr/lib/libbaccfg-${pkgver}.so
install -D ${_instdir}/usr/lib/libbacfind-${pkgver}.so ${pkgdir}/usr/lib/libbacfind-${pkgver}.so
install -D ${_instdir}/usr/lib/libbacpy-${pkgver}.so ${pkgdir}/usr/lib/libbacpy-${pkgver}.so
install -D ${_instdir}/etc/bareos/scripts/btraceback.gdb ${pkgdir}/etc/bareos/scripts/btraceback.gdb
install -D ${_instdir}/usr/bin/btraceback ${pkgdir}/usr/btraceback
</code>

to:

<code>
install -D ${_instdir}/usr/lib/libbareos-${pkgver}.so ${pkgdir}/usr/lib/libbareos-${pkgver}.so
install -D ${_instdir}/usr/lib/libbareoscfg-${pkgver}.so ${pkgdir}/usr/lib/libbareoscfg-${pkgver}.so
install -D ${_instdir}/usr/lib/libbareosfind-${pkgver}.so ${pkgdir}/usr/lib/libbareosfind-${pkgver}.so
install -D ${_instdir}/usr/lib/python-fd.so ${pkgdir}/usr/lib/python-fd.so
install -D ${_instdir}/etc/bareos/scripts/btraceback.gdb ${pkgdir}/etc/bareos/scripts/btraceback.gdb
install -D ${_instdir}/usr/bin/btraceback ${pkgdir}/usr/btraceback
</code>

MagnusW commented on 2014-07-22 21:28

Not sure if you still are interrested in this, but it seems that the names of the files in the "install"-portion of this PKGBUILD has changed. I changed:

<code>
install -D ${_instdir}/usr/lib/libbac-${pkgver}.so ${pkgdir}/usr/lib/libbac-${pkgver}.so
install -D ${_instdir}/usr/lib/libbaccfg-${pkgver}.so ${pkgdir}/usr/lib/libbaccfg-${pkgver}.so
install -D ${_instdir}/usr/lib/libbacfind-${pkgver}.so ${pkgdir}/usr/lib/libbacfind-${pkgver}.so
install -D ${_instdir}/usr/lib/libbacpy-${pkgver}.so ${pkgdir}/usr/lib/libbacpy-${pkgver}.so
install -D ${_instdir}/etc/bareos/scripts/btraceback.gdb ${pkgdir}/etc/bareos/scripts/btraceback.gdb
install -D ${_instdir}/usr/bin/btraceback ${pkgdir}/usr/btraceback
</code>

to:

<code>
install -D ${_instdir}/usr/lib/libbareos-${pkgver}.so ${pkgdir}/usr/lib/libbareos-${pkgver}.so
install -D ${_instdir}/usr/lib/libbareoscfg-${pkgver}.so ${pkgdir}/usr/lib/libbareoscfg-${pkgver}.so
install -D ${_instdir}/usr/lib/libbareosfind-${pkgver}.so ${pkgdir}/usr/lib/libbareosfind-${pkgver}.so
install -D ${_instdir}/usr/lib/python-fd.so ${pkgdir}/usr/lib/python-fd.so
install -D ${_instdir}/usr/lib/bpipe-fd.so ${pkgdir}/usr/lib/bpipe-fd.so
install -D ${_instdir}/etc/bareos/scripts/btraceback.gdb ${pkgdir}/etc/bareos/scripts/btraceback.gdb
install -D ${_instdir}/usr/bin/btraceback ${pkgdir}/usr/btraceback
</code>

... and the package builds OK. I will notify the maintainer via mail as well.

mgisbers commented on 2014-04-15 09:40

Package doesn't build. While install() copying of libraries fails.