summaryrefslogtreecommitdiff
path: root/bareos
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-08 14:52:03 +0100
committerErich Eckner <git@eckner.net>2019-03-08 14:52:03 +0100
commit4610fe9e1f026a6b18f62c4e4032eb4ace1b9268 (patch)
tree007e2eeb2e0849637640dfbce1a5bbb133362d93 /bareos
parent0130ea06ae68b607a87d06d6ceceacbe7c799228 (diff)
downloadarchlinuxewe-4610fe9e1f026a6b18f62c4e4032eb4ace1b9268.tar.xz
bareos: sloppier copying (more libs copied)
Diffstat (limited to 'bareos')
-rw-r--r--bareos/PKGBUILD29
1 files changed, 21 insertions, 8 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD
index 8eb194722..882a50549 100644
--- a/bareos/PKGBUILD
+++ b/bareos/PKGBUILD
@@ -99,19 +99,31 @@ _cp() {
cp -a "$1" "$2"
}
+_cp_all() {
+ mkdir -p "$(dirname $2)"
+ cp -a "$1"* "$2"
+}
+
package_bareos-common() {
# Matches bareos-common.install.in
pkgdesc="${pkgdesc} - Common files"
depends=('libcap' 'openssl' 'acl' 'bash' 'lzo' 'jansson' 'zlib')
install=bareos-common.install
+# are these really 'common'?
+# usr/lib/bareos/libbareoslmdb.so
+# usr/lib/bareos/libbareossd.so
+
for f in \
usr/lib/bareos/libbareos.so \
- usr/lib/bareos/libbareos.so.${pkgver%%.*} \
- usr/lib/bareos/libbareos.so.$pkgver \
usr/lib/bareos/libbareosfind.so \
- usr/lib/bareos/libbareosfind.so.${pkgver%%.*} \
- usr/lib/bareos/libbareosfind.so.$pkgver \
+ usr/lib/bareos/libbareoslmdb.so \
+ usr/lib/bareos/libbareossd.so \
+ ; do
+ _cp_all $srcdir/install/$f $pkgdir/$f
+ done
+
+ for f in \
usr/lib/bareos/scripts/bareos-config \
usr/lib/bareos/scripts/bareos-config-lib.sh \
usr/lib/bareos/scripts/btraceback.gdb \
@@ -149,11 +161,12 @@ package_bareos-database-common() {
for f in \
usr/lib/bareos/libbareoscats.so \
- usr/lib/bareos/libbareoscats.so.${pkgver%%.*} \
- usr/lib/bareos/libbareoscats.so.$pkgver \
usr/lib/bareos/libbareossql.so \
- usr/lib/bareos/libbareossql.so.${pkgver%%.*} \
- usr/lib/bareos/libbareossql.so.$pkgver \
+ ; do
+ _cp_all $srcdir/install/$f $pkgdir/$f
+ done
+
+ for f in \
usr/lib/bareos/scripts/create_bareos_database \
usr/lib/bareos/scripts/drop_bareos_database \
usr/lib/bareos/scripts/drop_bareos_tables \