diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2007-07-08 10:26:09 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2007-07-08 10:26:09 +0000 |
commit | 1fb4cb2d1f62210ed122f87df2cc330d58f4247b (patch) | |
tree | 5454eb8d2091eb3a61de8ab609dd39c006635f3e /sys-apps/mlocate | |
parent | Added local use flag ipfilter for app-admin/sshguard (diff) | |
download | gentoo-2-1fb4cb2d1f62210ed122f87df2cc330d58f4247b.tar.gz gentoo-2-1fb4cb2d1f62210ed122f87df2cc330d58f4247b.tar.bz2 gentoo-2-1fb4cb2d1f62210ed122f87df2cc330d58f4247b.zip |
new ebuild for bug 127010, thanks to José Romildo Malaquias <j.romildo@gmail.com>
(Portage version: 2.1.2.9)
Diffstat (limited to 'sys-apps/mlocate')
-rw-r--r-- | sys-apps/mlocate/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/mlocate/Manifest | 24 | ||||
-rw-r--r-- | sys-apps/mlocate/files/digest-mlocate-0.17 | 3 | ||||
-rw-r--r-- | sys-apps/mlocate/files/mlocate.cron | 11 | ||||
-rw-r--r-- | sys-apps/mlocate/files/updatedb.conf | 14 | ||||
-rw-r--r-- | sys-apps/mlocate/metadata.xml | 9 | ||||
-rw-r--r-- | sys-apps/mlocate/mlocate-0.17.ebuild | 59 |
7 files changed, 131 insertions, 0 deletions
diff --git a/sys-apps/mlocate/ChangeLog b/sys-apps/mlocate/ChangeLog new file mode 100644 index 000000000000..2a184b27e0fd --- /dev/null +++ b/sys-apps/mlocate/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-apps/mlocate +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mlocate/ChangeLog,v 1.1 2007/07/08 10:26:09 opfer Exp $ + +*mlocate-0.17 (08 Jul 2007) + + 08 Jul 2007; Christian Faulhammer <opfer@gentoo.org> +files/mlocate.cron, + +files/updatedb.conf, +metadata.xml, +mlocate-0.17.ebuild: + new ebuild for bug 127010, thanks to José Romildo Malaquias + <j.romildo@gmail.com> + diff --git a/sys-apps/mlocate/Manifest b/sys-apps/mlocate/Manifest new file mode 100644 index 000000000000..e4439a00ebe0 --- /dev/null +++ b/sys-apps/mlocate/Manifest @@ -0,0 +1,24 @@ +AUX mlocate.cron 152 RMD160 bc5c48ff209516873ac858f1ee9f88b635507fb9 SHA1 3566c291ec0644051029e2c6b75e15957ab1e8a0 SHA256 2d682a0938a7d855b9dfff40c4fa31acd587c298c758be274a761ab9cc0a9e0f +MD5 6c3929271c887ff2d14c6086604e6917 files/mlocate.cron 152 +RMD160 bc5c48ff209516873ac858f1ee9f88b635507fb9 files/mlocate.cron 152 +SHA256 2d682a0938a7d855b9dfff40c4fa31acd587c298c758be274a761ab9cc0a9e0f files/mlocate.cron 152 +AUX updatedb.conf 616 RMD160 86a7d1e520b0a5d78fca16a4aa951bfb0ba7046e SHA1 6d9a5d2f4bde4ed879bfefa1fc5a3806d35bb347 SHA256 4fd1dcd119271204716a551bf3547101c2f059cb0c13243fbc2812f6dae0d7da +MD5 30b8bfde01762e8e4b41f65d4055eb92 files/updatedb.conf 616 +RMD160 86a7d1e520b0a5d78fca16a4aa951bfb0ba7046e files/updatedb.conf 616 +SHA256 4fd1dcd119271204716a551bf3547101c2f059cb0c13243fbc2812f6dae0d7da files/updatedb.conf 616 +DIST mlocate-0.17.tar.bz2 285610 RMD160 ba8d292d757ed48782760ecfc58d12ea15fb9b05 SHA1 9fe1d51df41043f437850b6ba96df40d5e7525ad SHA256 a7c9c79a39b14f7a122f1b792ab3b26794dd8bd0f87cfe1a1127767ca5479584 +EBUILD mlocate-0.17.ebuild 1416 RMD160 5ddc70aa71b9326c8f00efc71b8dfd1d22a3f392 SHA1 642d870239862c0ac5d8f360255848e70d9ea4ab SHA256 be3a1e355588f1705ea243ca1feb747335af1372350ab559aaf45070f3caf354 +MD5 3d2842e9e52ce54bdb0f989c83f6941e mlocate-0.17.ebuild 1416 +RMD160 5ddc70aa71b9326c8f00efc71b8dfd1d22a3f392 mlocate-0.17.ebuild 1416 +SHA256 be3a1e355588f1705ea243ca1feb747335af1372350ab559aaf45070f3caf354 mlocate-0.17.ebuild 1416 +MISC ChangeLog 371 RMD160 3a55fbfeecabc9475b5db05a35eaa6cfb1cb62f6 SHA1 a3229e7676057d047fb403e262839bc4b0451466 SHA256 404bc4f1a2c3f1b61a04bdf745794af186eb6e689ab4e1a463e66d634716be01 +MD5 ea9a22abc9def411c8c5cf52e1a4ab61 ChangeLog 371 +RMD160 3a55fbfeecabc9475b5db05a35eaa6cfb1cb62f6 ChangeLog 371 +SHA256 404bc4f1a2c3f1b61a04bdf745794af186eb6e689ab4e1a463e66d634716be01 ChangeLog 371 +MISC metadata.xml 269 RMD160 cbb67f1fbbd755cd836fc0585dc2008fe659f7cf SHA1 761df8ba5b64d20b9f77784eed2fb896d881b445 SHA256 56bef26b1756d2cf3cc512c816b63cf0b97fa629d5bda01b51c3c63436ef3a9d +MD5 a4f08eae634c7cb9c59f262103967417 metadata.xml 269 +RMD160 cbb67f1fbbd755cd836fc0585dc2008fe659f7cf metadata.xml 269 +SHA256 56bef26b1756d2cf3cc512c816b63cf0b97fa629d5bda01b51c3c63436ef3a9d metadata.xml 269 +MD5 7a7c4df2948201b2fa1c0c8d5d05deb1 files/digest-mlocate-0.17 241 +RMD160 42c4f2940e31e12bf354b54453999a7bd9619b35 files/digest-mlocate-0.17 241 +SHA256 7a07a76fd97ee08bfe22650ee7d28bb02d1d8b8fafa099ae019398a0a924dbf3 files/digest-mlocate-0.17 241 diff --git a/sys-apps/mlocate/files/digest-mlocate-0.17 b/sys-apps/mlocate/files/digest-mlocate-0.17 new file mode 100644 index 000000000000..2712bc18e819 --- /dev/null +++ b/sys-apps/mlocate/files/digest-mlocate-0.17 @@ -0,0 +1,3 @@ +MD5 e8fc089a235a4a7bf9bfbc536c17116c mlocate-0.17.tar.bz2 285610 +RMD160 ba8d292d757ed48782760ecfc58d12ea15fb9b05 mlocate-0.17.tar.bz2 285610 +SHA256 a7c9c79a39b14f7a122f1b792ab3b26794dd8bd0f87cfe1a1127767ca5479584 mlocate-0.17.tar.bz2 285610 diff --git a/sys-apps/mlocate/files/mlocate.cron b/sys-apps/mlocate/files/mlocate.cron new file mode 100644 index 000000000000..c7a39c274088 --- /dev/null +++ b/sys-apps/mlocate/files/mlocate.cron @@ -0,0 +1,11 @@ +#! /bin/sh + +if [ -x /usr/bin/updatedb ] +then + if [ -f /etc/updatedb.conf ] + then + nice /usr/bin/updatedb + else + nice /usr/bin/updatedb -f proc + fi +fi diff --git a/sys-apps/mlocate/files/updatedb.conf b/sys-apps/mlocate/files/updatedb.conf new file mode 100644 index 000000000000..0c7668153aaf --- /dev/null +++ b/sys-apps/mlocate/files/updatedb.conf @@ -0,0 +1,14 @@ +# /etc/updatedb.conf: config file for slocate +# $Id: updatedb.conf,v 1.1 2007/07/08 10:26:09 opfer Exp $ + +# This file sets variables that are used by updatedb. +# For more info, see the updatedb.conf(5) manpage. + +# Filesystems that are pruned from updatedb database +PRUNEFS="afs auto autofs cifs devfs devpts eventpollfs futexfs hugetlbfs iso9660 mqueue ncpfs nfs NFS nfsd nnpfs pipefs proc ramfs rpc_pipefs sfs shfs smbfs sockfs subfs supermount sysfs tmpfs udf usbfs vperfctrfs" + +# Paths which are pruned from updatedb database +PRUNEPATHS="/tmp /var/tmp /root/.ccache" + +# Skip bind mounts. +PRUNE_BIND_MOUNTS="no" diff --git a/sys-apps/mlocate/metadata.xml b/sys-apps/mlocate/metadata.xml new file mode 100644 index 000000000000..2c967a237c7c --- /dev/null +++ b/sys-apps/mlocate/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> + <maintainer> + <email>opfer@gentoo.org</email> + <name>Christian Faulhammer</name> + </maintainer> +</pkgmetadata> diff --git a/sys-apps/mlocate/mlocate-0.17.ebuild b/sys-apps/mlocate/mlocate-0.17.ebuild new file mode 100644 index 000000000000..19567a62ecdc --- /dev/null +++ b/sys-apps/mlocate/mlocate-0.17.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mlocate/mlocate-0.17.ebuild,v 1.1 2007/07/08 10:26:09 opfer Exp $ + +inherit eutils + +DESCRIPTION="Merging locate is an utility to index and quickly search for files" +HOMEPAGE="http://carolina.mff.cuni.cz/~trmac/blog/mlocate/" +SRC_URI="http://people.redhat.com/mitr/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="!sys-apps/slocate + !sys-apps/rlocate" + +pkg_setup() { + enewgroup locate +} + +src_compile() { + econf || die "econf failed" + emake groupname=locate || die "emake failed" +} + +src_install() { + emake groupname=locate DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog README NEWS + + insinto /etc + doins "${FILESDIR}/updatedb.conf" + fperms 0644 /etc/updatedb.conf + + insinto /etc/cron.daily + newins "${FILESDIR}/mlocate.cron" mlocate + fperms 0755 /etc/cron.daily/mlocate + + fowners 0:locate /usr/bin/locate + fperms go-r,g+s /usr/bin/locate + + chown -R 0:locate "${D}/var/lib/mlocate" + fperms 0750 /var/lib/mlocate + keepdir /var/lib/mlocate +} + +src_test() { + if has userpriv ${FEATURES} && ! has usersandbox ${FEATURES}; then + make check-local || die "test suite failed" + else + ewarn "Activate FEATURES=userpriv and deactivate FEATURES=usersandbox to run testsuite." + fi +} + +pkg_postinst() { + elog "Note that the /etc/updatedb.conf file is generic" + elog "Please customize it to your system requirements" +} |