summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-10-03 19:31:54 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-10-03 19:39:17 -0400
commitb5b4cb32041ca9e1740f31fe524d6c2e9b6bcc01 (patch)
tree99c3ae61331fc416ffb3e7e0eb1045b8b32cbebc
parente73c4b99e70022556acffb33e97f6634da5f2693 (diff)
downloadabslibre-b5b4cb32041ca9e1740f31fe524d6c2e9b6bcc01.tar.gz
abslibre-b5b4cb32041ca9e1740f31fe524d6c2e9b6bcc01.tar.bz2
abslibre-b5b4cb32041ca9e1740f31fe524d6c2e9b6bcc01.zip
libre/dbscripts: Update 2018{0925.2→1003}
- It's no longer necessary for config.local.* files to be symlinked in to /opt/dbscripts/ - The systemd service installation is now simpler
-rw-r--r--libre/dbscripts/PKGBUILD20
1 files changed, 7 insertions, 13 deletions
diff --git a/libre/dbscripts/PKGBUILD b/libre/dbscripts/PKGBUILD
index 6e83b1ccb..325acb849 100644
--- a/libre/dbscripts/PKGBUILD
+++ b/libre/dbscripts/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Luke Shumaker <lukeshu@parabola.nu>
pkgname=dbscripts
-pkgver=20180925.2
+pkgver=20181003
pkgdesc='Server-side programs for Parabola Pacman repositories'
url='https://git.parabola.nu/packages/dbscripts.git/'
license=('GPL')
@@ -23,7 +23,7 @@ pkgrel=1
arch=('any')
depends=('librelib>=20180428' libretools rsync expac mktorrent)
source=("https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
-sha256sums=('b57ddc8f26633d2770b5ec29371a90fcba5a6c564be05952a5590872e3d293ab'
+sha256sums=('bf665752574f9c5bba6b39068c15a528b11b81b8d107e79eafbd4998c4dd4582'
'SKIP')
validpgpkeys=('99195DD3BB6FE10A2F36ED8445698744D4FFBFC9') # Luke Shumaker
@@ -42,19 +42,13 @@ package() {
local file
for file in "${backup[@]}"; do
mv -T "$pkgdir/opt/$pkgname/${file##*/}" "$pkgdir/$file"
- ln -sr "$pkgdir/$file" "$pkgdir/opt/$pkgname"
+ if [[ ${file##*/} != config.* ]]; then
+ ln -sr "$pkgdir/$file" "$pkgdir/opt/$pkgname"
+ fi
done
- mkdir -p "$pkgdir"/usr/lib/systemd/system
- mv -t "$pkgdir"/usr/lib/systemd/system "$pkgdir/opt/$pkgname/systemd"/*.{service,timer}
- local src dst
- for src in "$pkgdir/opt/$pkgname/systemd"/*.d_*.conf; do
- dst="${src##*/}"
- dst="$pkgdir/usr/lib/systemd/system/${dst/.d_/.d/}"
- mkdir -p "${dst%/*}"
- mv -T "$src" "$dst"
- done
- rmdir "$pkgdir/opt/$pkgname/systemd"
+ mkdir -p "$pkgdir"/usr/lib/systemd
+ mv -T "$pkgdir/opt/$pkgname/systemd" "$pkgdir/usr/lib/systemd/system"
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
ln -sr "$pkgdir"/opt/$pkgname/README.md "$pkgdir"/usr/share/doc/$pkgname