mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
plocate: update to 1.1.6.
This commit is contained in:
parent
4bc3a438cb
commit
dcff3bbedc
4 changed files with 36 additions and 19 deletions
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
ulimit -n 131072
|
||||||
plocate-build /var/lib/mlocate/mlocate.db /var/lib/mlocate/plocate.db.new
|
exec pupdatedb
|
||||||
chgrp _plocate /var/lib/mlocate/plocate.db.new
|
|
||||||
mv /var/lib/mlocate/plocate.db.new /var/lib/mlocate/plocate.db
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# pupdatedb [database directory] - update a database for plocate
|
|
||||||
set -e
|
|
||||||
dbdir=${1:-${DBDIR:-/var/lib/mlocate}}
|
|
||||||
mupdatedb -o "${dbdir}/mlocate.db"
|
|
||||||
plocate-build "${dbdir}/mlocate.db" "${dbdir}/plocate.db.new"
|
|
||||||
chgrp _plocate "${dbdir}/plocate.db.new"
|
|
||||||
mv "${dbdir}/plocate.db.new" "${dbdir}/plocate.db"
|
|
21
srcpkgs/plocate/patches/musl.patch
Normal file
21
srcpkgs/plocate/patches/musl.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
--- conf.cpp
|
||||||
|
+++ conf.cpp
|
||||||
|
@@ -479,7 +479,7 @@
|
||||||
|
if (conf_scan_root != NULL)
|
||||||
|
error(EXIT_FAILURE, 0, _("--%s specified twice"),
|
||||||
|
"database-root");
|
||||||
|
- conf_scan_root = canonicalize_file_name(optarg);
|
||||||
|
+ conf_scan_root = realpath(optarg, NULL);
|
||||||
|
if (conf_scan_root == NULL)
|
||||||
|
error(EXIT_FAILURE, errno, _("invalid value `%s' of --%s"), optarg,
|
||||||
|
"database-root");
|
||||||
|
--- database-builder.h
|
||||||
|
+++ database-builder.h
|
||||||
|
@@ -3,6 +3,7 @@
|
||||||
|
|
||||||
|
#include "db.h"
|
||||||
|
|
||||||
|
+#include <unistd.h>
|
||||||
|
#include <chrono>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <memory>
|
|
@ -1,24 +1,32 @@
|
||||||
# Template file for 'plocate'
|
# Template file for 'plocate'
|
||||||
pkgname=plocate
|
pkgname=plocate
|
||||||
version=1.0.7
|
version=1.1.6
|
||||||
revision=1
|
revision=1
|
||||||
build_style=meson
|
build_style=meson
|
||||||
|
configure_args="
|
||||||
|
-Dupdatedb_progname=pupdatedb
|
||||||
|
-Dlocategroup=_plocate"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libzstd-devel"
|
makedepends="libzstd-devel"
|
||||||
depends="mlocate"
|
|
||||||
short_desc="Much faster locate based on posting lists"
|
short_desc="Much faster locate based on posting lists"
|
||||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://plocate.sesse.net/"
|
homepage="https://plocate.sesse.net/"
|
||||||
|
changelog="https://git.sesse.net/?p=plocate;a=blob_plain;f=NEWS;hb=HEAD"
|
||||||
distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
|
distfiles="https://plocate.sesse.net/download/plocate-${version}.tar.gz"
|
||||||
checksum=528541eede06170aa16488b2c24abad2e527a12053a62a4a49d0eac3a41e21d3
|
checksum=bff5d80874639003ffba34a37778081ca0a75f89ea0ca3d1bee9309332bfdbd3
|
||||||
|
|
||||||
system_accounts="_plocate"
|
system_accounts="_plocate"
|
||||||
|
|
||||||
alternatives="
|
alternatives="
|
||||||
locate:locate:/usr/bin/plocate
|
locate:locate:/usr/bin/plocate
|
||||||
locate:locate.1:/usr/share/man/man1/plocate.1
|
locate:locate.1:/usr/share/man/man1/plocate.1
|
||||||
locate:updatedb:/usr/bin/pupdatedb"
|
locate:updatedb:/usr/bin/pupdatedb
|
||||||
|
locate:updatedb.conf.5:/usr/share/man/man5/pupdatedb.conf.5"
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
|
makedepends+=" musl-legacy-compat"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
makedepends+=" libatomic-devel"
|
makedepends+=" libatomic-devel"
|
||||||
|
@ -26,8 +34,6 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# replace daily cronjob with our own version
|
|
||||||
rm ${DESTDIR}/etc/cron.daily/plocate
|
|
||||||
vinstall ${FILESDIR}/plocate.cron-daily 744 etc/cron.daily plocate-build
|
vinstall ${FILESDIR}/plocate.cron-daily 744 etc/cron.daily plocate-build
|
||||||
vbin ${FILESDIR}/pupdatedb
|
mv ${DESTDIR}/usr/share/man/man5/{,p}updatedb.conf.5
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue