diff options
author | José María Alonso <nimiux@gentoo.org> | 2014-07-09 07:35:11 +0000 |
---|---|---|
committer | José María Alonso <nimiux@gentoo.org> | 2014-07-09 07:35:11 +0000 |
commit | 478325fe51f86a940c09e21891d4ab011c00c2b9 (patch) | |
tree | 0f1e951dcfefb7a20d3f5fe0ef8f71cc7e7f692f /app-admin/logrotate | |
parent | Fix building without UPower headers wrt http://bugzilla.xfce.org/show_bug.cgi... (diff) | |
download | historical-478325fe51f86a940c09e21891d4ab011c00c2b9.tar.gz historical-478325fe51f86a940c09e21891d4ab011c00c2b9.tar.bz2 historical-478325fe51f86a940c09e21891d4ab011c00c2b9.zip |
Drop old
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0xD628E536
Diffstat (limited to 'app-admin/logrotate')
-rw-r--r-- | app-admin/logrotate/ChangeLog | 13 | ||||
-rw-r--r-- | app-admin/logrotate/Manifest | 32 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.4-atomic-create.patch | 43 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.4-datehack.patch | 12 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.4-fbsd.patch | 57 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.4-ignore-hidden.patch | 14 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.4-noasprintf.patch | 55 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.6-atomic-create.patch | 45 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.6-datehack.patch | 12 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.6-fbsd.patch | 57 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.6-ignore-hidden.patch | 14 | ||||
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.8.6-noasprintf.patch | 55 | ||||
-rw-r--r-- | app-admin/logrotate/logrotate-3.8.4.ebuild | 70 | ||||
-rw-r--r-- | app-admin/logrotate/logrotate-3.8.6.ebuild | 70 |
14 files changed, 21 insertions, 528 deletions
diff --git a/app-admin/logrotate/ChangeLog b/app-admin/logrotate/ChangeLog index 1eed5108a068..fe48481a95fe 100644 --- a/app-admin/logrotate/ChangeLog +++ b/app-admin/logrotate/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for app-admin/logrotate # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.178 2014/07/07 09:55:32 nimiux Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.179 2014/07/09 07:35:03 nimiux Exp $ + + 09 Jul 2014; Chema Alonso <nimiux@gentoo.org> -logrotate-3.8.4.ebuild, + -logrotate-3.8.6.ebuild, -files/logrotate-3.8.4-atomic-create.patch, + -files/logrotate-3.8.4-datehack.patch, -files/logrotate-3.8.4-fbsd.patch, + -files/logrotate-3.8.4-ignore-hidden.patch, + -files/logrotate-3.8.4-noasprintf.patch, + -files/logrotate-3.8.6-atomic-create.patch, + -files/logrotate-3.8.6-datehack.patch, -files/logrotate-3.8.6-fbsd.patch, + -files/logrotate-3.8.6-ignore-hidden.patch, + -files/logrotate-3.8.6-noasprintf.patch: + Drop old 07 Jul 2014; Chema Alonso <nimiux@gentoo.org> files/logrotate.conf: Fix tabs and enhance comments. Thanks to Consus via email. diff --git a/app-admin/logrotate/Manifest b/app-admin/logrotate/Manifest index c77157104ae6..17bed2701300 100644 --- a/app-admin/logrotate/Manifest +++ b/app-admin/logrotate/Manifest @@ -1,38 +1,24 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -AUX logrotate-3.8.4-atomic-create.patch 1311 SHA256 39982ff6e7d17f70b2361366d773f0c7233c5ea373f7d4f73ffb8b5fac855143 SHA512 49f8b06807f612b48e92c70892545c9a97ffd0f1c7e2e2292c926789cc0582a6481779907f9d105a7d46fb3b7ae529a55d4c59c3e2380103c9ca80b5a7b82289 WHIRLPOOL 8c54c11c5c36cee80c89a480b1cd5067656a85663714f77c5aeb454a8c9defd4f64e853afb6f94603e17ce451d3239ae09b7fbae46562ded4febbfc54f1e299c -AUX logrotate-3.8.4-datehack.patch 436 SHA256 4e06899d6c341bb4e7c01ebcca8faa99fa9f4d4a12324be0a9af42e57f105894 SHA512 63e69ba1708b2a5c3c56287503f19852f19f6db1d38597a7bab8f358f992455eade3edeedfce39593ef2e6d17340f5a9fc30a768a1e1d68a69c10607b21f2f54 WHIRLPOOL e2f052a2365a7cee8fabc53b4b358f7d518c2fea9b52f0c6031654a6841522714d360e8f965a167534a66c11ebc8026688723e2f2370bb93afaf8c6964c633cf -AUX logrotate-3.8.4-fbsd.patch 1405 SHA256 410248cc639b6d669bcef610fbb78adcfbf8c0f0b472450457bdb044397d71aa SHA512 f10c59342b1c0e5a5f1c38ffc554c65128380fd377e8deb507f304f36d9d4a50c0db213d20e31621741cc6f82152f8a26a4097295b035ecc144c88aca7fdde4c WHIRLPOOL 17438ccf7a653f92ecede8ee8b491cf8378e16a39576b119d1e1ba1c9d0447316ddb5e933b28eef120e8a1f7d7f621b7f933768e1d2964b34b36c14895c1c4d5 -AUX logrotate-3.8.4-ignore-hidden.patch 547 SHA256 9acc7d88058d93a3f9c718292ff313d6b12000e78c82cd1855f22adaf1f5af6d SHA512 a6acba8d73b60f66ce5e6e053b07de4fd6225edf2216069592b9c95426377c5cd143685140c76349924699427db56cf83e8c7828af6748be9ce2b3445dbf20f8 WHIRLPOOL 76a7378b53826603685ef38820f7393dfa44792374a89c005ae4af3913e6722a7f5ed5251b62855f00e64225cdd56388df8ec17fd212d079d8860635186de9ec -AUX logrotate-3.8.4-noasprintf.patch 1204 SHA256 fc9f549b5069bec5b59af125bbfd1852c71ee0e81dba489d24cc3f9219b948b1 SHA512 6485643cfb0852dc81d9496bea89b0479fc65135c1ef99a680b57186d7188e7365ce9b64f0dd45f3405591ce3f1a1dd4bf07aafcb8a4889a34ac7a0f49ae6648 WHIRLPOOL 42fa66747304f6d6586b9fbd44136756aecfcab3edc98df2327a03076cc52bcec7065cde09496f9f28cbf6692b4d555c614be4df0385a3598b9951e8cc27c360 -AUX logrotate-3.8.6-atomic-create.patch 1350 SHA256 d18cef2802daf0f3d300c619e0291b6610989876a9c3616b9c46b1f3362bb667 SHA512 4422c8dd2fe8fb03f6d4a35b78d0ef0a353b30f961ec859e2f553af4e0c3b78caa30e63a115f1d02ac0f98f1f1b852559fc8be9b53e965b4165002b0388144dc WHIRLPOOL 9e0c18578c5367c8e284d8c22301845990eccf04d5ffae17cc88cad1e3e9d152191663dbfd0aaf59ca4376e553fe1a91faa90f538889a0a7fe7dc90685b9e4e7 -AUX logrotate-3.8.6-datehack.patch 437 SHA256 e08bb9fe76ba744c6b91b8df4699a1fe08eb44a23b3881c945c645ce2f1cdc45 SHA512 0c7bf780e0a97765089cd15404ee7f03626406df944f969f4e0995af8be4fe8136a579b27898fc9815907db1d1f9e8129455fc296e9e6a2b8a05fd0c21aef65e WHIRLPOOL 1d631bab50c3677de6912de61cec9274b422b467afabbb7e13cb0564f87e6c978ef5d88fca3cb20ca417ce71ce98e512092ba5ef2b099959d6584e34eede3a29 -AUX logrotate-3.8.6-fbsd.patch 1408 SHA256 b48b9f4e4c7cc903b0db7e3e974077979303a8ad8c5f17b73dedb78c25844787 SHA512 2351fd3a0bcfe1fe70c760c075e7f02bc409aeef3f66611a710c103cd2306810d37aa23e737df0f148af45add5b2f0355cb0eca7a2e044f176cd83c5bc2b77e9 WHIRLPOOL c96cf88a1bb4af7bce952eea3edc6c693171356b92be42a2fd8f7dda0e3ccb01ac1702ccce372d8037fbc08edaf519842845cc36af28efefc5264c392f301783 -AUX logrotate-3.8.6-ignore-hidden.patch 548 SHA256 ce9eeeda18210bf8e1f7132063c395b186daa98e7a9b5087c1d1321d49fd0c1e SHA512 6ec0d2383072b0857cc8aee3cae2f2437dc384e832dc813ba661670ae1691e25bd3685080cb85af6aecb6de6d14a533a503603fae5f639beba6a5f613260a2b4 WHIRLPOOL 546e922167b78ed9c74b954255b03b98d49bd598c4d7212bda9f52152f3a93c6eb01e226401afa420191e5ba57f11ba5887f7deb113097263029aca62e35e06d -AUX logrotate-3.8.6-noasprintf.patch 1264 SHA256 41b1274c7286ddc9ce697e6c27ec7780667dedb7ceb953bfb689ba947e752e93 SHA512 4c71ff2e1e3ab472a3a438ecc798958b055a2ce9ab12b9b4dfdb97fec0fe9f989e35a19ee0836f916ff43b05cf619c0dadf8efe930b39000be79e68cad340707 WHIRLPOOL f32370758461907f67f9a8d28b8234f0e552eb76eff94fb120b70c9beb56c74b809db8cbe3b0ec91159326442573c7ece3810fc2143508a7b60c8fc896ca1994 AUX logrotate-3.8.7-atomic-create.patch 1350 SHA256 b6ff26737a6c5f83a87d11b241cb1d439cdda59df0fabbcc95504e717ca3f3ec SHA512 4e7a45ae8b33ae38e368491fd4ab9fb0138bebbbe47ffddb1e2832a59cd59cdff07147d73c5a14414b4f6b11203c6db454a6259f016c7b0a890d82df7ce41ae9 WHIRLPOOL a277c2c4a17380ebe369b6f0313d82f34fd295fb05822c8c5d6b8eb109c3fc19fcc8786c79a54d6bf8fca7bbb6b632ad6b61fae2dff45ab2853aca8affd8f95d AUX logrotate-3.8.7-datehack.patch 437 SHA256 f8a6efbb9ad66339c5be50b36472bc3f15eb26bc2fe37f96a77e8efddc087ab3 SHA512 03563c553513b867321b8e3a776a0e8c203bf7f331314cbfd084f93ca1ea79d1a11abad85b09e797c79c04790208a11f17841ba4c9be296e3d9e216a320dfbb2 WHIRLPOOL 08f407c2c5d98e9457ee667a7d0bebcebb623754600b01f8a47b8081a016d7decfd557930e58dbeade79ccbe8976185ef05c155f6857211642a15ac02c8c0e11 AUX logrotate-3.8.7-fbsd.patch 1408 SHA256 3c6139593557d033c4adcd757b24c5c877affe458ada62df114ef8e6d9d17d33 SHA512 daaf49e7ef3adfc7f55538e76eeac41ac515e2324da7c8ea7b068b182c73781cfecf70f08fdc53b67f2f5bfe33ffb1fb85cbc70a1b3d317b295ecaed31450159 WHIRLPOOL 855d8650e23cebd7a857448ec4ae97a4388a253b9f4b8686218685fc628aa7069ac88fe0dd49998092f20735d4ea9967898d5c7b5da00c31c7a2efc5666dc60d AUX logrotate-3.8.7-ignore-hidden.patch 548 SHA256 a1df19c1b887918bc4adc19069e160f261c894d4167f3dffec2b8cd4202d0c23 SHA512 5c4ea381d5dc5fa0af968f14acedf767721d5c2671ddf6f876c487fb79ef65e1c64a762c32905335bb2fd5844985fcc504357db9a3dd17c7270a7b88b04998fa WHIRLPOOL 23a4df07778d1bb01ff127e7e2c18b588d88a8699901881adef01eb3cd5f25187ac917f608e6ff99d18b06d936cfd9a92d568ce52451906ab837ca9b4590c2df AUX logrotate-3.8.7-noasprintf.patch 1264 SHA256 7307ca47518ec7a87fce3323ab3acc2c00e764e865ab72d11fb4947fb516fc50 SHA512 bc952f603d2202ff0760aea8262362a671be756fbf8c86aeffffff2d4d33537fa1e834b83f9d8e156cc905b6c0c9b480bb4ac2a86db833693b4d625de48bb613 WHIRLPOOL f0ff217a0dbd3edcd11b38ca5e0bb5a33978facc0698a626a369eb18785ca490107cad6ae5baf69357978bf5d27485306f8b819e93804dbdc5430a468b6d2752 AUX logrotate.conf 858 SHA256 9f01dc19ce200abcf53bae2e69003b3b33a33c5e00be651f5c33e232165f8926 SHA512 0d733fd44ba8effa99d72ff0098d39dd5048dfcfc8c410e85c8d0906b8e05c866e5035d1b7fb170f0f66906083d2e4aee8d3fe2146e85357bb82f1494307ad82 WHIRLPOOL 0c46378c56e83abe3292e12716d3e10ce82965863735be06a14ca5fdcedecc5b6a2c22a0ba5bc51d03d4703ebbf550ec6752c973b74f7a080278ff427363d4d7 -DIST logrotate-3.8.4.tar.gz 55610 SHA256 d363e9212527ada6e566ad04e18d21eb7d70a3bfd0710671c7b75a2c0dd96e29 SHA512 c3a509d8d9140b4a584c9ca731df10d8df17abfd38fc1263d19b2d25560cd047cf2036c7a5ffa738036599f55616b3c73456af63c40ec087672a263e8895aee0 WHIRLPOOL af914183c0f1358f3e9ce06509b922af43bd5a0e9a942a8b3d546b0966540fb27920cf8d61141d50d99f7157ee35e8f90b42fb4765bc5c4bc3400a9c17b1c156 -DIST logrotate-3.8.6.tar.gz 58502 SHA256 0e0ef0609afe9ef2a2ef6cae307b5ca618ddd349923ccce6e064513afd4e9d92 SHA512 ecd70cc1043e38bfdbfa74f6932e688f16d5e99aa13edf804d8d556eccc6c8e00377f818cb566ff1124dcae5f88c1aa624a86fc3339ac4b29562ade6541c8750 WHIRLPOOL 261c46fa2821f136518efdf42a77d9e3a145e62d1dd325d4cc269aa72f344c1534710aeca52f4c1564bb812afe4201f12c068a020382dee6c1a06f6d19cf35b3 DIST logrotate-3.8.7.tar.gz 58898 SHA256 f6ba691f40e30e640efa2752c1f9499a3f9738257660994de70a45fe00d12b64 SHA512 6c0dc106e2a9e9d2cd7ac12af869bc152db7d046a1c6d1b75810fb2fc7a7f382b3c3f1dc54b9fb9a9eee248c1c66a9f5ce86804f15b49ac0210313c231b49e7f WHIRLPOOL 6ba7fd7eca8435575c96a5534fe9dbe098235ee2319f2ab8e279d94fa6de3ea0e53cd78eeabd643e4da049f585df9a901681b61d0d339131f45fe580aa0eb198 -EBUILD logrotate-3.8.4.ebuild 1796 SHA256 efe204cf89c9478bea61394e287a98cda458711eb49118c8b1225148c917c3ba SHA512 0422156db9f1d8c6b3524cc5f76d35d918c75ed81f3dedfe2ddeef84a9b153a160b5c402cd2c8be11313aca327c8b642678711ea0f9bb0096ee97286567ff6df WHIRLPOOL bcc2af97a46aef8ebdbccd9ca41935da129056bd3bf896a77cb7e2c25ac0613f944f808525c4f082a6e2e30f9038216a877877bc849fe806d7efac642526ef2f -EBUILD logrotate-3.8.6.ebuild 1795 SHA256 efd455ff0d99063145399d138a272bbda204411d4c83eeced746ac854204cd9b SHA512 ebb00c0ce1e77d10188e94a768808d63039bd49a759513bab16d32f816635893670652a59198a54516b87459563cf8e349e4cd7ef73ec670b9d396bc602facbd WHIRLPOOL 0a416ea153e2726f466f598b41bf6bd94f2a39d470e7d16779b9bb0f4f0ecad1003622c3009004dde0f3814eec5009fb506d2e9ff27d4e7f858bf389fd881b8a EBUILD logrotate-3.8.7.ebuild 1816 SHA256 f0860c3f2f2ee904df031b9fd0f050b2f821a2a687972f888593515172e2e2c5 SHA512 122b7e3d8ee114491fde5cae98a0eccbcb656ce76ebacc224f84b702c235be060c6517f9411e10f19adcca106076122223a4389168e259b67377754dfa1dc1a3 WHIRLPOOL 4ae88fd6ad574e542948ff1c57d617e6890762d57e38c7520d7576d83366e6dd30a1683f8e1c5591419d7b7cc14f195c9e24a8c80ccd69c69efe10df1a9fa1b7 -MISC ChangeLog 26099 SHA256 26c2bf3ff8610c8b74983a20eba947060893e4f1e96d54fdc09af1f7ff3b5cbb SHA512 7e35dc20c38b51dd974f26407da7a5edb5893dcc0b3c79ed7724b481cad8a386ec814e051f71fb7d27be445389e1916dbc36e5f23cef1c51755c7fc138726640 WHIRLPOOL ae6a671ece6ab2012931cd793a013094009255eaa84ffc4b911e7c76937475cb937a6962ab2d9dcadb54c11f02ba77a415d17c0aa3636d992d0982c3f2b57ef8 +MISC ChangeLog 26631 SHA256 7a669f3b2fc059238b8646e8511c08e55ad1f5aafc7a1e2e89ee7433bca66c0b SHA512 9fa554cb6558df90d376f8e33986754fed0fb024d4123c8157cdf9d2500fc2276f352c99e43002115036a4747dc2e9f1193ba3fcd71f57b1957f37d16760bbd3 WHIRLPOOL 60c6d0244397e9c4c10a7da8852d8b77fb67c38d55e1cc8cf96dd7eb89ba631913728b01292d52cb29587b932eaea1643a15a224ca89972885371a59f29d2996 MISC metadata.xml 975 SHA256 a329700a1e76593184907198fff2f678e429294226461ac1a913fe58cbb28c8d SHA512 c7736be8ad13e6e31c6561ff0fdbc2e3df7f59069eafdc5b655f780d96d277795201b9db747bc3da24c932aaaad16d40aebf18b8fc679f7ae8fa528088828d4f WHIRLPOOL 931ab959ebfb43aaac9c8926f26e17750c38f155ed15905117e2c8ca3374db427db763c6b724db9eb7f05fcf600dac54ed8008c222410073d82e17e38b0a45be -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) +Version: GnuPG v2 -iQEcBAEBCAAGBQJTum7WAAoJEA2sAkrWKOU24UMH/1WFxPH1hiEE1iYltu5UljXg -7dcl1FeVy7Jp8BxRwaZvXZdSTEn9vxkx8S4tIBYiOI0fKiHleCLlGx3nOrVvVIWH -qtSLmbcYj9xKlAt1i8c7unqZ8X8YXqB9rqdsFWBKPGsmu2/w7F0w+DWZQ/QDlCDx -nXKA/arLxZTUmWOy/YeNpZ6EhWYznzJib4A9QEK9iHPgymo5FkUl4hHAxAZQXgRi -XH2bxx517SE3jlJp0O4lLLLObdlcTbfuAB6RqQRLlYInuTAsw78MHq8MuodwY8oj -KVNhbGWycbeFJGdCIYLdTBfO4/9rYVDIEYp/s5VTSHOKBHQdXLD1Hg3/JrpRfog= -=NlTh +iQEcBAEBCAAGBQJTvPDrAAoJEA2sAkrWKOU2PR4H/iIw38gHo4pFYu904UMSa9FV +2Ey/udEKbiHjwc7NXdFL7+ivvOPGy54mApafVfc/JFJB6L8sPXiWIPbOnizmmOI9 +3QzKwBmr5mlfbYSzfVQ6s+o5ifTQZG5xaACWjga1FH/B9Dw/LUFs5Yro2Gcvad0d +CqzhAdXQzUpAkO6OTKS7LQxSgaIVeVheDgASz0bWZj59msQ8ruXK+x9qJHgKw8Ys +9l9C12Ulyjc3snqyZobr3vuTW3vlGvrTZvdmlW/po3NFVsNnrNiHakaoQmW36hjp +JUsy8n+FOFtKFH7nbep6rrcNUDyHF0jeK21Sr+F1vgqF+SDU8pI0Ij/ROAasRFs= +=RF+u -----END PGP SIGNATURE----- diff --git a/app-admin/logrotate/files/logrotate-3.8.4-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.4-atomic-create.patch deleted file mode 100644 index 28fd0375ac32..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.4-atomic-create.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff -Nur a/logrotate.c b/logrotate.c ---- a/logrotate.c 2013-05-10 21:06:07.459903230 +0200 -+++ b/logrotate.c 2013-05-10 21:15:15.849900150 +0200 -@@ -300,14 +300,20 @@ - int createOutputFile(char *fileName, int flags, struct stat *sb, acl_type acl, int force_mode) - { - int fd; -- struct stat sb_create; - -- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), -- (S_IRUSR | S_IWUSR) & sb->st_mode); -+ 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)); -+ 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)) { -@@ -352,6 +358,13 @@ - } - #endif - -+ 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.4-datehack.patch b/app-admin/logrotate/files/logrotate-3.8.4-datehack.patch deleted file mode 100644 index d320666d3631..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.4-datehack.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nur a/logrotate.c b/logrotate.c ---- a/logrotate.c 2013-04-30 10:29:31.000000000 +0200 -+++ b/logrotate.c 2013-05-10 20:58:58.229905641 +0200 -@@ -1851,7 +1851,7 @@ - } - - /* Hack to hide earlier bug */ -- if ((year != 1900) && (year < 1996 || year > 2100)) { -+ if ((year != 1900) && (year < 1970 || year > 2100)) { - message(MESS_ERROR, - "bad year %d for file %s in state file %s\n", year, - argv[0], stateFilename); diff --git a/app-admin/logrotate/files/logrotate-3.8.4-fbsd.patch b/app-admin/logrotate/files/logrotate-3.8.4-fbsd.patch deleted file mode 100644 index e0d06d8d53ee..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.4-fbsd.patch +++ /dev/null @@ -1,57 +0,0 @@ -diff -Nur a/Makefile b/Makefile ---- a/Makefile 2013-04-30 10:29:31.000000000 +0200 -+++ b/Makefile 2013-05-10 21:07:51.189902648 +0200 -@@ -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 -Nur a/config.c b/config.c ---- a/config.c 2013-05-10 21:03:29.309904119 +0200 -+++ b/config.c 2013-05-10 21:05:13.989903531 +0200 -@@ -1,6 +1,6 @@ - #include <sys/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 -Nur a/logrotate.c b/logrotate.c ---- a/logrotate.c 2013-05-10 20:58:58.229905641 +0200 -+++ b/logrotate.c 2013-05-10 21:06:07.459903230 +0200 -@@ -1,6 +1,6 @@ - #include <sys/queue.h> - /* alloca() is defined in stdlib.h in NetBSD */ --#ifndef __NetBSD__ -+#if !defined(__NetBSD__) && !defined(__FreeBSD__) - #include <alloca.h> - #endif - #include <limits.h> -@@ -41,6 +41,10 @@ - - static acl_type prev_acl = NULL; - -+#if !defined(PATH_MAX) && defined(__FreeBSD__) -+#include <sys/param.h> -+#endif -+ - #include "basenames.h" - #include "log.h" - #include "logrotate.h" diff --git a/app-admin/logrotate/files/logrotate-3.8.4-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.8.4-ignore-hidden.patch deleted file mode 100644 index a76937fd8bfb..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.4-ignore-hidden.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -Nur a/config.c b/config.c ---- a/config.c 2013-04-30 10:29:31.000000000 +0200 -+++ b/config.c 2013-05-10 21:03:29.309904119 +0200 -@@ -255,7 +255,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.4-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.8.4-noasprintf.patch deleted file mode 100644 index e4d9f87e501d..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.4-noasprintf.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff -Nur a/config.c b/config.c ---- a/config.c 2013-05-10 21:05:13.989903531 +0200 -+++ b/config.c 2013-05-10 21:12:05.859901217 +0200 -@@ -49,39 +49,6 @@ - #include "asprintf.c" - #endif - --#if !defined(asprintf) --#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 -Nur a/logrotate.h b/logrotate.h ---- a/logrotate.h 2013-04-30 10:29:31.000000000 +0200 -+++ b/logrotate.h 2013-05-10 21:12:25.139901109 +0200 -@@ -67,8 +67,5 @@ - extern int debug; - - int readAllConfigPaths(const char **paths); --#if !defined(asprintf) --int asprintf(char **string_ptr, const char *format, ...); --#endif - - #endif diff --git a/app-admin/logrotate/files/logrotate-3.8.6-atomic-create.patch b/app-admin/logrotate/files/logrotate-3.8.6-atomic-create.patch deleted file mode 100644 index b5a6aeae38e6..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.6-atomic-create.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff -Nuar a/logrotate.c b/logrotate.c ---- a/logrotate.c 2013-08-13 12:47:53.659942291 +0200 -+++ b/logrotate.c 2013-08-13 12:58:12.789938813 +0200 -@@ -304,15 +304,21 @@ - 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; -+ int acl_set = 0; -+ 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)); -+ 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); - -- fd = open(fileName, (flags | O_EXCL | O_NOFOLLOW), -- (S_IRUSR | S_IWUSR) & sb->st_mode); - - 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)) { -@@ -363,6 +369,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.6-datehack.patch b/app-admin/logrotate/files/logrotate-3.8.6-datehack.patch deleted file mode 100644 index 0184439bb375..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.6-datehack.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nuar a/logrotate.c b/logrotate.c ---- a/logrotate.c 2013-07-31 13:46:23.000000000 +0200 -+++ b/logrotate.c 2013-08-13 12:41:39.019944395 +0200 -@@ -2045,7 +2045,7 @@ - } - - /* Hack to hide earlier bug */ -- if ((year != 1900) && (year < 1996 || year > 2100)) { -+ if ((year != 1900) && (year < 1970 || year > 2100)) { - message(MESS_ERROR, - "bad year %d for file %s in state file %s\n", year, - argv[0], stateFilename); diff --git a/app-admin/logrotate/files/logrotate-3.8.6-fbsd.patch b/app-admin/logrotate/files/logrotate-3.8.6-fbsd.patch deleted file mode 100644 index a9ea216112dd..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.6-fbsd.patch +++ /dev/null @@ -1,57 +0,0 @@ -diff -Nuar a/Makefile b/Makefile ---- a/Makefile 2013-07-31 13:46:23.000000000 +0200 -+++ b/Makefile 2013-08-13 12:46:27.859942773 +0200 -@@ -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 -Nuar a/config.c b/config.c ---- a/config.c 2013-08-13 12:43:57.679943616 +0200 -+++ b/config.c 2013-08-13 12:47:11.169942530 +0200 -@@ -1,6 +1,6 @@ - #include <sys/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 2013-08-13 12:41:39.019944395 +0200 -+++ b/logrotate.c 2013-08-13 12:47:53.659942291 +0200 -@@ -1,6 +1,6 @@ - #include <sys/queue.h> - /* alloca() is defined in stdlib.h in NetBSD */ --#ifndef __NetBSD__ -+#if !defined(__NetBSD__) && !defined(__FreeBSD__) - #include <alloca.h> - #endif - #include <limits.h> -@@ -43,6 +43,10 @@ - - static acl_type prev_acl = NULL; - -+#if !defined(PATH_MAX) && defined(__FreeBSD__) -+#include <sys/param.h> -+#endif -+ - #include "basenames.h" - #include "log.h" - #include "logrotate.h" diff --git a/app-admin/logrotate/files/logrotate-3.8.6-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.8.6-ignore-hidden.patch deleted file mode 100644 index a3779aa8e5cc..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.6-ignore-hidden.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -Nuar a/config.c b/config.c ---- a/config.c 2013-07-31 13:46:23.000000000 +0200 -+++ b/config.c 2013-08-13 12:43:57.679943616 +0200 -@@ -255,7 +255,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.6-noasprintf.patch b/app-admin/logrotate/files/logrotate-3.8.6-noasprintf.patch deleted file mode 100644 index 889e98342da6..000000000000 --- a/app-admin/logrotate/files/logrotate-3.8.6-noasprintf.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff -Nuar a/config.c b/config.c ---- a/config.c 2013-08-13 12:47:11.169942530 +0200 -+++ b/config.c 2013-08-13 12:53:39.019940351 +0200 -@@ -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 2013-07-31 13:46:23.000000000 +0200 -+++ b/logrotate.h 2013-08-13 12:53:55.649940258 +0200 -@@ -67,8 +67,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.4.ebuild b/app-admin/logrotate/logrotate-3.8.4.ebuild deleted file mode 100644 index 51f361e9d829..000000000000 --- a/app-admin/logrotate/logrotate-3.8.4.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/logrotate-3.8.4.ebuild,v 1.12 2013/07/02 07:45:01 ago Exp $ - -EAPI=5 - -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 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~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() { - epatch \ - "${FILESDIR}"/${P}-datehack.patch \ - "${FILESDIR}"/${P}-ignore-hidden.patch \ - "${FILESDIR}"/${P}-fbsd.patch \ - "${FILESDIR}"/${P}-noasprintf.patch \ - "${FILESDIR}"/${P}-atomic-create.patch -} - -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_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 -} diff --git a/app-admin/logrotate/logrotate-3.8.6.ebuild b/app-admin/logrotate/logrotate-3.8.6.ebuild deleted file mode 100644 index f1273402b571..000000000000 --- a/app-admin/logrotate/logrotate-3.8.6.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/logrotate-3.8.6.ebuild,v 1.8 2013/12/22 13:24:59 ago Exp $ - -EAPI=5 - -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 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~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() { - epatch \ - "${FILESDIR}"/${P}-datehack.patch \ - "${FILESDIR}"/${P}-ignore-hidden.patch \ - "${FILESDIR}"/${P}-fbsd.patch \ - "${FILESDIR}"/${P}-noasprintf.patch \ - "${FILESDIR}"/${P}-atomic-create.patch -} - -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_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 -} |