findutils: add alternatives.
This commit is contained in:
parent
e748569b2f
commit
712a5dcd2d
2 changed files with 27 additions and 5 deletions
|
@ -4,6 +4,10 @@
|
|||
PRUNEPATHS="/media /mnt /tmp /var/tmp /var/cache /var/lock /var/run /var/spool /run"
|
||||
|
||||
# Filesystems to exclude from the database:
|
||||
PRUNEFS="afs auto autofs binfmt_misc cifs coda configfs cramfs debugfs devpts"
|
||||
PRUNEFS="$PRUNEFS devtmpfs ftpfs iso9660 mqueue ncpfs nfs nfs4 proc ramfs"
|
||||
PRUNEFS="$PRUNEFS securityfs shfs smbfs sshfs sysfs tmpfs udf usbfs vboxsf"
|
||||
PRUNEFS="afs auto autofs binfmt_misc cifs coda configfs cramfs debugfs devpts devtmpfs ftpfs iso9660 mqueue ncpfs nfs nfs4 proc ramfs securityfs shfs smbfs sshfs sysfs tmpfs udf usbfs vboxsf"
|
||||
|
||||
# Folder names that are pruned from updatedb database
|
||||
PRUNENAMES=".git .hg .svn CVS"
|
||||
|
||||
# Skip bind mounts
|
||||
PRUNE_BIND_MOUNTS="yes"
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# Template file for 'findutils'
|
||||
pkgname=findutils
|
||||
version=4.4.2
|
||||
revision=14
|
||||
revision=15
|
||||
bootstrap=yes
|
||||
build_pie=yes
|
||||
build_style=gnu-configure
|
||||
configure_args="--localstatedir=/var/lib/locate"
|
||||
configure_args="--program-prefix=g --localstatedir=/var/lib/locate"
|
||||
short_desc="The GNU Find Utilities"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
license="GPL-3"
|
||||
|
@ -17,6 +17,18 @@ make_dirs="/var/lib/locate 0755 root root"
|
|||
conf_files="/etc/updatedb.conf"
|
||||
conflicts="chroot-findutils>=0"
|
||||
|
||||
alternatives="
|
||||
locate:locate:/usr/bin/glocate
|
||||
locate:locate.1:/usr/share/man/man1/glocate
|
||||
locate:locatedb.5:/usr/share/man/man5/glocatedb
|
||||
locate:updatedb:/usr/bin/gupdatedb
|
||||
locate:updatedb.1:/usr/share/man/man1/gupdatedb
|
||||
xargs:xargs:/usr/bin/gxargs
|
||||
xargs:xargs.1:/usr/share/man/man1/gxargs.1
|
||||
find:find:/usr/bin/gfind
|
||||
find:find.1:/usr/share/man/man1/gfind.1
|
||||
"
|
||||
|
||||
pre_configure() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl)
|
||||
|
@ -32,4 +44,10 @@ post_install() {
|
|||
vinstall ${FILESDIR}/updatedb.cron-daily 744 etc/cron.daily updatedb
|
||||
# Install the updatedb conf file.
|
||||
vinstall ${FILESDIR}/updatedb.conf 640 etc
|
||||
|
||||
# remove 'g' prefix.
|
||||
for f in gbigram gcode gfrcode; do
|
||||
mv ${DESTDIR}/usr/libexec/${f} ${DESTDIR}/usr/libexec/${f#g}
|
||||
sed -i "s/${f}/${f#g}/" ${DESTDIR}/usr/bin/gupdatedb
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue