New package: bacula-common-7.4.7

Closes: #5701 [via git-merge-pr]
This commit is contained in:
Matthias Fulz 2017-02-09 00:04:35 +01:00 committed by Duncaen
parent 004a621875
commit b5d09dc79a
13 changed files with 199 additions and 0 deletions

View File

@ -2837,3 +2837,8 @@ libPocoXML.so.48 poco-1.7.8p2_1
libPocoUtil.so.48 poco-1.7.8p2_1 libPocoUtil.so.48 poco-1.7.8p2_1
libopenblas.so.0 openblas-0.2.19_1 libopenblas.so.0 openblas-0.2.19_1
librtmidi.so.3 rtmidi-2.1.1_1 librtmidi.so.3 rtmidi-2.1.1_1
libbac-7.4.7.so bacula-common-7.4.7_1
libbaccfg-7.4.7.so bacula-common-7.4.7_1
libbacfind-7.4.7.so bacula-common-7.4.7_1
libbacsql-7.4.7.so bacula-common-7.4.7_1
libbaccats-7.4.7.so bacula-common-7.4.7_1

View File

@ -0,0 +1 @@
bacula-common

View File

@ -0,0 +1 @@
bacula-common

View File

@ -0,0 +1,3 @@
#!/bin/sh
[ ! -d /run/bacula ] && mkdir /run/bacula
exec bacula-dir -f -c /etc/bacula/bacula-dir.conf

View File

@ -0,0 +1,3 @@
#!/bin/sh
[ ! -d /run/bacula ] && mkdir /run/bacula
exec bacula-fd -f -c /etc/bacula/bacula-fd.conf

View File

@ -0,0 +1,3 @@
#!/bin/sh
[ ! -d /run/bacula ] && mkdir /run/bacula
exec bacula-sd -f -c /etc/bacula/bacula-sd.conf

View File

@ -0,0 +1,48 @@
--- configure 2016-09-29 15:59:30.000000000 +0200
+++ configure 2017-02-14 01:48:10.874916913 +0100
@@ -23873,6 +23873,14 @@
POSTGRESQL_LIBDIR=/usr/lib/postgresql
fi
POSTGRESQL_BINDIR=/usr/bin
+ elif test -f ${XBPS_CROSS_BASE}/usr/include/libpq-fe.h; then
+ POSTGRESQL_INCDIR=${XBPS_CROSS_BASE}/usr/include
+ if test -d ${XBPS_CROSS_BASE}/usr/lib64; then
+ POSTGRESQL_LIBDIR=${XBPS_CROSS_BASE}/usr/lib64
+ else
+ POSTGRESQL_LIBDIR=${XBPS_CROSS_BASE}/usr/lib
+ fi
+ POSTGRESQL_BINDIR=${XBPS_CROSS_BASE}/usr/bin
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
@@ -24182,6 +24190,15 @@
MYSQL_LIBDIR=/usr/local/lib
fi
MYSQL_BINDIR=/usr/local/bin
+ elif test -f ${XBPS_CROSS_BASE}/usr/include/mysql.h; then
+ MYSQL_INCDIR=${XBPS_CROSS_BASE}/usr/include
+ if test -f ${XBPS_CROSS_BASE}/usr/lib64/libmysqlclient_r.a \
+ -o -f ${XBPS_CROSS_BASE}/usr/lib64/libmysqlclient_r.so; then
+ MYSQL_LIBDIR=${XBPS_CROSS_BASE}/usr/lib64
+ else
+ MYSQL_LIBDIR=${XBPS_CROSS_BASE}/usr/lib
+ fi
+ MYSQL_BINDIR=${XBPS_CROSS_BASE}/usr/bin
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
@@ -24587,6 +24604,14 @@
SQLITE_LIBDIR=$prefix/lib
fi
SQLITE_BINDIR=$prefix/bin
+ elif test -f ${XBPS_CROSS_BASE}/usr/include/sqlite3.h; then
+ SQLITE_INCDIR=${XBPS_CROSS_BASE}/usr/include
+ if test -d ${XBPS_CROSS_BASE}/usr/lib64; then
+ SQLITE_LIBDIR=${XBPS_CROSS_BASE}/usr/lib64
+ else
+ SQLITE_LIBDIR=${XBPS_CROSS_BASE}/usr/lib
+ fi
+ SQLITE_BINDIR=${XBPS_CROSS_BASE}/usr/bin
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

View File

@ -0,0 +1,12 @@
--- src/findlib/fstype.c 2016-09-29 15:59:30.000000000 +0200
+++ src/findlib/fstype.c 2017-02-19 19:24:02.050639457 +0100
@@ -162,6 +162,9 @@
#include <sys/vfs.h>
#include <mntent.h>
+#ifndef _PATH_MOUNTED
+#include <paths.h>
+#endif
/*
* Linux statfs() does not return the filesystem name type. It

View File

@ -0,0 +1,119 @@
# Template file for 'bacula-common'
pkgname="bacula-common"
version="7.4.7"
revision=1
build_style=gnu-configure
_common_desc="Bacula - A Network Backup Tool "
short_desc="${_common_desc} (common libs)"
maintainer="Matthias Fulz <mfulz@olznet.de>"
license="AGPL-3"
homepage="http://www.bacula.org"
distfiles="${SOURCEFORGE_SITE}/bacula/bacula-${version}.tar.gz"
checksum="6f6075c2ca90a63cdeeca39b0b82a3ea07ce9999dedc68951d88bed7fbc0be40"
configure_args="
--with-openssl --with-sqlite3 --with-mysql --with-postgresql
--enable-smartalloc --sysconfdir=/etc/bacula
--with-scriptdir=/etc/bacula/scripts
--with-working-dir=/run/bacula"
makedepends="sqlite-devel libmariadbclient-devel postgresql-libs-devel
libressl-devel ncurses-devel zlib-devel acl-devel"
wrksrc="${pkgname%-*}-${version}"
shlib_provides="libbaccats-${version}.so"
alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-sqlite3-${version}.so"
post_install() {
rm "${DESTDIR}/usr/bin/bacula"
rm -rf "${DESTDIR}/usr/share/doc"
rm "${DESTDIR}/usr/share/man/man1/bat.1.gz"
}
bacula-console_package() {
short_desc="Bacula - A Network Backup Tool (management cli)"
conf_files="/etc/${pkgname%-*}/bconsole.conf"
depends="bacula-common"
pkg_install() {
vmove "etc/${pkgname%-*}/bconsole.conf"
vmove "etc/${pkgname%-*}/scripts/bconsole"
vmove "usr/bin/bconsole"
vmove "usr/share/man/man8/bconsole.8.gz"
}
}
bacula-fd_package() {
short_desc="Bacula - A Network Backup Tool (file daemon)"
conf_files="/etc/${pkgname%-*}/${pkgname}.conf"
depends="bacula-common"
pkg_install() {
vmove "etc/${pkgname%-*}/${pkgname}.conf"
vmove "usr/bin/${pkgname}"
vmove "usr/lib/bpipe-fd.so"
vmove "usr/share/man/man8/${pkgname}.8.gz"
vsv "${pkgname}"
}
}
bacula-sd_package() {
short_desc="Bacula - A Network Backup Tool (storage daemon)"
conf_files="/etc/${pkgname%-*}/${pkgname}.conf"
depends="bacula-common"
pkg_install() {
vmove "etc/${pkgname%-*}/${pkgname}.conf"
for x in ${pkgname} bextract bls bcopy bscan btape; do
vmove "usr/bin/$x"
vmove "usr/share/man/man8/$x.8.gz"
done
vsv "${pkgname}"
}
}
bacula-dir_package() {
short_desc="Bacula - A Network Backup Tool (director daemon)"
conf_files="/etc/${pkgname%-*}/${pkgname}.conf"
depends="bacula-common"
pkg_install() {
vmove "etc/${pkgname%-*}/${pkgname}.conf"
vmove "etc/${pkgname%-*}/scripts/query.sql"
vmove "etc/${pkgname%-*}/scripts/create_${pkgname%-*}_database"
vmove "etc/${pkgname%-*}/scripts/delete_catalog_backup"
vmove "etc/${pkgname%-*}/scripts/drop_${pkgname%-*}_database"
vmove "etc/${pkgname%-*}/scripts/drop_${pkgname%-*}_tables"
vmove "etc/${pkgname%-*}/scripts/grant_${pkgname%-*}_privileges"
vmove "etc/${pkgname%-*}/scripts/make_${pkgname%-*}_tables"
vmove "etc/${pkgname%-*}/scripts/make_catalog_backup.pl"
vmove "etc/${pkgname%-*}/scripts/make_catalog_backup"
vmove "etc/${pkgname%-*}/scripts/update_${pkgname%-*}_tables"
vmove "usr/bin/bsmtp"
vmove "usr/share/man/man1/bsmtp.1.gz"
for x in ${pkgname} bregex bwild dbcheck; do
vmove "usr/bin/$x"
vmove "usr/share/man/man8/$x.8.gz"
done
vsv "${pkgname}"
}
}
bacula-common-mariadb_package() {
short_desc="${_common_desc} (MariaDB support)"
depends="bacula-common"
alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-mysql-${version}.so"
pkg_install() {
vmove "usr/lib/libbaccats-mysql-${version}.so"
vmove "usr/lib/libbaccats-mysql.so"
for file in etc/bacula/scripts/*mysql*; do
vmove "$file"
done
}
}
bacula-common-postgresql_package() {
short_desc="${_common_desc} (PostgreSQL support)"
depends="bacula-common"
alternatives="bacula-db-backend:/usr/lib/libbaccats-${version}.so:/usr/lib/libbaccats-postgresql-${version}.so"
pkg_install() {
vmove "usr/lib/libbaccats-postgresql-${version}.so"
vmove "usr/lib/libbaccats-postgresql.so"
for file in etc/bacula/scripts/*postgresql*; do
vmove "$file"
done
}
}

1
srcpkgs/bacula-console Symbolic link
View File

@ -0,0 +1 @@
bacula-common

1
srcpkgs/bacula-dir Symbolic link
View File

@ -0,0 +1 @@
bacula-common

1
srcpkgs/bacula-fd Symbolic link
View File

@ -0,0 +1 @@
bacula-common

1
srcpkgs/bacula-sd Symbolic link
View File

@ -0,0 +1 @@
bacula-common