diff options
author | José María Alonso <nimiux@gentoo.org> | 2015-03-01 11:06:24 +0000 |
---|---|---|
committer | José María Alonso <nimiux@gentoo.org> | 2015-03-01 11:06:24 +0000 |
commit | e38c1275bbbb7f01ace53f0d8e9db58685e6bfb0 (patch) | |
tree | 76d1ad89b1d622a1502779a5af39612da3dd0b42 /app-admin | |
parent | New snapshot of trunk. Remove old. (diff) | |
download | historical-e38c1275bbbb7f01ace53f0d8e9db58685e6bfb0.tar.gz historical-e38c1275bbbb7f01ace53f0d8e9db58685e6bfb0.tar.bz2 historical-e38c1275bbbb7f01ace53f0d8e9db58685e6bfb0.zip |
Version bump
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0xF253DB15
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/logrotate/ChangeLog | 12 | ||||
-rw-r--r-- | app-admin/logrotate/Manifest | 25 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.9-Werror.patch | 12 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch | 43 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch | 57 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch | 14 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch | 55 | ||||
-rw-r--r-- | app-admin/logrotate/logrotate-3.8.9.ebuild | 78 |
8 files changed, 291 insertions, 5 deletions
diff --git a/app-admin/logrotate/ChangeLog b/app-admin/logrotate/ChangeLog index 8293c24be039..978fae279d7f 100644 --- a/app-admin/logrotate/ChangeLog +++ b/app-admin/logrotate/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for app-admin/logrotate # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.187 2015/01/21 13:03:14 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.188 2015/03/01 11:05:42 nimiux Exp $ + +*logrotate-3.8.9 (01 Mar 2015) + + 01 Mar 2015; Chema Alonso <nimiux@gentoo.org> +logrotate-3.8.9.ebuild, + +files/logrotate-3.8.9-Werror.patch, + +files/logrotate-3.8.9-atomic-create.patch, + +files/logrotate-3.8.9-fbsd.patch, + +files/logrotate-3.8.9-ignore-hidden.patch, + +files/logrotate-3.8.9-noasprintf.patch: + Version bump. Fix bug #533992 21 Jan 2015; Raúl Porcel <armin76@gentoo.org> logrotate-3.8.8.ebuild: alpha/arm64/ia64/s390/sh/sparc stable wrt #531744 diff --git a/app-admin/logrotate/Manifest b/app-admin/logrotate/Manifest index 7f902ce84c36..f839be2724fb 100644 --- a/app-admin/logrotate/Manifest +++ b/app-admin/logrotate/Manifest @@ -11,17 +11,34 @@ AUX logrotate-3.8.8-atomic-create.patch 1350 SHA256 9127c084f1dd28d876ad9cffa203 AUX logrotate-3.8.8-fbsd.patch 1401 SHA256 bb6a6fdc6b776935bb0709f10c1d499cfc42dfcf0f0c72118207e096cf5ef04f SHA512 3736ebb7cfd7e314fabe3738a0fa3fd779fe3a69d7d5859d0d5b2cc79fdd8595afae6c4ab7148798d6c8eb27f02bc3058a4bfbe191391a721a19d5889c8e8d22 WHIRLPOOL b2bb108763214407b18c9a9fb0596fb96d06364a9b467622a6e7275e6495ca7969d330600b538367fc4dc021e850462e0929483dd548de5678bafe57af4e86bf AUX logrotate-3.8.8-ignore-hidden.patch 548 SHA256 947e56780213fbc223cf1e90d6597ce5f5bd28a4b3bac2de040742bcf4195203 SHA512 3f3556400223d6a2439bfe7ff84fd7be3a5575f5f82b268d97c09aded598820f117e438f49d5e26e713a12df1254d4d31fdf34a1aa27ffc5d786d7c0a66d68f3 WHIRLPOOL 75b17ea87366697a020260359bd3c1d0ae18be5567d1c6d778b1f03d9af3d79d57f19fea5e321e1b471bc46fb6a1443bed8c71e39655496b35a5be04466b2d51 AUX logrotate-3.8.8-noasprintf.patch 1264 SHA256 904a932bba5c3ea6ef1103f75952b4825f5ec9a28af5f647f18721cdcce49da8 SHA512 0e51077cb5844c99d8c668b6fe47a0d6dd5fce650da3ecacd06d368dd5f400d97b564c5ceccbde3b7ad0808b6d2f05088ea7eb8b29bbefe661230e5a312f59c7 WHIRLPOOL ce39dc167a0408d49cb4c26afc47635879f78ee455a9e514e16b463660900391a04b912caf3fc631397588f33385b66ad0b561876d85b3075309525f3d879ffa +AUX logrotate-3.8.9-Werror.patch 344 SHA256 ab3ef89a880f025e7a401bbe53b49bb3f15e3e4b11b3558eefc7f06fd73e5a17 SHA512 8d35b2801b66baf89fd289d1c4edebb57b10bc0c873be38236c0d06bd1b9b2d29f69696d5d585f136508cb5da0f4528a1350d2e0305a5424ed0f6c212717b8fd WHIRLPOOL 8f5e3d21267d88b054e0461a704343701d6f2488e01f6832c9ffbb5806661004bac9831ef7e01138020cc7359addd02ff1c6a53e98857065ea226a2205cd8a02 +AUX logrotate-3.8.9-atomic-create.patch 1260 SHA256 00761829766be7d7ac64e14d0193e11d289ae3b44afac81f1840f7a721b71100 SHA512 23d863f8d382c19a4390fd6d574318236cbe727c4aa8351acfbfa95464be11f674599ef4ba410a62c9dc52b69490fb5d788dd9e99eee4ae15ee2b6e792439f0b WHIRLPOOL 4172ae4ee3725873c7357f6fb4c360ff8194fccc82eded1dfc3054430696d4a4921c98ce25de66a01bc07a72b2c0866d3a28249f89da3955a007888393aae2a0 +AUX logrotate-3.8.9-fbsd.patch 1393 SHA256 cdea95e588ec7c3fdcb5998ef1cad4b7c71091e92a08c372d0d979376e7a5405 SHA512 cce8091b799eed02850906583931963d7ca9c0b602a62dbe2a3a58d116c4d682b4ed41a5ea4dcd59a9349dcb43f2971b52b74812903955ae6236e7901325b40e WHIRLPOOL df655aba8281388531697ed710abf670b81b47d2b3d0806c733a53901e359a241920f7e162e86bf848dd80484446acf9ec00b557ce6899d7a23f208a669217d0 +AUX logrotate-3.8.9-ignore-hidden.patch 548 SHA256 eb99319e7672834d3deb12f6d9c16b87ed76fc713d7d4fa9b3a2641085bada44 SHA512 0919e3637afdea75a9d0c3cdd1393225bd35214dbc3cebfad4dac45ba211a37e9cdc14382298cf2a54901644720d3a42f57fa9f89ce54f81b241d8bc3328e22b WHIRLPOOL c1e14cdf45cece28470ff8f6e370127d6e3bcd36a2bd5dd3f8994a42bdb7755f2d9549c840cfada061347ea9be0814a7c533458ebcb99e6c4837b4d41b3862f3 +AUX logrotate-3.8.9-noasprintf.patch 1264 SHA256 44d5030dd9a88832fd4e73175b15f6f63aee5c69daee5b0e22594ea2f93c21a1 SHA512 b4722a34ade7a150d6ca0f86c9bc87cd9fc72aa1adc600e0ff6df598d486fd9e2fe7bd141c4c9511fe43516197bc347dc53bd46f0dd43c12816a4064aff72dc1 WHIRLPOOL 96424ab60372ba8bdba5b758c149d9051ad58179f677862f3de430d06365b12c5de59d1575f112438e012d04c76a586af065875e7b2cbad770cbf6743b962fd0 AUX logrotate.conf 858 SHA256 9f01dc19ce200abcf53bae2e69003b3b33a33c5e00be651f5c33e232165f8926 SHA512 0d733fd44ba8effa99d72ff0098d39dd5048dfcfc8c410e85c8d0906b8e05c866e5035d1b7fb170f0f66906083d2e4aee8d3fe2146e85357bb82f1494307ad82 WHIRLPOOL 0c46378c56e83abe3292e12716d3e10ce82965863735be06a14ca5fdcedecc5b6a2c22a0ba5bc51d03d4703ebbf550ec6752c973b74f7a080278ff427363d4d7 DIST logrotate-3.8.7.tar.gz 58898 SHA256 f6ba691f40e30e640efa2752c1f9499a3f9738257660994de70a45fe00d12b64 SHA512 6c0dc106e2a9e9d2cd7ac12af869bc152db7d046a1c6d1b75810fb2fc7a7f382b3c3f1dc54b9fb9a9eee248c1c66a9f5ce86804f15b49ac0210313c231b49e7f WHIRLPOOL 6ba7fd7eca8435575c96a5534fe9dbe098235ee2319f2ab8e279d94fa6de3ea0e53cd78eeabd643e4da049f585df9a901681b61d0d339131f45fe580aa0eb198 DIST logrotate-3.8.8.tar.gz 72014 SHA256 46a1510ef4a1f4359edd5f361112cfd1523942e85ff28e6cbb0c81bad1829d0f SHA512 2b7b5fe587b3a5cbe98b8035a541b5e272e6e4c40669f65ff6c43d1524b686eca9abc0b93bc00c8eb6da4d189f14a9b79905fcc0fadb914276d884ad7493bb4b WHIRLPOOL b145d51cdcf0214e4f4b6a97aed7b9e1375c2848efecbc16181eaa6e1105ac8892c57248c89b92eb080d6cd6b23958085f39a894df7f5dce0bea6516e2d583c4 +DIST logrotate-3.8.9.tar.gz 77408 SHA256 700ed7ce9072a1cca324779a74797dfaefdae37ac50a817134b947c4ded1dfa7 SHA512 342533f321a1d77c0ca389fd0a393377ba73f10654aae163cbd35f8d5df25673f1aa6e44d0af42be5419d152a7dae11024d9005076bce0a3b3dad1f0e12b9c0d WHIRLPOOL 005621b5dc7f6954e505876eece76e3adf03b9b89b724e5c28b845c8af3ebb8e978d20e3a82c8a503c32bfd8758517625207e23518d6d08068e237c22fe7212d EBUILD logrotate-3.8.7.ebuild 1849 SHA256 116d9d98db5e808f4a15a85f80843bb322534f2b09aad38e700b49e9a205dc95 SHA512 ee3d564aee262200c1ed35f8cec1d7817d6f8e1baaf7c4f68744f16bdd36b1183950958b203383987aac2ecb2ccf914c40c7c15f9242d0f6169b8c3520f0a90f WHIRLPOOL 7588c0fb1b9bfed3460b2af1363325180945fd7a56ef1086ca956068854b69ef443b7a9c890f4925d7f30b77ed72cef2f417d7507faf7ecaef3e1f48ad21e799 EBUILD logrotate-3.8.8.ebuild 1874 SHA256 8c0107e2e5c1bba2fc70dfb474d2116af472678ff29df28df526efc233430c14 SHA512 62fe44fac9a1b93b3751208ecd053121fe3598e6283a22bd321369a59101b5a571e9f5e0c7a51fb1bdeb330dc39c0a7c53e88a724f3247a64125d895491b7584 WHIRLPOOL e7480e4240903aeb4a49bb61f671c728fb5665a379cda4484200f4a8f5fee41d9e4fcb1357f31b06f4f8a785266f6a21356f75c069376c0a302df0d1be778a66 -MISC ChangeLog 27830 SHA256 5a750ff491821ace03f4bd120d1c9c8e7575bcd1c191fec1c925bc8b82d66cb8 SHA512 71517dbdc3aa1241347271a1b972a9ce6b0de4bf9340a7fcf810b20b03f9a188909ebae7e56cb76d56d10d4f33abca18e1a027ff701f4129aaa9ddd36a3a4f4d WHIRLPOOL dcb2fd6abe4c5e351c335fb31968db710eba156e8a86a870406539a697e0a627fa8321709e01c75ac729d84bda0d0aa818f38ba289512c1221a5c2352dfdaf85 +EBUILD logrotate-3.8.9.ebuild 1912 SHA256 888623d178b4ba2c21c7df4c5e985d83efcf7029351c58d2f6e4124f32eab5ae SHA512 5abd0a3459edcf7e69627116ca4a9018fba4e46954936a92d451369e00ac1f9e04e4abec2b0cda0020238ed00987a87db857fd103ccced3f6a08659ea53ac0c0 WHIRLPOOL 52272ee48fffd9b7d30eef64766b6692528059c2b5470f3285f3ccffa11dab32b2589fd253bcebd9504e0f82ece7f052dce46383c965ffbb11845403b7cf5c91 +MISC ChangeLog 28178 SHA256 ac5a853c0cd8ba77c8db566c6a6ffa2bb70a106a53eba8f1c4344da8c2aa5005 SHA512 ef0512a80e4a3e139b1b7c47c4574d911ece5d0f911901b408c461056f1699975fb543cab23bcca807ff717db81e9b9e36ffe205695922acafed1ab6a9c3440a WHIRLPOOL cc714663540a9664e0718353838a421566ddb20551fc5eb0784d1872da17bc80bd4d6f21d34afbdcf9585524227bf7d3fe760cac793e530faf1667dce19b2207 MISC metadata.xml 975 SHA256 a329700a1e76593184907198fff2f678e429294226461ac1a913fe58cbb28c8d SHA512 c7736be8ad13e6e31c6561ff0fdbc2e3df7f59069eafdc5b655f780d96d277795201b9db747bc3da24c932aaaad16d40aebf18b8fc679f7ae8fa528088828d4f WHIRLPOOL 931ab959ebfb43aaac9c8926f26e17750c38f155ed15905117e2c8ca3374db427db763c6b724db9eb7f05fcf600dac54ed8008c222410073d82e17e38b0a45be -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iEYEAREIAAYFAlS/o5UACgkQuQc30/atMkD2bACglpsHddYJYdQACofELILmC1n4 -egkAniOUVuxYs8NtVQ4XCOXc2IPKd+mw -=3fPA +iQIcBAEBCAAGBQJU8vM/AAoJEH/rgyzyU9sVM4cQAJAFhoTNFsz5eyKDDJmGZTmO +L7LePVR+sIOPD+z1O+SdwuEpCDqUJ4cMNzi/+QAYMKsizMfZuepOUBrdOakBKSjN +ADhNrnLKN1EOyqTGkW2hhyXrhOx5V7/suS8NPeKbSaXxz1vkHTPHNGnmPuvpBkGG +NogEAYmQd+mRjZpiAtVd+qtsmQ6z//726hFhnbt2mpJVW5uweT3ZlAbB5Xu81/Ra +3WBmULneucsWE/JpdfCRI9ibPPq/zChRxtmeVifEDsDRufHRGcUbLfyhnaI2nib3 +Nq4u2Sy/Zcus1XEC3Vv14LOujNwzYA1P3npVMlXSQBsDoTjdiIfz3uZYFa+vxkWb +xM+dczVYIyOSSjQFgBV97su7/IPzvhEtWBfv3+KfOrAjJvGHmcJF/K5fdOGklHLA +TtAZR1GOy2KsEwmTxmsZBDmJ+onax09qBX9p262R+suozV7O0q6s4Xwei5KoNcAb +HkYczNBYImfRqp5PP0LOMOXlE3aLOpjzBs3WZn15jOUa6G1mWhc4YQs7Yrvnzg61 +M1pX6gzYqGZca4CsyIAr1ZtFOs35WJlilt5lx81AKNMq6uozyamH0bLmkABpL3gm +xTOxHDIlFdG3Xg0DtKa49XIIclIr1a6pl/0HA08Quipk4mzjByunKU4+ntSX99st +zeZCrYljCSKTE767LV4d +=yskg -----END PGP SIGNATURE----- diff --git a/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch b/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch new file mode 100644 index 000000000000..53570e1124a9 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-Werror.patch @@ -0,0 +1,12 @@ +diff -Nuar a/Makefile.am b/Makefile.am +--- a/Makefile.am 2015-02-13 07:11:21.000000000 +0100 ++++ b/Makefile.am 2015-03-01 11:19:47.279999912 +0100 +@@ -1,7 +1,7 @@ + MAN = logrotate.8 + MAN5 = logrotate.conf.5 + +-AM_CFLAGS = -Wall -Werror ++AM_CFLAGS = -Wall + sbin_PROGRAMS = logrotate + logrotate_SOURCES = logrotate.c log.c config.c basenames.c + diff --git a/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch new file mode 100644 index 000000000000..dbb2063a476e --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-atomic-create.patch @@ -0,0 +1,43 @@ +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2015-03-01 11:50:36.569999862 +0100 ++++ b/logrotate.c 2015-03-01 11:56:26.329999853 +0100 +@@ -372,15 +372,18 @@ + int createOutputFile(char *fileName, int flags, struct stat *sb, acl_type acl, int force_mode) + { + int fd; +- struct stat sb_create; +- int acl_set = 0; +- +- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), +- (S_IRUSR | S_IWUSR) & sb->st_mode); ++ int acl_set = 0; ++ struct stat sb_create; ++ char template[PATH_MAX + 1]; ++ mode_t umask_value; ++ snprintf(template, PATH_MAX, "%s/logrotate_temp.XXXXXX", ourDirName(fileName)); ++ umask_value = umask(0000); ++ fd = mkostemp(template, (flags | O_EXCL | O_NOFOLLOW)); ++ 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)) { +@@ -431,6 +434,13 @@ + } + } + ++ 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/files/logrotate-3.8.9-fbsd.patch b/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch new file mode 100644 index 000000000000..4c6c8cf7e27c --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-fbsd.patch @@ -0,0 +1,57 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-03-01 11:25:37.489999902 +0100 ++++ b/config.c 2015-03-01 11:26:31.129999901 +0100 +@@ -1,6 +1,6 @@ + #include "queue.h" + /* Alloca is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -24,6 +24,10 @@ + #include <fnmatch.h> + #include <sys/mman.h> + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/logrotate.c b/logrotate.c +--- a/logrotate.c 2015-02-13 07:11:21.000000000 +0100 ++++ b/logrotate.c 2015-03-01 11:27:05.769999900 +0100 +@@ -1,6 +1,6 @@ + #include "queue.h" + /* alloca() is defined in stdlib.h in NetBSD */ +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <alloca.h> + #endif + #include <limits.h> +@@ -25,6 +25,10 @@ + #include <limits.h> + #endif + ++#if !defined(PATH_MAX) && defined(__FreeBSD__) ++#include <sys/param.h> ++#endif ++ + #include "basenames.h" + #include "log.h" + #include "logrotate.h" +diff -Nuar a/Makefile b/Makefile +--- a/Makefile 2015-02-13 07:11:21.000000000 +0100 ++++ b/Makefile 2015-03-01 11:27:27.209999900 +0100 +@@ -22,7 +22,9 @@ + + ifeq ($(WITH_ACL),yes) + CFLAGS += -DWITH_ACL ++ifneq ($(OS_NAME),FreeBSD) + LOADLIBES += -lacl ++endif + # See pretest + TEST_ACL=1 + else diff --git a/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch new file mode 100644 index 000000000000..d09266895ccb --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-ignore-hidden.patch @@ -0,0 +1,14 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-02-13 07:11:21.000000000 +0100 ++++ b/config.c 2015-03-01 10:51:09.669999958 +0100 +@@ -359,7 +359,9 @@ + char *pattern; + + /* Check if fname is '.' or '..'; if so, return false */ +- if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2]))) ++ /* Don't include 'hidden' files either; this breaks Gentoo ++ portage config file management http://bugs.gentoo.org/87683 */ ++ if (fname[0] == '.') + return 0; + + /* Check if fname is ending in a taboo-extension; if so, return false */ diff --git a/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch new file mode 100644 index 000000000000..aee570250f47 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.8.9-noasprintf.patch @@ -0,0 +1,55 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2015-03-01 10:58:18.689999946 +0100 ++++ b/config.c 2015-03-01 11:04:20.899999937 +0100 +@@ -49,39 +49,6 @@ + #include "asprintf.c" + #endif + +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-#include <stdarg.h> +- +-int asprintf(char **string_ptr, const char *format, ...) +-{ +- va_list arg; +- char *str; +- int size; +- int rv; +- +- va_start(arg, format); +- size = vsnprintf(NULL, 0, format, arg); +- size++; +- va_start(arg, format); +- str = malloc(size); +- if (str == NULL) { +- va_end(arg); +- /* +- * Strictly speaking, GNU asprintf doesn't do this, +- * but the caller isn't checking the return value. +- */ +- fprintf(stderr, "failed to allocate memory\\n"); +- exit(1); +- } +- rv = vsnprintf(str, size, format, arg); +- va_end(arg); +- +- *string_ptr = str; +- return (rv); +-} +- +-#endif +- + #if !defined(strndup) + char *strndup(const char *s, size_t n) + { +diff -Nuar a/logrotate.h b/logrotate.h +--- a/logrotate.h 2015-02-13 07:11:21.000000000 +0100 ++++ b/logrotate.h 2015-03-01 11:04:55.739999936 +0100 +@@ -80,8 +80,5 @@ + extern int debug; + + int readAllConfigPaths(const char **paths); +-#if !defined(asprintf) && !defined(_FORTIFY_SOURCE) +-int asprintf(char **string_ptr, const char *format, ...); +-#endif + + #endif diff --git a/app-admin/logrotate/logrotate-3.8.9.ebuild b/app-admin/logrotate/logrotate-3.8.9.ebuild new file mode 100644 index 000000000000..1b97ec287257 --- /dev/null +++ b/app-admin/logrotate/logrotate-3.8.9.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/logrotate-3.8.9.ebuild,v 1.1 2015/03/01 11:05:42 nimiux Exp $ + +EAPI=5 + +inherit autotools 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 ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="acl selinux" + +CDEPEND=" + >=dev-libs/popt-1.5 + selinux? ( + sys-libs/libselinux + ) + acl? ( virtual/acl )" + +DEPEND="${CDEPEND} + >=sys-apps/sed-4 +" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-logrotate ) +" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ignore-hidden.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-noasprintf.patch \ + "${FILESDIR}"/${P}-atomic-create.patch \ + "${FILESDIR}"/${P}-Werror.patch + eautoreconf +} + +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}" +} + +src_test() { + emake test +} + +src_install() { + insinto /usr + dosbin logrotate + doman logrotate.8 + dodoc CHANGES examples/logrotate* + + exeinto /etc/cron.daily + newexe "${S}"/examples/logrotate.cron "${PN}" + + insinto /etc + doins "${FILESDIR}"/logrotate.conf + + keepdir /etc/logrotate.d +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + 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." + fi +} |