2008-10-23 17:06:57 +00:00
|
|
|
# Template file for 'findutils'
|
|
|
|
pkgname=findutils
|
2009-06-20 07:25:10 +00:00
|
|
|
version=4.4.2
|
2014-09-22 08:32:23 +00:00
|
|
|
revision=8
|
|
|
|
bootstrap=yes
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-02-06 19:52:23 +00:00
|
|
|
configure_args="--localstatedir=/var/lib/locate
|
|
|
|
gl_cv_func_wcwidth_works=yes
|
|
|
|
gl_cv_header_working_fcntl_h=yes ac_cv_func_fnmatch_gnu=yes"
|
2008-10-23 17:06:57 +00:00
|
|
|
short_desc="The GNU Find Utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-06 07:56:41 +00:00
|
|
|
license="GPL-3"
|
2013-02-01 10:32:03 +00:00
|
|
|
homepage="http://www.gnu.org/software/findutils"
|
|
|
|
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
|
2009-06-20 07:25:10 +00:00
|
|
|
checksum=434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a
|
2008-10-23 17:06:57 +00:00
|
|
|
|
2014-02-27 10:37:18 +00:00
|
|
|
make_dirs="/var/lib/locate 0755 root root"
|
|
|
|
conf_files="/etc/updatedb.conf"
|
|
|
|
conflicts="chroot-findutils>=0"
|
|
|
|
|
2014-06-26 08:50:06 +00: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 10:32:03 +00:00
|
|
|
post_install() {
|
2010-11-30 15:33:19 +00:00
|
|
|
# Install the cron daily job.
|
2011-11-06 07:56:41 +00:00
|
|
|
vinstall ${FILESDIR}/updatedb.cron-daily 744 etc/cron.daily updatedb
|
2010-11-30 15:33:19 +00:00
|
|
|
# Install the updatedb conf file.
|
2011-11-06 07:56:41 +00:00
|
|
|
vinstall ${FILESDIR}/updatedb.conf 640 etc
|
2009-02-26 21:57:32 +00:00
|
|
|
}
|