2008-10-23 19:06:57 +02:00
|
|
|
# Template file for 'findutils'
|
|
|
|
pkgname=findutils
|
2009-06-20 09:25:10 +02:00
|
|
|
version=4.4.2
|
2015-06-04 08:33:55 +02:00
|
|
|
revision=14
|
2014-09-22 10:32:23 +02:00
|
|
|
bootstrap=yes
|
2015-03-04 19:44:01 +01:00
|
|
|
build_pie=yes
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2015-06-04 08:33:55 +02:00
|
|
|
configure_args="--localstatedir=/var/lib/locate"
|
2008-10-23 19:06:57 +02:00
|
|
|
short_desc="The GNU Find Utilities"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-11-06 08:56:41 +01:00
|
|
|
license="GPL-3"
|
2013-02-01 11:32:03 +01:00
|
|
|
homepage="http://www.gnu.org/software/findutils"
|
2015-05-22 11:47:56 +02:00
|
|
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
2009-06-20 09:25:10 +02:00
|
|
|
checksum=434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a
|
2008-10-23 19:06:57 +02:00
|
|
|
|
2014-02-27 11:37:18 +01:00
|
|
|
make_dirs="/var/lib/locate 0755 root root"
|
|
|
|
conf_files="/etc/updatedb.conf"
|
|
|
|
conflicts="chroot-findutils>=0"
|
|
|
|
|
2014-06-26 10:50:06 +02:00
|
|
|
pre_configure() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl)
|
|
|
|
# Special case for musl libc; "fix" issues with gnulib.
|
|
|
|
: > gnulib/lib/freadahead.c
|
|
|
|
: > gnulib/lib/fseeko.c
|
|
|
|
echo "void close_stdin(void) {}" > gnulib/lib/closein.c
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
2013-02-01 11:32:03 +01:00
|
|
|
post_install() {
|
2010-11-30 16:33:19 +01:00
|
|
|
# Install the cron daily job.
|
2011-11-06 08:56:41 +01:00
|
|
|
vinstall ${FILESDIR}/updatedb.cron-daily 744 etc/cron.daily updatedb
|
2010-11-30 16:33:19 +01:00
|
|
|
# Install the updatedb conf file.
|
2011-11-06 08:56:41 +01:00
|
|
|
vinstall ${FILESDIR}/updatedb.conf 640 etc
|
2009-02-26 22:57:32 +01:00
|
|
|
}
|