diff options
author | José María Alonso <nimiux@gentoo.org> | 2012-08-02 18:10:04 +0000 |
---|---|---|
committer | José María Alonso <nimiux@gentoo.org> | 2012-08-02 18:10:04 +0000 |
commit | 654f5398d25898d69e5269482ee1b36f775fbf3b (patch) | |
tree | 2e1cf79075aabe1117e53a4db06f79f077d597c3 /app-admin/logrotate | |
parent | Keyword amd64-linux and x86-linux (diff) | |
download | historical-654f5398d25898d69e5269482ee1b36f775fbf3b.tar.gz historical-654f5398d25898d69e5269482ee1b36f775fbf3b.tar.bz2 historical-654f5398d25898d69e5269482ee1b36f775fbf3b.zip |
[app-admin/logrotate] Version bump.
Package-Manager: portage-2.1.10.65/cvs/Linux i686
Diffstat (limited to 'app-admin/logrotate')
-rw-r--r-- | app-admin/logrotate/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/logrotate/Manifest | 19 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.2-atomic-create.patch | 40 | ||||
-rw-r--r-- | app-admin/logrotate/logrotate-3.8.2.ebuild | 74 |
4 files changed, 139 insertions, 2 deletions
diff --git a/app-admin/logrotate/ChangeLog b/app-admin/logrotate/ChangeLog index 6450e30083da..90fd3676bc65 100644 --- a/app-admin/logrotate/ChangeLog +++ b/app-admin/logrotate/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/logrotate # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.117 2012/06/10 21:24:21 nimiux Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.118 2012/08/02 18:10:04 nimiux Exp $ + +*logrotate-3.8.2 (02 Aug 2012) + + 02 Aug 2012; Chema Alonso <nimiux@gentoo.org> +logrotate-3.8.2.ebuild, + +files/logrotate-3.8.2-atomic-create.patch: + Version bump. 10 Jun 2012; Chema Alonso <nimiux@gentoo.org> metadata.xml: Add myself as maintainer. Add description and use flags to metadata. diff --git a/app-admin/logrotate/Manifest b/app-admin/logrotate/Manifest index 945b23163a86..d99b95a40a0b 100644 --- a/app-admin/logrotate/Manifest +++ b/app-admin/logrotate/Manifest @@ -1,11 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX logrotate-3.7.7-datehack.patch 589 SHA256 f68e360afe0a9ab28fa42775bdf0b7ddf4ff925e19a3786bcd40e0067ee4856d SHA512 de1fe9066744c4a9c63d1f4569541c9bf94be904e314c4cd25bb03633ee35b986d430fecccbc880bf5aa06c9011871719c53b6f40b7a6dcfcc77a4c7a4523eb0 WHIRLPOOL c411c64d417216600ae4bba38acd77dbcda52363cf1f645396b346470db0bfcca32d0c7103e453cfa18a998df3530c1a2f004988e5e40b69fc29ffdbdead3791 AUX logrotate-3.8.0-atomic-create.patch 2260 SHA256 eb53819354e9679189769727c76a69ce3daa9483a759a38f43e119781238fbb7 SHA512 c50c6b12b711d003c5566a8b58ec950caeb5d7c3ac7cb488248148da3875fe616399b99762421b3712cc3f6706fd66e12f8dded91b198ac77d1760bcc80d60b8 WHIRLPOOL 43ddcb8b9f9b6b92adc585682cb38da5a2725f1beabd2e15673f97e11dae7080aba7a7955d65cac1a1b51e3756371cf6dce62986f3b7b547df3b35d5617edb3e AUX logrotate-3.8.0-fbsd.patch 645 SHA256 daa17ac29dd3ce2d4d714599816a8cb8d5716c3634833232ebeae69e81dd0b2b SHA512 994eea4fa2c94888d6cb6e9515f0eb668928291d5b6c8c18479de513d323fb3d7bf5f626e0a4d028614fc7f6551974351a63815e9ea78ab827f18555f607bd58 WHIRLPOOL e28e8abdc29661a1ede9753f0cc9de9d362fa1e460e218a8580031adad17005e1f91d7641e7e1eed93bb6360ed97cea8d7b11c09b79c72aa19f356a2ae87d416 AUX logrotate-3.8.0-ignore-hidden.patch 701 SHA256 2ac9d21993a2bb6f269e29472ac7427ad07636b3567540c149c835fdbb84e1b5 SHA512 70fac218e948f619be0fb62eda4ae792d182579ffc664df72cb29d6dd9ad6f0805c1d91ccbcc4e28f9a8bb8e6725b9812e9a3e32eaae931ca833e27bf9d06f4c WHIRLPOOL c5c2dd0289c9e80ca14cfb524ae3ad9e92141a99c7917dc5a9bd444ba2f8e2337297167f6303352e2a3357bed148cd9708de0c68337515f03b6c00ae0aedef65 AUX logrotate-3.8.1-noasprintf.patch 1452 SHA256 03e67f55ef2997f10b5b0c5a527c3c966a32e02993e1a8690f70d61c5cb716c3 SHA512 3187973dc2a465e7f49c900ceb7ffd7f81d03aa7e7dbc3e025660c3fa496c31cf912e99447aecd02907a49e3b493039e6da0a72c7b82209af604bb7d29743059 WHIRLPOOL 80f6c889ddbb93173b5a5a00f9b3d68890d10fb34f2c0268f7970a9710ef88bef7205d9efadaf1f529c5c7d70cb58aabc1fae7ec28dab9c0d46033d3d194bf92 +AUX logrotate-3.8.2-atomic-create.patch 1201 SHA256 2acc84de40c1e8525e3d1fb7e6e772073a87799a8bcf32985c36c076c9187bdd SHA512 9677792bb1600f8e84cc55fd869ab0a7df9f0c778e8f1c5766e10916a4c9e06451c3472c26ea69dce2ace6123853c00f03e1cd9aad7e4401c9a7268130f50720 WHIRLPOOL 9bf34e662d6fc383ff8f5c8a96761e5d30e03823b5ddab1f7c138f5e6af4c48cd60a70f6c8588ed2c303708cda57fcea9c0c6c673ad2364003b4235b14089d3f AUX logrotate.conf 860 SHA256 5a0d6a2f331af0df8e0b87904ba522b64bfebc13f47b0a5717e03257d3f29ad7 SHA512 ada7ad4efc4d9ff0b8067db80af6c7be0f44f12f7bb705949cc76dd9f2818ec368be1dfc8432cf5ee2955c72d137fb609b7886a3d982045c18d4a809ef72c480 WHIRLPOOL ce50276ffd0a0ff8e347e724b08576c622112bcc535b0ce584fbcb4ea2f496d2ee09a1020f895a7b6d75f83b7b9df803d8db8b28c93c50eab9706588d5e3789f AUX logrotate.cron 52 SHA256 5eeae7dfbd54f74108d49cda8285211898d29ab7d547dee267803299e7339560 SHA512 5d5797b0f4490ff39b48319165db2cb4e821d9930a45d0550de8dc541ce899eb1e7cab7b9dc3d7a350835ddb8f6702246f1b50e0930037f3c52c82ee129f1acf WHIRLPOOL a9537ebcfd51d911f4f8ffbc430618d6bf510b6f442414f61e6f4c203f9c268d939aaec9b151c29bbd6a292348f386cdd0a1685d324749b110ef14d59439d647 DIST logrotate-3.8.1.tar.gz 48827 SHA256 c12471e70ae8bc923bd5c4f25e8fd6483b68c6301f3cd79f7cfe37bc5b370169 SHA512 d1467f0c894f44edf46a3049d61ef09e4ae4cc361f3a88e38b2126ebe0650604c6a2b4e1c751ca35538ddb13b25dcee52fa4c21ccefbd040ae1e50c4bb126b09 WHIRLPOOL decd2d6be262c0ab1efc1d0b1b2639f50d16238ab8e781e31008b67e9917a670cd7ff7dfe98ec879b7d1fbb7f12d9f018a1173f44e574737931ab5f81cc221c0 +DIST logrotate-3.8.2.tar.gz 51213 SHA256 1cb9496e48fc4b8fe63d85d27be8567e9131541fe11e4d4d5993730afc578cab SHA512 ccf21a06a8af5535f0e6de05dc5b02c3e7efdfe6117cb0fc3f4d8d41e8c579bddad3aeba7dfa63cea0bcf78f5cfbe010ff9c7b580ea868229bf3069f29906162 WHIRLPOOL bcc9a27ca1afa29e56ea366cc6ed034ecbc93995d3bda63e24e0b593cbe181091b4f525726130becdbd9bda8d136f36da40105316c80d4576613948b5f3a7fe7 EBUILD logrotate-3.8.1.ebuild 1832 SHA256 f2f6f3f864751dc71f941431a695a6ce9199984f50df359b6d3d4b598afb0002 SHA512 6e894773740d5c05813279ddd0529ea80e87d2bb471d9b4cab1e6e685b8f20d9b819de604d37965e774bba1c5ecc5484d207f45753cdd2e319c09cc2cfb292b8 WHIRLPOOL 7a49d8568b57b13ad1194de86f50a221487c5f9fbc07583e65f75e7a79a5cd43335a713a597893fa438754418f2d1f0357dd8b0ae9b098a9a2cb40c715458dbc -MISC ChangeLog 17252 SHA256 28e078c66c0904d8e2c77e4fe55e0edf78a6081652924fbaef20ec0168b3b14e SHA512 751c2fc7afc059591c93f687e4492b12e9971510282708d0adc8afbc5e2db35b1aab4f777e7ef0dab86924a81b3d86d1c612f853b8098c517bbe8862420c11ff WHIRLPOOL dc3867caf4c1d5cae6299fd39c8870170ab59863b0708ad8edba1af65fe23a5379b450a5c3a2b45c2494e486ff823da781d01aba32a96c472375ea6e027e3002 +EBUILD logrotate-3.8.2.ebuild 1842 SHA256 93fa1990aa9bf843f762ad8696cb80cb25d40067543748bef1bcf8abd0358ce2 SHA512 aa899d9dc78627d468c4bd3c7cad75ca31ace97756001748b714cbf3717f67b35ce46dbdd1efb25c09419b4ce1b4682b6fd3d00af348622d52f84974e0954cf5 WHIRLPOOL 2a1ee216f87eaab3c9c64380916be3b862bea86933da029645c68509397cbca8dfc4f8bc21c77252a798750c151cda8018c83b86feaed2b509027aebb32bf881 +MISC ChangeLog 17420 SHA256 16eec6319dcd1a45855592ab9d848d1a1e7abb17d14f67e3bebb5311f24d6fad SHA512 ffbe430eb4ba25624d9f7d34624c4073fede7fc15916c277e006d3e7f5792d6643df62e8775d06704cc1ca7da6c71f065c51a4818ed65ec09906413d73330269 WHIRLPOOL dd8c7d580b0049d572962dbe6feaa2254c30032f54f861e2ccb246b40a78322f81d5ca1a9159ee490c720ca712ceaf28c64d83fc9a6b1077634723b7eb55c5e1 MISC metadata.xml 975 SHA256 a329700a1e76593184907198fff2f678e429294226461ac1a913fe58cbb28c8d SHA512 c7736be8ad13e6e31c6561ff0fdbc2e3df7f59069eafdc5b655f780d96d277795201b9db747bc3da24c932aaaad16d40aebf18b8fc679f7ae8fa528088828d4f WHIRLPOOL 931ab959ebfb43aaac9c8926f26e17750c38f155ed15905117e2c8ca3374db427db763c6b724db9eb7f05fcf600dac54ed8008c222410073d82e17e38b0a45be +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJQGsJVAAoJEA2sAkrWKOU2Vt4IAKi/7Oo9KEBL7uG6I8y6PpNB +PVlPLM7J6/X5BQgl81t4iILWZNZspOCzjSzu5FQQUZongwzpxYsPX3yDLWfDcLSy +wI0Nj2gAJb1ZUC/wSR/KO/ii8UDBK/eHquko6uPBtXQRwU0SXknLMZXTZGLVe3At +lyPX3vkvY0GDFGTggpyxONPGHt4kFpGwA7HvRD3X8honImmjOn8wOExvWgCg+m9k +1FDgRI4OfDgwkl5y8lNL/Ud4DdlUIzMUmBxVZz4f4Uk8qeI1Dxz3m/at3m6Y4B95 +HYsoaFqgl2HZbxnBx66gV/8UUqTWA2dXWEm6+5Rg2iGKAxy7emmi0DPMGYxemDw= +=3osU +-----END PGP SIGNATURE----- diff --git a/app-admin/logrotate/files/logrotate-3.8.2-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.2-atomic-create.patch new file mode 100644 index 000000000000..e0d3f5e26cf6 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.2-atomic-create.patch @@ -0,0 +1,40 @@ +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2012-08-01 12:56:47.000000000 +0200 ++++ b/logrotate.c 2012-08-02 18:01:20.960383277 +0200 +@@ -293,13 +293,19 @@ + { + int fd; + struct stat sb_create; ++ char template[PATH_MAX + 1]; ++ char *fname; ++ mode_t umask_value; ++ snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName)); + +- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), +- (S_IRUSR | S_IWUSR) & sb->st_mode); ++ umask_value = umask(0000); ++ fname = mktemp(template); ++ fd = open(fname, (flags | O_EXCL | O_NOFOLLOW), (S_IRUSR | S_IWUSR) & sb->st_mode); ++ umask(umask_value); + + if (fd < 0) { +- message(MESS_ERROR, "error creating output file %s: %s\n", +- fileName, strerror(errno)); ++ message(MESS_ERROR, "error creating unique temp file: %s\n", ++ strerror(errno)); + return -1; + } + if (fchmod(fd, (S_IRUSR | S_IWUSR) & sb->st_mode)) { +@@ -328,6 +334,12 @@ + close(fd); + return -1; + } ++ if (rename(template, fileName)) { ++ message(MESS_ERROR, "error renaming temp file to %s: %s\n", ++ fileName, strerror(errno)); ++ close(fd); ++ return -1; ++ } + return fd; + } + diff --git a/app-admin/logrotate/logrotate-3.8.2.ebuild b/app-admin/logrotate/logrotate-3.8.2.ebuild new file mode 100644 index 000000000000..4f15d93fcadf --- /dev/null +++ b/app-admin/logrotate/logrotate-3.8.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/logrotate-3.8.2.ebuild,v 1.1 2012/08/02 18:10:04 nimiux Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Rotates, compresses, and mails system logs" +HOMEPAGE="https://fedorahosted.org/logrotate/" +SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="acl selinux" + +RDEPEND=" + >=dev-libs/popt-1.5 + selinux? ( + sys-libs/libselinux + sec-policy/selinux-logrotate + ) + acl? ( virtual/acl )" + +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +src_prepare() { + strip-flags + + epatch \ + "${FILESDIR}"/${PN}-3.7.7-datehack.patch \ + "${FILESDIR}"/${PN}-3.8.0-ignore-hidden.patch \ + "${FILESDIR}"/${PN}-3.8.0-fbsd.patch \ + "${FILESDIR}"/${PN}-3.8.1-noasprintf.patch \ + "${FILESDIR}"/${PN}-3.8.2-atomic-create.patch +} + +src_configure() { + return +} + +src_compile() { + local myconf + myconf="CC=$(tc-getCC)" + use selinux && myconf="${myconf} WITH_SELINUX=yes" + use acl && myconf="${myconf} WITH_ACL=yes" + emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + insinto /usr + dosbin logrotate + doman logrotate.8 + dodoc CHANGES examples/logrotate* + + exeinto /etc/cron.daily + doexe "${FILESDIR}"/logrotate.cron + + insinto /etc + doins "${FILESDIR}"/logrotate.conf + + keepdir /etc/logrotate.d +} + +pkg_postinst() { + elog "If you wish to have logrotate e-mail you updates, please" + elog "emerge virtual/mailx and configure logrotate in" + elog "/etc/logrotate.conf appropriately" + elog + elog "Additionally, /etc/logrotate.conf may need to be modified" + elog "for your particular needs. See man logrotate for details." +} |