summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Spradling2015-06-09 22:33:47 -0400
committerMichael Spradling2015-06-09 22:33:47 -0400
commit34e1778097a7f89f8911e1836cce9d7a529ce139 (patch)
treed1ff4d1926ad5c62fdfd0fe338d049d36355c63a
downloadaur-34e1778097a7f89f8911e1836cce9d7a529ce139.tar.gz
Migration to aur4
-rw-r--r--.SRCINFO102
-rw-r--r--PKGBUILD28
-rw-r--r--PKGBUILD.common261
3 files changed, 391 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5c3795ef2f4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,102 @@
+pkgbase = bareos
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced
+ pkgver = 14.2.5
+ pkgrel = 3
+ url = http://www.bareos.org
+ arch = i686
+ arch = x86_64
+ groups = bareos
+ license = AGPL3
+ makedepends = sqlite
+ makedepends = libmariadbclient
+ makedepends = postgresql-libs
+ optdepends = openssl: network encryption between daemons
+ source = https://github.com/bareos/bareos/archive/Release/14.2.5.tar.gz
+ source = PKGBUILD.common
+ sha256sums = f42bc34afa913cfb4d6b7ef8856c7195d8b13b21c987da1039d46e6c60f06720
+ sha256sums = 56eb1e45003fa2de137333bfc74a85518b0dae21c50e49f48df44c2e63bb3ebf
+
+pkgname = bareos-common
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Common files
+
+pkgname = bareos-bconsole
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Admin Tool (CLI)
+ groups = bareos
+ groups = bareos-client
+ depends = bareos-common=14.2.5
+
+pkgname = bareos-database-common
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Generic abstration libs and tools for sql catalog
+ depends = bareos-common=14.2.5
+
+pkgname = bareos-database-mysql
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Libs and tools for mysql catalog
+ depends = bareos-database-common=14.2.5
+ depends = mysql
+ provides = bareos-database=14.2.5
+
+pkgname = bareos-database-postgresql
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Libs and tools for postgresql catalog
+ depends = bareos-database-common=14.2.5
+ depends = postgresql
+ provides = bareos-database=14.2.5
+
+pkgname = bareos-database-sqlite3
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Libs and tools for sqlite3 catalog
+ depends = bareos-database-common=14.2.5
+ depends = sqlite3
+ provides = bareos-database=14.2.5
+
+pkgname = bareos-database-tools
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - CLI tools with database dpendencies (dbcheck, bscan)
+ depends = bareos-database=14.2.5
+
+pkgname = bareos-devel
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Devel headers
+
+pkgname = bareos-director
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Director daemon
+ depends = bareos-common=14.2.5
+ depends = bareos-database-common=14.2.5
+ depends = bareos-database=14.2.5
+ depends = bareos-database-tools=14.2.5
+
+pkgname = bareos-storage-fifo
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - FIFO support for storage daemon
+ depends = bareos-storage=14.2.5
+
+pkgname = bareos-tools
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - CLI tools (bcopy, bextract, bls, bregeq, bwild)
+ depends = bareos-common=14.2.5
+
+pkgname = bareos-filedaemon
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - File daemon
+ groups = bareos
+ groups = bareos-client
+ depends = bareos-common=14.2.5
+
+pkgname = bareos-storage
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Storage daemon
+ depends = bareos-common=14.2.5
+ optdepends = openssl: network encryption between daemons
+ optdepends = lzo2: LZO compression for Storage Daemon
+
+pkgname = bareos-storage-tape
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Tape support for storage daemon
+ depends = bareos-storage=14.2.5
+ depends = mtx
+
+pkgname = bareos-director-python-plugin
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Python plugin for director daemon
+ depends = bareos-director=14.2.5
+ depends = python3
+
+pkgname = bareos-filedaemon-python-plugin
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Python plugin for file daemon
+ depends = bareos-filedaemon=14.2.5
+ depends = python3
+
+pkgname = bareos-storage-python-plugin
+ pkgdesc = Bareos - Backup Archiving REcovery Open Sourced - Python plugin for storage daemon
+ depends = bareos-storage=14.2.5
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..71e79530dea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Michael Spradling <mike@mspradling.com>
+
+. PKGBUILD.common
+
+pkgbase='bareos'
+pkgname=("${pkgbase}-common"
+ "${pkgbase}-bconsole"
+ "${pkgbase}-database-common"
+ "${pkgbase}-database-mysql"
+ "${pkgbase}-database-postgresql"
+ "${pkgbase}-database-sqlite3"
+ "${pkgbase}-database-tools"
+ "${pkgbase}-devel"
+ "${pkgbase}-director"
+ "${pkgbase}-storage-fifo"
+ "${pkgbase}-tools"
+ "${pkgbase}-filedaemon"
+ "${pkgbase}-storage"
+ "${pkgbase}-storage-tape"
+ "${pkgbase}-director-python-plugin"
+ "${pkgbase}-filedaemon-python-plugin"
+ "${pkgbase}-storage-python-plugin")
+
+source=("https://github.com/bareos/bareos/archive/Release/${pkgver}.tar.gz"
+ "PKGBUILD.common")
+
+sha256sums=('f42bc34afa913cfb4d6b7ef8856c7195d8b13b21c987da1039d46e6c60f06720'
+ '56eb1e45003fa2de137333bfc74a85518b0dae21c50e49f48df44c2e63bb3ebf')
diff --git a/PKGBUILD.common b/PKGBUILD.common
new file mode 100644
index 00000000000..ea0915ed0ae
--- /dev/null
+++ b/PKGBUILD.common
@@ -0,0 +1,261 @@
+# Maintainer: Michael Spradling <mike@mspradling.com>
+# Contributor: Daniel Albers <daniel@lbe.rs>
+
+pkgver=14.2.5
+pkgrel=3
+arch=(i686 x86_64)
+groups=('bareos')
+pkgdesc="Bareos - Backup Archiving REcovery Open Sourced"
+url="http://www.bareos.org"
+license=('AGPL3')
+makedepends=('sqlite' 'libmariadbclient' 'postgresql-libs')
+optdepends=('openssl: network encryption between daemons')
+
+_instdir="${startdir}/install"
+_pkgsrc="${startdir}/src/bareos-Release-${pkgver}"
+_configure_args=" --prefix=/usr \
+ --with-sbin-perm=755 \
+ --libdir=/usr/lib/bareos \
+ --sysconfdir=/etc/bareos \
+ --with-archivedir=/var/lib/bareos/storage \
+ --with-backenddir=/usr/lib/bareos/backends \
+ --with-configtemplatedir=/usr/lib/bareos/defaultconfigs \
+ --with-scriptdir=/usr/lib/bareos/scripts \
+ --with-plugindir=/usr/lib/bareos/plugins \
+ --with-working-dir=/var/lib/bareos \
+ --with-pid-dir=/var/lib/bareos \
+ --with-bsrdir=/var/lib/bareos \
+ --with-logdir=/var/log/bareos \
+ --with-subsys-dir=/var/lock \
+ --with-systemd=/usr/lib/systemd/system \
+ --enable-smartalloc \
+ --disable-conio \
+ --enable-readline \
+ --enable-batch-insert \
+ --enable-dynamic-debian-package-list \
+ --enable-dynamic-cats-backends \
+ --enable-dynamic-storage-backends \
+ --enable-acl \
+ --enable-xattr \
+ --enable-scsi-crypto \
+ --enable-lmdb \
+ --enable-ndmp \
+ --enable-ipv6 \
+ --with-postgresql \
+ --with-mysql \
+ --with-sqlite3 \
+ --with-openssl \
+ --with-python \
+ --enable-includes \
+ --disable-rpath"
+ #--with-dir-user=$(DIRECTOR_DAEMON_USER) \
+ #--with-dir-group=$(DAEMON_GROUP) \
+ #--with-sd-user=$(STORAGE_DAEMON_USER) \
+ #--with-sd-group=$(STORAGE_DAEMON_GROUP) \
+ #--with-fd-user=$(FILE_DAEMON_USER) \
+ #--with-fd-group=$(DAEMON_GROUP) \
+ #--with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
+ #--with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
+ #--with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
+ #--with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
+ #--with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
+ #--with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
+ #--with-basename="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \
+ #--with-hostname="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \
+
+
+build() {
+ pushd "${_pkgsrc}" &> /dev/null
+ QMAKE="/usr/bin/qmake-qt4" DISTNAME="debian" ./configure $_configure_args
+ make DESTDIR="$_instdir" install
+ popd &> /dev/null
+}
+
+_install_files() {
+ pushd $_instdir &> /dev/null
+
+ while read file
+ do
+ file=$(echo $file | sed 's,\([^ ]*\).*,\1,g') # Remove second param, if exists
+
+ if [[ "$file" =~ "plugins" ]]; then
+ # TODO: Where are the plugin files
+ warning "Ignoring Plugin file: $file"
+ continue
+ fi
+
+ cp --parents -a ${file#?} ${pkgdir}
+ done < ${_pkgsrc}/debian/$1
+
+ mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin" &> /dev/null || true
+
+ popd &> /dev/null
+}
+
+_etc_files() {
+ pushd $_instdir &> /dev/null
+
+ while read file
+ do
+ file=$(echo $file | sed 's,\([^ ]*\).*,\1,g') # Remove second param, if exists
+
+ if [[ "$file" =~ "/etc" ]]; then
+ out="'${file#?}' $out"
+ fi
+ done < ${_pkgsrc}/debian/$1
+
+ popd &> /dev/null
+
+ echo $out
+}
+
+package_bareos-bat() {
+ pkgdesc="${pkgdesc} - Admin Tool (GUI)"
+ depends=("bareos-common=$pkgver" "qt4")
+ makedepends+=('qt4')
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-bconsole() {
+ pkgdesc="${pkgdesc} - Admin Tool (CLI)"
+ depends=("bareos-common=$pkgver")
+ groups+=('bareos-client')
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-common() {
+ pkgdesc="${pkgdesc} - Common files"
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-database-common() {
+ pkgdesc="${pkgdesc} - Generic abstration libs and tools for sql catalog"
+ depends=("bareos-common=$pkgver")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-database-mysql() {
+ pkgdesc="${pkgdesc} - Libs and tools for mysql catalog"
+ provides=("bareos-database=$pkgver")
+ depends=("bareos-database-common=$pkgver" "mysql")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-database-postgresql() {
+ pkgdesc="${pkgdesc} - Libs and tools for postgresql catalog"
+ provides=("bareos-database=$pkgver")
+ depends=("bareos-database-common=$pkgver" "postgresql")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-database-sqlite3() {
+ pkgdesc="${pkgdesc} - Libs and tools for sqlite3 catalog"
+ provides=("bareos-database=$pkgver")
+ depends=("bareos-database-common=$pkgver" "sqlite3")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-database-tools() {
+pkgdesc="${pkgdesc} - CLI tools with database dpendencies (dbcheck, bscan)"
+ depends=("bareos-database=$pkgver")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-devel() {
+ pkgdesc="${pkgdesc} - Devel headers"
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-director() {
+ pkgdesc="${pkgdesc} - Director daemon"
+ depends=("bareos-common=$pkgver" "bareos-database-common=$pkgver" "bareos-database=$pkgver" "bareos-database-tools=$pkgver")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+
+ # Install systemd service
+ mkdir -p ${pkgdir}/usr/lib/systemd/system
+ cp ${_pkgsrc}/platforms/systemd/bareos-dir.service ${pkgdir}/usr/lib/systemd/system/
+}
+
+package_bareos-director-python-plugin() {
+ pkgdesc="${pkgdesc} - Python plugin for director daemon"
+ depends=("bareos-director=$pkgver" "python3")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-filedaemon() {
+ pkgdesc="${pkgdesc} - File daemon"
+ depends=("bareos-common=$pkgver")
+ groups+=('bareos-client')
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+
+ # Install systemd service
+ mkdir -p ${pkgdir}/usr/lib/systemd/system
+ cp ${_pkgsrc}/platforms/systemd/bareos-fd.service ${pkgdir}/usr/lib/systemd/system/
+}
+
+package_bareos-filedaemon-python-plugin() {
+ pkgdesc="${pkgdesc} - Python plugin for file daemon"
+ depends=("bareos-filedaemon=$pkgver" "python3")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-storage() {
+ pkgdesc="${pkgdesc} - Storage daemon"
+ optdepends+=('lzo2: LZO compression for Storage Daemon')
+ depends=("bareos-common=$pkgver")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+
+ # Install systemd service
+ mkdir -p ${pkgdir}/usr/lib/systemd/system
+ cp ${_pkgsrc}/platforms/systemd/bareos-sd.service ${pkgdir}/usr/lib/systemd/system/
+}
+
+package_bareos-storage-fifo() {
+ pkgdesc="${pkgdesc} - FIFO support for storage daemon"
+ depends=("bareos-storage=$pkgver")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-storage-python-plugin() {
+ pkgdesc="${pkgdesc} - Python plugin for storage daemon"
+ depends=("bareos-storage=$pkgver")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-storage-tape() {
+ pkgdesc="${pkgdesc} - Tape support for storage daemon"
+ depends=("bareos-storage=$pkgver" "mtx")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-tools() {
+ pkgdesc="${pkgdesc} - CLI tools (bcopy, bextract, bls, bregeq, bwild)"
+ depends=("bareos-common=$pkgver")
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}
+
+package_bareos-traymonitor() {
+ pkgdesc="${pkgdesc} - Tray Monitor (QT)"
+ depends=("bareos-common=$pkgver" "qt4")
+ makedepends+=('qt4')
+ declare -a backup=(`_etc_files ${pkgname}.install`)
+ _install_files ${pkgname}.install
+}