From 4e94a6f789224cb17af5f0e13c1b2c5b13fac500 Mon Sep 17 00:00:00 2001 From: Naohiro Aota Date: Sun, 5 Jan 2014 00:57:04 +0000 Subject: Run updatedb with nobody; Generate locate database beforehand. #472468 Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xF8551514 --- sys-freebsd/freebsd-ubin/ChangeLog | 8 ++++++-- sys-freebsd/freebsd-ubin/Manifest | 24 +++++++++++++++------- .../freebsd-ubin/files/locate-updatedb-cron | 2 +- .../freebsd-ubin/freebsd-ubin-9.1-r2.ebuild | 10 +++++++-- sys-freebsd/freebsd-ubin/freebsd-ubin-9.2.ebuild | 10 +++++++-- 5 files changed, 40 insertions(+), 14 deletions(-) (limited to 'sys-freebsd') 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 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/Manifest b/sys-freebsd/freebsd-ubin/Manifest index 5e5aa4cc6c61..36b4eb2c99bc 100644 --- a/sys-freebsd/freebsd-ubin/Manifest +++ b/sys-freebsd/freebsd-ubin/Manifest @@ -15,7 +15,7 @@ AUX freebsd-ubin-9.1-kdump-ioctl.patch 1001 SHA256 03804b82087884efa28157b36781a AUX freebsd-ubin-9.1-minigzip.patch 336 SHA256 88ad33268fd33012d37ec3f0f915322a536a4868900aa7c19486226e96125723 SHA512 e25cb6b74b17ee3d999321701fcc5a90ab94abac8ea33a155847f99e7836f16203485618be3426e34a1a5895b7582f5f466f997986486637e52dbc0e6c225dd5 WHIRLPOOL 2fa652c4548eb5b305bafca4b788d9f19f1f52903b0e27cbf402e11bcd7ceb78bdf1dfabf79932b8e78b1bbf898308405ccc19b1ca21198446889c8360db24a7 AUX freebsd-ubin-lint-stdarg.patch 792 SHA256 ec86f4c77b7c57f9f1651bb5f38641d198123594e770cc31d77d6775fd851bd6 SHA512 0f06547b0b90c65466c5c032efe6563dfd32ca56175fbad0885228310f6dc5f973d3adffe93bdb35d42b8af045ecdc23d1198fd8bad0c96c46512dbedbab3059 WHIRLPOOL 853d89f6f35c91718a30c8cbd2fed72a01c01dd03b3fab28c931fd80f71394122f4e5fe240df17b524dffb91829bc0148a605e797b88827d4f5e48730790fa57 AUX freebsd-ubin-setXid.patch 3723 SHA256 961ac8dcd9efa4f1aab18f56b26c6210d1d5bf441410aae392160e7c0242d16d SHA512 9edaac765405e28b123fa40b708b1ab05af3e151726e6f2b75ab1c0fd17b6c2a428a58726da999f7a63e9550bdd3e0d274ce63517717137872a7e9c77a591501 WHIRLPOOL 36fff3ad1577981b157e4311226540ee9a0eca7f5d623e27b3fbc585bc5585158c21f27c2355ac773ff190817aee2056293d3a1c0306e7743ae72a3a49d1e670 -AUX locate-updatedb-cron 94 SHA256 ef062eb2e780b6c323a904c0e1cf8fc911954d05a0194033b37419003f64f14c SHA512 17ff44684621a20c75536013d0e34057b671f0cb37d989ed9bbb080e773ae86601dca551f7fa39ee7e615226eda504e2272d86451468ef7d8a47c666537ce036 WHIRLPOOL c7d09269139e1da615b14a1f18d178c75404e8f3667c02c76fb1cb1749e05bdd90296b3ed3a79331862e7b05605b829500f710552b9d606be86115f52900d70a +AUX locate-updatedb-cron 122 SHA256 63cceb90a3abb02e806af6940542f12d397e7600df37f1b7305104f78694cce9 SHA512 c3127d2ebb837d7fd6edc640604ce31c1639c036703b1e923e84b79f9840e13e28327eb7a5d655546ade8efb9188b041434552bcd0b4b76308c0e66132ad7985 WHIRLPOOL a040f971f7406f2dc022aee9e6b4cbfd4bb37931afabcdb58dcbe82539500bf7ae7fdfdf8651113ae3cea5ffa73771bb57a2a0a0e749701563664ccbf87285ca AUX login.1.pamd 145 SHA256 c8b81b422104b58afa8b6bb478b1eda77f97c3037030ac09889b7c3bf3de9fcc SHA512 2308d818de388be2973b59fad5a21ffe5a9c9d302b47ccf1a148182ccaf082421c5a277acf0c85649874fd607a8da20222e7a05c15606ee36f6e74d0968a1397 WHIRLPOOL a562ee1210568bdf2339df413ec69eed066738d0d2929c8965f6bfc2b05d60075b23176ca8f744bee2c6a7cfa8448adf4e08a531d36477f78aac78da47f3209c AUX login.pamd 421 SHA256 986aad109b31d055c52b55fd04be1a8f434da4b355e1a84b7d8b666b7a63fcb6 SHA512 ecebbaefb29380263074dc70545c2d3d529a1853c4317d860c51b8176a0afe00768d0d9a82ed05cba8abc6a2ec5cbef4a52f825a5a9de706ac4f7fba71d6fea4 WHIRLPOOL 0706c86180640ae8ebb7f7eca1a1e369aac18353f67301f04cb53c496f7848e5797900a19d32557ed1b9e4af5ee924a148710841426d7800a746e1ac3a1313f0 AUX passwd.1.pamd 269 SHA256 a00b23b70388075f20c0e6535b6f4a1bebacb72726dc3c20ed1d468ecc68f334 SHA512 cb2f0fa05057947ac63031853e14c1867f7f330296548d924b8350dee27e00ec4b08daaab2a8c5704e09a70ed823dbe9b074fef07b648bc43cd56a78f7edb790 WHIRLPOOL e4080d8a9ec81a07b37c779dec2e04ad1fe23eecb2d08cfe1f25e00c305fb9aec59424c1e9693d0c31d1f9cc9f6a76b22b31840bf35a059e31f82238fcdb68b9 @@ -71,17 +71,27 @@ DIST freebsd-ubin-9.2_rc1.tar.bz2 1917890 SHA256 73cc16ad4c588a6db307d39d7da67d9 DIST freebsd-ubin-9.2_rc2.tar.bz2 1917605 SHA256 183afe564f5f318ea85ef82f6ea8878e2d143b11a7112c6389ae26b987405e5c SHA512 a357851790086f73bfffe6fd348f77741d43ab2d53a67ac83b0108f2f4624991e5d122d2f49f68aadbc6c00fd84edb36f193c8e60f44cca6462f623a4925e335 WHIRLPOOL 4d4fb441b5f56b24bd9269fd68da147019b9aed242a8b8b3f5dce4c4f6b4d2881d1cdba8ca37ac26b78e35329a098f63b24c76bf6d6fa78365be81805c58e6e1 DIST freebsd-ubin-9.2_rc3.tar.bz2 1917528 SHA256 87521a64750974d83de97936aac4f03d45699a2d8b85661177c687f2c738b05b SHA512 f90049306da53c98f4da6153b387de40b8ee98e288c0923dfb41099e784b9e492e897b83621750e3a9d28695a7f5eee1485d0b60aff3ecaf526ca9c583bb2105 WHIRLPOOL 76dee7531cbe15cbad3c13cb3ab50dbcdc8e2e85cf2deb675fa40664c5d1b10efaa76a77ff88cf209606e0c928bfa52b8918b38c83f83f70d557e41da31d9651 EBUILD freebsd-ubin-8.2-r1.ebuild 4645 SHA256 aab17d095a0dfde25111ecceb6486e74d4ee71c0288d68b17f4b38f2019ec257 SHA512 6c28bec854a0e11e95664d2f57367a6e252920733f146832af4cf95674b4c8c34426dbaeeac1b87234da4ab1dc67b4d5bdc8b91c5c9787b03d6b6981f28efc43 WHIRLPOOL 95cf5e8a7342cbb216958898a7900087ae455bdd8ee9f58b7a0563b512cf7104b595b29211fe63d09ee4f60d0f324fa058a245f0f211ae66261caa5ec90e7dfb -EBUILD freebsd-ubin-9.1-r2.ebuild 5424 SHA256 60c9f496a1fc364ad88843c8a9d4485ca7bf14784582d42044806c08944abdc0 SHA512 0c865ca3ca5084c107712f2a7829e3b067c2ed7d2da21b4427e71af9470484ab641f95c07e19f4cb6f5876254ccb23783d611610f14229fd3af345804b9b7f33 WHIRLPOOL c29ca11984a394bdb342e3bbe24cb12b650ddda233598c09e1e65c54c20fb0de5ad9e9d18f42bd82463dda7564e2e77ea2b4aa1fd980af2b8616550c3ca5e3c0 -EBUILD freebsd-ubin-9.2.ebuild 5453 SHA256 141cb747fd67c43c8e7120fc64612db6405bdb718a61832c32c6f60d9ad34200 SHA512 0294169b382c162ded3fea94c948cddbd565ef3ad6fba8e1c68764a3b8a1fcd734704f9901ebdafa44fb0ab0a729ac62ed75e7eb80fe0dc139f3c3bff2e0f108 WHIRLPOOL a0bf4fdb6e4d1334b062f0c702c969f197a3225898be45b431d6cae8e6117f094e5ca88f87f107b43ab724fc9eebe3a560b2a9ef3a1ccdcfb10b881ae84e9311 +EBUILD freebsd-ubin-9.1-r2.ebuild 5572 SHA256 30ec2f63e03cb8056e0a6a0fa3db871645346217d8d3c96aa7f420b52ba3b5e8 SHA512 727231a1ff44c5e41500354857f4b3c50d6e43b6011bbb2a8d7161c7a8843085a5410092c87f46e7bb6a51f7101d2656278c438b3f83c04822e6c3d13db4d940 WHIRLPOOL ea873f009cbfec41d3d287a2a427d5d486eb7bc91b1e1ca09670d5f76b0f75f58e26a51a38e92ec389803346282e5be4735c99d352ce337fcc11e24eed574b74 +EBUILD freebsd-ubin-9.2.ebuild 5601 SHA256 1a9c8ee2154215b34f0885778dba068cce359ab3cf51756b61ff76289768c6ee SHA512 1df84044a617fad127a47f59f4b0aceacca923a1b9bcc7fbb9e8e2cf5e8f39fe4f908cd30c0e0b5b11a1e9e571408aa0bdb58fecb868f64146ed947e4ed09038 WHIRLPOOL e427ffaeb7e5a9615568d821d53125a13f861409159d3e6cba6beb5775f0cfa226e4a4bfc0b4a658a2870f06dc606a7788517f1e7dfd0432c6a0081648a9efc7 EBUILD freebsd-ubin-9.2_rc1.ebuild 5462 SHA256 e258f2478b63a9f2b4ca6a085e22f5c00abfde4add030da7064c64e22629fd94 SHA512 cf2b928ae9f0202327aa81b8ad7263e596082430f08467e100d773600d34e5ef8a2e3f9b5fe8859cc919ffeee93a25d1206725f2eaa9896ee79ec0f9e240aaae WHIRLPOOL 059be113f1326f84ab864cee57fa7086c07a27f642e75c40a6ea2b963d03c43be09456b9652ca23192e8c981918ed3711a3a4e2fb7acc581922dd62e53f76dd9 EBUILD freebsd-ubin-9.2_rc2.ebuild 5462 SHA256 2ddc15b58569e83acea255ff39c800decd66710a05f106bcfbe47ff6c415c5fb SHA512 b9ba570a14f0447b8fb3406adb0865ce88464c36377fec2a1e1a3da464c717851d7a6c7c6ee425d074cd89e477712cd26306b24c7ab2a1b8c98d7d8cc5323463 WHIRLPOOL 5087eb54e3074febc198599989694472239182f1459a64fedf80a03feed79e8586e3885dfca04ecb2a214dc1a829dfb49e67b4fe46219be42ed21dc314fb8eb2 EBUILD freebsd-ubin-9.2_rc3.ebuild 5457 SHA256 0c4b5d897b7ec606e9990b78bc1412c88293ac341e15cfa4d8f9e8d0380de712 SHA512 09f41699111f60a3eb14b6d25a2cda417ce4108ee15b6ad06711dcbf4adea6a9217ee20f0db01613b1b82acf40fb580b5691e4a95ff463bbc58755c6b4d12208 WHIRLPOOL 9626b7d52ddefcb97e28c05b93ab12d88c18614c08fca0412541efb535bb30f326488d13769e8ecbe696e434d9f91066630221be5729d92c32b842899cc614a8 -MISC ChangeLog 19615 SHA256 08d11312322a089489ac118e8ca449fe6b5a80bb8bd6f9285a337379e4b5856f SHA512 5a8ef38dc2501acb5420fb72e7a384bafcbbcc1f5d14dca4e87d881e6d15022b3ce691d4b9c33597d5602ef21e974e433d6af1b6478290c462c1322c862a00ec WHIRLPOOL d4b8c87a7a033437345ebc8b34003e2ded168fbf503062e0429cc091e9e368e81fc962de862d3371ee5cc6517e33e4d094f80113441efb06ab3c4db591a3ae00 +MISC ChangeLog 19816 SHA256 123b279ba5a2af7428583a8b0a6135a3fb6dd60a382b7edce45a9c3f4555868c SHA512 e4a63059e0cdb7511ec7d1a9e681248ad47272886384adcd0ca4ffabc5406779b1161809521525d2d63eadaba54aa7ef958daf9bdc79e7c26008abc111dc9cdd WHIRLPOOL 393fcbb95af1466f6a4d87bb1c78bd4ac9a55f677a5d906797fbbb0e2609bde9f24ed7d2ea675496a26507599872e5aceb8fee8b5fdd09f2643d39e9d63743e1 MISC metadata.xml 692 SHA256 9d7a61c414fb50713568dc2782c2de6460bac1eff7ca6a9f8a2d25979b48e811 SHA512 8bc469bb79edb0c34e5fb03f4a53c12b0f3741f06a20e1fc1b58772e594f259cc91368157ced396f8843b6e4398bffd1e5b5b8c694d5bec324e89966e4e618d6 WHIRLPOOL 026491842e88460c5fb80acdf7b26e274c74c6d0ced8c23e16382b82a9b99d9657b96a5ecbca2d95ecd0dfef463dfa012f7aeb3acd8e655df859ab6aada0d312 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iEYEAREIAAYFAlJ9/d8ACgkQvFcC4BYPU0o5KwCfTE8AyXJe9yYQqfToAy+jQstB -BBIAn3J4nabDlcIxDH9d+GwPdS4aop92 -=9kXi +iQIcBAEBCAAGBQJSyK3ZAAoJEDYO1FT4VRUURKkP/084mPJIGrDCH1wkkBk6RpcR +37udc7b3JzEvYdxc1l6b/1JjQpmw36lUULgZbtXFbsINMvrcuXVmDPQWthHMZM+I +hzcuNfl/FO4rZOgucmYHuhBdUM120LQ2pdZKsuwPXRudlCE/OUIpKh6DRYwg0wMz +1fGMsD1QvVUPZD/6ZZrMbRrxFZv0qUVr7jLJ+BB6vSCaq7+5mGOUG4chvgPgohM1 +kUlJtqYQX9P/WC14zUQMknmNsuHcB7SKXInI9IuKgaPDhpjN2yMza19atITjUGlP +sjQvpMczJwDGkQk0NM65HNeWnsCNvrZJj/f5/oYN8skSN74HPRSAsg5zPlKezx// +Vm8ntp7XHxQYTjw1rblmED1Dbcd5YpytZs3/9q566XTWsR06xptVKrGd8sgACUwJ +OtMS/OtpyIzNvLjrCmwP7K7KUcTGUtCIVLYLq7kauMQDFtmpWoifjFbWSo73P8vR +c/iPUROUPx48AW9s1fB+av8YzT330Q0jlyuqpIYpXjYl3iYWl/2tnBbsp4Wi1kd/ +ujJdCaWY4k/UhCDqfFziHpw0iFJWwipYHpYTgxk17op4xUitNoSCUcVCnaqD1kRH +MQfGPY1Ymi1WcSB4fQlx03vx01uGBGT8PK8gWDa6za3jb6LI1cNcj083X0oydhzl +sd9enru3QNYWk2A3eYoL +=wJWO -----END PGP SIGNATURE----- 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() { -- cgit v1.2.3-65-gdbad