diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2004-01-11 02:53:11 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2004-01-11 02:53:11 +0000 |
commit | 01c1db55c9998bdccb3f1645cb0070d4c353a1d3 (patch) | |
tree | f1792a16cd7a9d6c63477726b3d339280ff0b36d /sys-apps/slocate | |
parent | New version (diff) | |
download | historical-01c1db55c9998bdccb3f1645cb0070d4c353a1d3.tar.gz historical-01c1db55c9998bdccb3f1645cb0070d4c353a1d3.tar.bz2 historical-01c1db55c9998bdccb3f1645cb0070d4c353a1d3.zip |
Add devpts and usbfs to the list of pruned filesystems. Bump revision as this is a runtime change.
Diffstat (limited to 'sys-apps/slocate')
-rw-r--r-- | sys-apps/slocate/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/slocate/Manifest | 14 | ||||
-rw-r--r-- | sys-apps/slocate/files/digest-slocate-2.7-r5 | 1 | ||||
-rw-r--r-- | sys-apps/slocate/files/updatedb.conf | 4 | ||||
-rw-r--r-- | sys-apps/slocate/slocate-2.7-r5.ebuild | 76 |
5 files changed, 95 insertions, 9 deletions
diff --git a/sys-apps/slocate/ChangeLog b/sys-apps/slocate/ChangeLog index 7b68e845dbbd..d32c6c08305e 100644 --- a/sys-apps/slocate/ChangeLog +++ b/sys-apps/slocate/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/slocate # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/ChangeLog,v 1.30 2004/01/09 16:19:19 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/ChangeLog,v 1.31 2004/01/11 02:53:11 robbat2 Exp $ + +*slocate-2.7-r5 (10 Jan 2004) + + 10 Jan 2004; Robin H. Johnson <robbat2@gentoo.org> slocate-2.7-r5.ebuild, + files/updatedb.conf: + Add devpts and usbfs to the list of pruned filesystems. Bump revision as this + is a runtime change. 09 Jan 2004; Aron Griffis <agriffis@gentoo.org> slocate-2.7-r4.ebuild: stable on x86, alpha, ia64 diff --git a/sys-apps/slocate/Manifest b/sys-apps/slocate/Manifest index be7d075aa45d..c0c82b20ba05 100644 --- a/sys-apps/slocate/Manifest +++ b/sys-apps/slocate/Manifest @@ -1,9 +1,11 @@ -MD5 e01e8fbf6e587d4caac42ac188d9a731 ChangeLog 4102 -MD5 9a0d03adcb00d7a3a7adc6cf8e6b1781 slocate-2.7-r2.ebuild 2204 +MD5 a8661e6fcf216e4a82397eaeb41f962b slocate-2.7-r2.ebuild 2203 +MD5 574eea567aec951d77b34855dab88998 slocate-2.7-r4.ebuild 2320 +MD5 139879fbe5432ee948cf6572f285d5f6 slocate-2.7-r3.ebuild 2324 +MD5 eae166d200a558d91e225b070ab2461c ChangeLog 4334 +MD5 bdcde3d27674173763eaa4babb7e7797 slocate-2.7-r5.ebuild 2319 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 89178d2acbcd5d37b4e413a7a3b82745 slocate-2.7-r3.ebuild 2325 -MD5 1b0c887ad7c73129d5ef845d7c69fbe2 slocate-2.7-r4.ebuild 2321 -MD5 174498f3041f595529585601c5379c5b files/updatedb.conf 602 +MD5 48101f2cd37dfef452a21566e83f2c88 files/updatedb.conf 613 MD5 f03ed3063ac796dbf26187038a928db8 files/digest-slocate-2.7-r2 62 -MD5 f03ed3063ac796dbf26187038a928db8 files/digest-slocate-2.7-r4 62 MD5 f03ed3063ac796dbf26187038a928db8 files/digest-slocate-2.7-r3 62 +MD5 f03ed3063ac796dbf26187038a928db8 files/digest-slocate-2.7-r4 62 +MD5 f03ed3063ac796dbf26187038a928db8 files/digest-slocate-2.7-r5 62 diff --git a/sys-apps/slocate/files/digest-slocate-2.7-r5 b/sys-apps/slocate/files/digest-slocate-2.7-r5 new file mode 100644 index 000000000000..f312912325b1 --- /dev/null +++ b/sys-apps/slocate/files/digest-slocate-2.7-r5 @@ -0,0 +1 @@ +MD5 4872830642ea2ed5f9aff932720583c9 slocate-2.7.tar.gz 87240 diff --git a/sys-apps/slocate/files/updatedb.conf b/sys-apps/slocate/files/updatedb.conf index 5afe7b3402df..819dd65fb2cc 100644 --- a/sys-apps/slocate/files/updatedb.conf +++ b/sys-apps/slocate/files/updatedb.conf @@ -1,11 +1,11 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/files/updatedb.conf,v 1.6 2004/01/06 16:13:51 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/files/updatedb.conf,v 1.7 2004/01/11 02:53:11 robbat2 Exp $ # This file sets environment variables which are used by updatedb # filesystems which are pruned from updatedb database -PRUNEFS="NFS nfs afs proc smbfs autofs auto iso9660 devfs tmpfs ncpfs sysfs supermount" +PRUNEFS="NFS nfs afs proc smbfs autofs auto iso9660 devfs tmpfs ncpfs sysfs supermount devpts usbfs" export PRUNEFS # paths which are pruned from updatedb database PRUNEPATHS="/tmp /var/tmp" diff --git a/sys-apps/slocate/slocate-2.7-r5.ebuild b/sys-apps/slocate/slocate-2.7-r5.ebuild new file mode 100644 index 000000000000..0b7a0a2281b4 --- /dev/null +++ b/sys-apps/slocate/slocate-2.7-r5.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/slocate-2.7-r5.ebuild,v 1.1 2004/01/11 02:53:11 robbat2 Exp $ + +inherit flag-o-matic + +DESCRIPTION="secure way to index and quickly search for files on your system (drop-in replacement for 'locate')" +HOMEPAGE="http://www.geekreview.org/slocate/" +SRC_URI="ftp://ftp.geekreview.org/slocate/src/slocate-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~amd64 ~ppc ~sparc alpha ~hppa ~mips ia64 ppc64" + +DEPEND="sys-apps/shadow + >=sys-apps/sed-4" + +src_compile() { + filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + econf || die + emake || die +} + +src_install() { + dodir /usr/share/man/man1 + + sed -i -e "/groupadd/s/^/#/;/chown.*slocate/s/^/#/" Makefile || die + make DESTDIR=${D} install || die + + # make install for this package is blocked by sandbox + dosym slocate /usr/bin/locate + dosym slocate /usr/bin/updatedb + fperms 0755 /etc/cron.daily/slocate + keepdir /var/lib/slocate + + # If this file doesn't exist, the first run of updatedb will create + # it anyway. But doing this shuts it up. + if [ ! -f ${ROOT}/var/lib/slocate/slocate.db ] ; then + touch ${D}/var/lib/slocate/slocate.db + fi + + dodoc INSTALL LICENSE COPYING AUTHORS NEWS README ChangeLog + + # man page fixing + rm -rf ${D}/usr/share/man/man1/locate.1.gz + dosym slocate.1.gz /usr/share/man/man1/locate.1.gz + + + insinto /etc + doins ${FILESDIR}/updatedb.conf + fperms 0644 /etc/updatedb.conf +} + +pkg_postinst() { + touch /var/lib/slocate/slocate.db + + # /var/lib/slocate is owned by group slocate and so is the executable + if ! groupmod slocate; then + groupadd slocate 2> /dev/null || die "Failed to create slocate group" + fi + + chown root:slocate /usr/bin/slocate + + # If nobody else minds I'd like to see 2711 become the system wide default. -solar + has sfperms ${FEATURES} && chmod 2711 /usr/bin/slocate || chmod 2755 /usr/bin/slocate + + chown -R root:slocate /var/lib/slocate + chmod 0750 /var/lib/slocate + + ewarn "If you merged slocate-2.7.ebuild, please remove" + ewarn "/etc/cron.daily/slocate.cron the .cron is no longer" + ewarn "in the filename" + echo + einfo "Note that the /etc/updatedb.conf file is generic" + einfo "Please customize it to your system requirements" +} |