Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/mlocate: mlocate-0.25.ebuild ChangeLog
Date: Sat, 03 Mar 2012 08:27:48
Message-Id: 20120303082737.478D42004B@flycatcher.gentoo.org
1 ssuominen 12/03/03 08:27:37
2
3 Modified: ChangeLog
4 Added: mlocate-0.25.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.97 sys-apps/mlocate/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/mlocate/ChangeLog?rev=1.97&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/mlocate/ChangeLog?rev=1.97&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/mlocate/ChangeLog?r1=1.96&r2=1.97
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/mlocate/ChangeLog,v
20 retrieving revision 1.96
21 retrieving revision 1.97
22 diff -u -r1.96 -r1.97
23 --- ChangeLog 5 Feb 2012 13:32:52 -0000 1.96
24 +++ ChangeLog 3 Mar 2012 08:27:37 -0000 1.97
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/mlocate
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/mlocate/ChangeLog,v 1.96 2012/02/05 13:32:52 fauli Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mlocate/ChangeLog,v 1.97 2012/03/03 08:27:37 ssuominen Exp $
30 +
31 +*mlocate-0.25 (03 Mar 2012)
32 +
33 + 03 Mar 2012; Samuli Suominen <ssuominen@g.o> +mlocate-0.25.ebuild:
34 + Version bump.
35
36 05 Feb 2012; Christian Faulhammer <fauli@g.o>
37 -mlocate-0.23.1-r1.ebuild:
38
39
40
41 1.1 sys-apps/mlocate/mlocate-0.25.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/mlocate/mlocate-0.25.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/mlocate/mlocate-0.25.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mlocate-0.25.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/mlocate/mlocate-0.25.ebuild,v 1.1 2012/03/03 08:27:37 ssuominen Exp $
51
52 EAPI=4
53 inherit eutils
54
55 DESCRIPTION="Merging locate is an utility to index and quickly search for files"
56 HOMEPAGE="https://fedorahosted.org/mlocate/"
57 SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
62 IUSE="nls selinux"
63
64 RDEPEND="!sys-apps/slocate
65 !sys-apps/rlocate
66 selinux? ( sec-policy/selinux-slocate )"
67 DEPEND="app-arch/xz-utils
68 nls? ( sys-devel/gettext )
69 selinux? ( sec-policy/selinux-slocate )"
70
71 pkg_setup() {
72 enewgroup locate
73 }
74
75 src_configure() {
76 econf $(use_enable nls)
77 }
78
79 src_compile() {
80 emake groupname=locate
81 }
82
83 src_install() {
84 emake groupname=locate DESTDIR="${D}" install
85 dodoc AUTHORS ChangeLog README NEWS
86
87 insinto /etc
88 doins "${FILESDIR}"/updatedb.conf
89 doins "${FILESDIR}"/mlocate-cron.conf
90 fperms 0644 /etc/{updatedb,mlocate-cron}.conf
91
92 insinto /etc/cron.daily
93 newins "${FILESDIR}"/mlocate.cron-r2 mlocate
94 fperms 0755 /etc/cron.daily/mlocate
95
96 fowners 0:locate /usr/bin/locate
97 fperms go-r,g+s /usr/bin/locate
98
99 keepdir /var/lib/mlocate
100 chown -R 0:locate "${ED}"/var/lib/mlocate
101 fperms 0750 /var/lib/mlocate
102 }
103
104 pkg_postinst() {
105 elog "The database for the locate command is generated daily by a cron job,"
106 elog "if you install for the first time you can run the updatedb command manually now."
107 elog
108 elog "Note that the /etc/updatedb.conf file is generic,"
109 elog "please customize it to your system requirements."
110 }