Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 137798 Details for
Bug 201346
sys-apps/findutils cannot install locate/updatedb
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
slocate-3.1-r2.ebuild
slocate-3.1-r2.ebuild (text/plain), 2.33 KB, created by
MATSUYAMA Tomohiro
on 2007-12-05 12:32:23 UTC
(
hide
)
Description:
slocate-3.1-r2.ebuild
Filename:
MIME Type:
Creator:
MATSUYAMA Tomohiro
Created:
2007-12-05 12:32:23 UTC
Size:
2.33 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/slocate-3.1-r1.ebuild,v 1.3 2007/12/02 20:03:13 vapier Exp $ > >inherit flag-o-matic eutils > >DESCRIPTION="Secure way to index and quickly search for files on your system (drop-in replacement for 'locate')" >HOMEPAGE="http://slocate.trakker.ca/" >SRC_URI="http://slocate.trakker.ca/files/${P}.tar.gz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" >IUSE="" > >DEPEND="sys-apps/shadow" >RDEPEND="${DEPEND} > !sys-apps/rlocate" > >pkg_setup() { > if built_with_use --missing false ">=sys-apps/findutils-4.3.8-r2" locate ; then > eerror "sys-apps/findutils has been already installed with locate USE flag." > die > fi > > if [[ -n $(egetent group slocate) ]] && [[ -z $(egetent group locate) ]] ; then > eerror "The 'slocate' group has been renamed to 'locate'." > eerror "You seem to already have a 'slocate' group." > eerror "Please rename it:" > eerror "groupmod -n locate slocate" > die "Change 'slocate' to 'locate'" > fi > enewgroup locate 245 >} > >src_unpack() { > unpack ${A} > cd "${S}" > epatch "${FILESDIR}"/${P}-build.patch > epatch "${FILESDIR}"/${P}-incompat-warning.patch > epatch "${FILESDIR}"/${P}-cron.patch >} > >src_compile() { > filter-lfs-flags > emake -C src || die >} > >src_install() { > dobin src/slocate || die > dodir /usr/bin > dosym slocate /usr/bin/locate > dosym slocate /usr/bin/updatedb > > exeinto /etc/cron.daily > newexe debian/cron.daily slocate || die > > doman doc/*.1 > dosym slocate.1 /usr/share/man/man1/locate.1 > > keepdir /var/lib/slocate > > dodoc Changelog README WISHLIST notes > > insinto /etc > doins "${FILESDIR}"/updatedb.conf > > fowners root:locate /usr/bin/slocate > fperms go-r,g+s /usr/bin/slocate > > chown -R root:locate "${D}"/var/lib/slocate > fperms 0750 /var/lib/slocate >} > >pkg_postinst() { > if [[ -f ${ROOT}/etc/cron.daily/slocate.cron ]]; then > ewarn "If you merged slocate-2.7.ebuild, please remove" > ewarn "/etc/cron.daily/slocate.cron since .cron has been removed" > ewarn "from the filename" > echo > fi > einfo "Note that the /etc/updatedb.conf file is generic" > einfo "Please customize it to your system requirements" > echo > ewarn "The slocate database created by slocate-2.x is incompatible" > ewarn "with slocate-3.x. Make sure you run updatedb!" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 201346
:
137796
| 137798