[arch-commits] Commit in plocate/repos/community-x86_64 (7 files)

Morten Linderud foxboron at archlinux.org
Thu Dec 10 19:37:55 UTC 2020


    Date: Thursday, December 10, 2020 @ 19:37:54
  Author: foxboron
Revision: 773067

archrelease: copy trunk to community-x86_64

Added:
  plocate/repos/community-x86_64/PKGBUILD
    (from rev 773066, plocate/trunk/PKGBUILD)
  plocate/repos/community-x86_64/plocate.install
    (from rev 773066, plocate/trunk/plocate.install)
  plocate/repos/community-x86_64/plocate.sysusers
    (from rev 773066, plocate/trunk/plocate.sysusers)
  plocate/repos/community-x86_64/plocate.tmpfiles
    (from rev 773066, plocate/trunk/plocate.tmpfiles)
Deleted:
  plocate/repos/community-x86_64/PKGBUILD
  plocate/repos/community-x86_64/plocate-build.service
  plocate/repos/community-x86_64/plocate.tmpfiles

-----------------------+
 PKGBUILD              |   85 ++++++++++++++++++++++++------------------------
 plocate-build.service |   11 ------
 plocate.install       |   10 +++++
 plocate.sysusers      |    1 
 plocate.tmpfiles      |    2 -
 5 files changed, 56 insertions(+), 53 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-10 19:37:36 UTC (rev 773066)
+++ PKGBUILD	2020-12-10 19:37:54 UTC (rev 773067)
@@ -1,41 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: Hans-Nikolai Viessmann <hans AT viess DOT mn>
-
-pkgname=plocate
-pkgver=1.0.7
-pkgrel=1
-pkgdesc="Alternative to locate, faster and compatible with mlocate's database."
-arch=('x86_64' 'i686')
-url="https://plocate.sesse.net"
-license=('GPL2')
-depends=('zstd' 'liburing' 'mlocate')
-makedepends=('meson')
-source=("${url}/download/${pkgname}-${pkgver}.tar.gz"
-        'plocate.tmpfiles'
-        'plocate-build.service')
-sha256sums=('528541eede06170aa16488b2c24abad2e527a12053a62a4a49d0eac3a41e21d3'
-            'd2a8a86dc9b4bb2bf24dbfeb302101fca9dded2fbe204892f6ee3f9a9836a7dc'
-            '1aacfdfb905d78eaa207f6cf295b0993c0863d27445eb02d7236bc8075b22e7e')
-
-build() {
-    cd $pkgname-$pkgver
-
-    arch-meson \
-        -Dinstall_cron=false \
-        -Dlocategroup=locate \
-        ../build
-
-    meson compile -C ../build
-}
-
-package() {
-    cd $pkgname-$pkgver
-    DESTDIR="$pkgdir" meson install -C ../build
-
-    chgrp 21 "${pkgdir}/usr/bin/plocate"
-    chmod 2755 "${pkgdir}/usr/bin/plocate"
-
-    install -Dm644 ../plocate-build.service "${pkgdir}/usr/lib/systemd/system/plocate-build.service"
-    install ../build/update-plocate.sh "${pkgdir}/usr/bin/update-plocate.sh"
-    install -Dm644 ../plocate.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/plocate.conf"
-}

Copied: plocate/repos/community-x86_64/PKGBUILD (from rev 773066, plocate/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-10 19:37:54 UTC (rev 773067)
@@ -0,0 +1,44 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Hans-Nikolai Viessmann <hans AT viess DOT mn>
+
+pkgname=plocate
+pkgver=1.1.2
+pkgrel=1
+pkgdesc="Alternative to locate, faster and compatible with mlocate's database."
+arch=('x86_64' 'i686')
+url="https://plocate.sesse.net"
+license=('GPL2')
+install=plocate.install
+depends=('zstd' 'liburing' 'systemd')
+makedepends=('meson')
+source=("${url}/download/${pkgname}-${pkgver}.tar.gz"
+        'plocate.sysusers'
+        'plocate.tmpfiles')
+sha256sums=('d59dc67f8621f702507601cef5cd548e227e800e6d2a032fa83a2cdcd2e38cf7'
+            '1713a8fc8b81f4a390bf8597c4c0e917474379002dcc984aad2f44218d10c82a'
+            'adda399ac42f0faa002caab5bf932777c0006ae7c4387add859c9f77321b4202')
+
+build() {
+    cd $pkgname-$pkgver
+    arch-meson \
+        -Dinstall_cron=false \
+        -Dinstall_systemd=true\
+        -Dlocategroup=locate \
+        -Dupdatedb_progname=updatedb.plocate \
+        ../build
+    meson compile -C ../build
+}
+
+package() {
+    cd $pkgname-$pkgver
+    DESTDIR="$pkgdir" meson install -C ../build
+
+    chgrp 21 "${pkgdir}/usr/bin/plocate"
+    chmod 2755 "${pkgdir}/usr/bin/plocate"
+
+    install -Dm644 ../plocate.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/plocate.conf"
+    install -Dm644 ../plocate.sysusers "$pkgdir/usr/lib/sysusers.d/plocate.conf"
+
+    mv "$pkgdir/usr/share/man/man5/updatedb.conf.5" \
+       "$pkgdir/usr/share/man/man5/updatedb.plocate.conf.5"
+}

Deleted: plocate-build.service
===================================================================
--- plocate-build.service	2020-12-10 19:37:36 UTC (rev 773066)
+++ plocate-build.service	2020-12-10 19:37:54 UTC (rev 773067)
@@ -1,11 +0,0 @@
-[Unit]
-Description=Update plocate database
-After=updatedb.service
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/update-plocate.sh
-IOSchedulingClass=idle
-
-[Install]
-WantedBy=updatedb.service

Copied: plocate/repos/community-x86_64/plocate.install (from rev 773066, plocate/trunk/plocate.install)
===================================================================
--- plocate.install	                        (rev 0)
+++ plocate.install	2020-12-10 19:37:54 UTC (rev 773067)
@@ -0,0 +1,10 @@
+post_upgrade() {
+  cat << EOF
+plocate now provides it's own "updatedb". plocate-build.service is deprecated
+and should be removed. Enable plocate-updatedb.service.
+EOF
+}
+
+post_install(){
+  post_upgrade
+}

Copied: plocate/repos/community-x86_64/plocate.sysusers (from rev 773066, plocate/trunk/plocate.sysusers)
===================================================================
--- plocate.sysusers	                        (rev 0)
+++ plocate.sysusers	2020-12-10 19:37:54 UTC (rev 773067)
@@ -0,0 +1 @@
+g locate 21 - -

Deleted: plocate.tmpfiles
===================================================================
--- plocate.tmpfiles	2020-12-10 19:37:36 UTC (rev 773066)
+++ plocate.tmpfiles	2020-12-10 19:37:54 UTC (rev 773067)
@@ -1 +0,0 @@
-f /var/lib/mlocate/plocate.db   0750 root locate

Copied: plocate/repos/community-x86_64/plocate.tmpfiles (from rev 773066, plocate/trunk/plocate.tmpfiles)
===================================================================
--- plocate.tmpfiles	                        (rev 0)
+++ plocate.tmpfiles	2020-12-10 19:37:54 UTC (rev 773067)
@@ -0,0 +1 @@
+f /var/lib/plocate/plocate.db   0750 root locate



More information about the arch-commits mailing list