diff options
author | Naohiro Aota <naota@gentoo.org> | 2014-01-05 00:56:44 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2014-01-05 00:56:44 +0000 |
commit | be9660874db0294f8fcecf06bc01a0ddc2693ac7 (patch) | |
tree | f17bd1ede82a505999dd8a48c8298ad649f8ac11 /sys-freebsd/freebsd-ubin | |
parent | new package, dep for passlib, ebuild prepared by me and with testing by other... (diff) | |
download | gentoo-2-be9660874db0294f8fcecf06bc01a0ddc2693ac7.tar.gz gentoo-2-be9660874db0294f8fcecf06bc01a0ddc2693ac7.tar.bz2 gentoo-2-be9660874db0294f8fcecf06bc01a0ddc2693ac7.zip |
Run updatedb with nobody; Generate locate database beforehand. #472468
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key F8551514)
Diffstat (limited to 'sys-freebsd/freebsd-ubin')
-rw-r--r-- | sys-freebsd/freebsd-ubin/ChangeLog | 8 | ||||
-rw-r--r-- | sys-freebsd/freebsd-ubin/files/locate-updatedb-cron | 2 | ||||
-rw-r--r-- | sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild | 10 | ||||
-rw-r--r-- | sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild | 10 |
4 files changed, 23 insertions, 7 deletions
diff --git a/sys-freebsd/freebsd-ubin/ChangeLog b/sys-freebsd/freebsd-ubin/ChangeLog index 26151d9763d3..b06d17092f64 100644 --- a/sys-freebsd/freebsd-ubin/ChangeLog +++ b/sys-freebsd/freebsd-ubin/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-freebsd/freebsd-ubin -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.98 2013/11/09 09:18:22 aballier Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/ChangeLog,v 1.99 2014/01/05 00:56:44 naota Exp $ + + 05 Jan 2014; Naohiro Aota <naota@gentoo.org> files/locate-updatedb-cron, + freebsd-ubin-9.1-r2.ebuild, freebsd-ubin-9.2.ebuild: + Run updatedb with nobody; Generate locate database beforehand. #472468 *freebsd-ubin-9.2 (09 Nov 2013) diff --git a/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron b/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron index c9a80aaaa993..323f455e9ba1 100644 --- a/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron +++ b/sys-freebsd/freebsd-ubin/files/locate-updatedb-cron @@ -2,5 +2,5 @@ if [ -x /usr/libexec/locate.updatedb ] then - nice /usr/libexec/locate.updatedb + echo /usr/libexec/locate.updatedb | nice -n 5 su -fm nobody fi diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild index c42e3863d260..28af0fad8a9f 100644 --- a/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild,v 1.2 2013/08/09 14:57:57 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-9.1-r2.ebuild,v 1.3 2014/01/05 00:56:44 naota Exp $ EAPI=5 @@ -155,6 +155,12 @@ src_install() { # tip requires /var/spool/lock/, bug #200700 keepdir /var/spool/lock + + # create locate database #472468 + local f=/var/db/locate.database + mkdir "${ED}${f%/*}" || die + touch "${ED}${f}" || die + fowners nobody:nobody ${f} } pkg_postinst() { diff --git a/sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild index 3435ce52c6e5..2547b386a6c2 100644 --- a/sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild +++ b/sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild,v 1.1 2013/11/09 09:18:22 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild,v 1.2 2014/01/05 00:56:44 naota Exp $ EAPI=5 @@ -157,6 +157,12 @@ src_install() { # tip requires /var/spool/lock/, bug #200700 keepdir /var/spool/lock + + # create locate database #472468 + local f=/var/db/locate.database + mkdir "${ED}${f%/*}" || die + touch "${ED}${f}" || die + fowners nobody:nobody ${f} } pkg_postinst() { |