Date: Wednesday, April 21, 2021 @ 13:21:33
  Author: foutrelis
Revision: 412982

archrelease: copy trunk to testing-x86_64

Added:
  mlocate/repos/testing-x86_64/
  mlocate/repos/testing-x86_64/PKGBUILD
    (from rev 412981, mlocate/trunk/PKGBUILD)
  mlocate/repos/testing-x86_64/mlocate.install
    (from rev 412981, mlocate/trunk/mlocate.install)
  mlocate/repos/testing-x86_64/sysusers.d
    (from rev 412981, mlocate/trunk/sysusers.d)
  mlocate/repos/testing-x86_64/updatedb.conf
    (from rev 412981, mlocate/trunk/updatedb.conf)
  mlocate/repos/testing-x86_64/updatedb.service
    (from rev 412981, mlocate/trunk/updatedb.service)
  mlocate/repos/testing-x86_64/updatedb.timer
    (from rev 412981, mlocate/trunk/updatedb.timer)

------------------+
 PKGBUILD         |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 mlocate.install  |    7 +++++
 sysusers.d       |    1 
 updatedb.conf    |    4 ++
 updatedb.service |   14 ++++++++++
 updatedb.timer   |    7 +++++
 6 files changed, 106 insertions(+)

Copied: mlocate/repos/testing-x86_64/PKGBUILD (from rev 412981, 
mlocate/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2021-04-21 13:21:33 UTC (rev 412982)
@@ -0,0 +1,73 @@
+# Maintainer: Gaetan Bisson <[email protected]>
+# Contributor: Allan McRae <[email protected]>
+# Contributor: lydgate
+
+pkgname=mlocate
+pkgver=0.26.git.20170220
+_commit=c98bf6595703456558a6f9c163c746cdaa9e591f
+pkgrel=7
+pkgdesc='Merging locate/updatedb implementation'
+url='https://pagure.io/mlocate'
+arch=('x86_64')
+license=('GPL')
+backup=('etc/updatedb.conf')
+depends=('glibc')
+makedepends=('git')
+install=mlocate.install
+source=("git+https://pagure.io/mlocate.git#commit=$_commit";
+        
'git+https://git.savannah.gnu.org/git/gnulib.git#commit=5861339993f3014cfad1b94fc7fe366fc2573598'
+       'sysusers.d'
+       'updatedb.conf'
+       'updatedb.timer'
+       'updatedb.service')
+sha256sums=('SKIP'
+            'SKIP'
+            '1713a8fc8b81f4a390bf8597c4c0e917474379002dcc984aad2f44218d10c82a'
+            'd00796741e2194032d0185b40de70ff5c8a11fda416a70434eb0aa2020981f91'
+            '94520117a4a2e16b5f2311c406904369d72690b8998c39ee4cf758009fdddbcb'
+            'af0db83e34ffd0325101042760d4a5e3bccacbc3a0ef42c997e42507bf4ba6a3')
+
+prepare() {
+       cd "${srcdir}/${pkgname}"
+       sed -i '/^groupname /s/mlocate/locate/' Makefile.am
+       ../gnulib/gnulib-tool --import # See file: ./HACKING
+       autoreconf --install
+}
+
+build() {
+       cd "${srcdir}/${pkgname}"
+       ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
+       make
+}
+
+check() {
+       cd "${srcdir}/${pkgname}"
+       make check
+}
+
+package() {
+       cd "${srcdir}/${pkgname}"
+
+       make DESTDIR="${pkgdir}" install
+
+       # fix group and permissions of /var/lib/mlocate; the Makefile does not
+       # do this because it uses a group name instead of a group id and fails
+       # 
https://lists.archlinux.org/pipermail/arch-general/2018-June/045165.html
+       chgrp 21 "${pkgdir}/var/lib/mlocate"
+       chmod 750 "${pkgdir}/var/lib/mlocate"
+
+       chgrp 21 "${pkgdir}/usr/bin/locate"
+       chmod 2755 "${pkgdir}/usr/bin/locate"
+       ln -s locate "${pkgdir}/usr/bin/slocate"
+
+       install -dm755 "${pkgdir}/var/lib"
+       install -dm750 -g21 "${pkgdir}/var/lib/locate"
+
+       install -Dm644 ../updatedb.conf "${pkgdir}/etc/updatedb.conf"
+       install -Dm644 ../sysusers.d "${pkgdir}/usr/lib/sysusers.d/locate.conf"
+       install -Dm644 ../updatedb.timer 
"${pkgdir}/usr/lib/systemd/system/updatedb.timer"
+       install -Dm644 ../updatedb.service 
"${pkgdir}/usr/lib/systemd/system/updatedb.service"
+
+       install -d "${pkgdir}/usr/lib/systemd/system/timers.target.wants"
+       ln -s ../updatedb.timer 
"${pkgdir}/usr/lib/systemd/system/timers.target.wants/updatedb.timer"
+}

Copied: mlocate/repos/testing-x86_64/mlocate.install (from rev 412981, 
mlocate/trunk/mlocate.install)
===================================================================
--- testing-x86_64/mlocate.install                              (rev 0)
+++ testing-x86_64/mlocate.install      2021-04-21 13:21:33 UTC (rev 412982)
@@ -0,0 +1,7 @@
+post_upgrade() {
+       if (( $(vercmp $2 0.26.git.20170220-5) < 0 )); then
+               # fix group and permissions of /var/lib/mlocate
+               chgrp 21 var/lib/mlocate
+               chmod 750 var/lib/mlocate
+       fi
+}

Copied: mlocate/repos/testing-x86_64/sysusers.d (from rev 412981, 
mlocate/trunk/sysusers.d)
===================================================================
--- testing-x86_64/sysusers.d                           (rev 0)
+++ testing-x86_64/sysusers.d   2021-04-21 13:21:33 UTC (rev 412982)
@@ -0,0 +1 @@
+g locate 21 - -

Copied: mlocate/repos/testing-x86_64/updatedb.conf (from rev 412981, 
mlocate/trunk/updatedb.conf)
===================================================================
--- testing-x86_64/updatedb.conf                                (rev 0)
+++ testing-x86_64/updatedb.conf        2021-04-21 13:21:33 UTC (rev 412982)
@@ -0,0 +1,4 @@
+PRUNE_BIND_MOUNTS = "yes"
+PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda 
configfs cpuset cramfs debugfs devpts devtmpfs ecryptfs exofs ftpfs fuse 
fuse.encfs fuse.s3fs fuse.sshfs fusectl gfs gfs2 hugetlbfs inotifyfs iso9660 
jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs 
securityfs selinuxfs sfs shfs smbfs sockfs sshfs sysfs tmpfs ubifs udf usbfs 
vboxsf"
+PRUNENAMES = ".git .hg .svn"
+PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev /var/cache 
/var/lib/pacman/local /var/lock /var/run /var/spool /var/tmp"

Copied: mlocate/repos/testing-x86_64/updatedb.service (from rev 412981, 
mlocate/trunk/updatedb.service)
===================================================================
--- testing-x86_64/updatedb.service                             (rev 0)
+++ testing-x86_64/updatedb.service     2021-04-21 13:21:33 UTC (rev 412982)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Update locate database
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/updatedb
+Nice=19
+IOSchedulingClass=idle
+IOSchedulingPriority=7
+
+PrivateTmp=true
+PrivateDevices=true
+PrivateNetwork=true
+ProtectSystem=full

Copied: mlocate/repos/testing-x86_64/updatedb.timer (from rev 412981, 
mlocate/trunk/updatedb.timer)
===================================================================
--- testing-x86_64/updatedb.timer                               (rev 0)
+++ testing-x86_64/updatedb.timer       2021-04-21 13:21:33 UTC (rev 412982)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily locate database update
+
+[Timer]
+OnCalendar=daily
+RandomizedDelaySec=12h
+Persistent=true

Reply via email to