Gentoo Archives: gentoo-commits

From: "Daniel Gryniewicz (dang)" <dang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/logrotate: logrotate-3.7.7.ebuild ChangeLog
Date: Wed, 24 Dec 2008 20:49:14
Message-Id: E1LFafI-0003iz-6h@stork.gentoo.org
1 dang 08/12/24 20:49:12
2
3 Modified: ChangeLog
4 Added: logrotate-3.7.7.ebuild
5 Log:
6 Bump to 3.7.7; now considering fedora as upstream
7 (Portage version: 2.2_rc17/cvs/Linux 2.6.27-gentoo-r6 x86_64)
8
9 Revision Changes Path
10 1.73 app-admin/logrotate/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/logrotate/ChangeLog?rev=1.73&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/logrotate/ChangeLog?rev=1.73&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/logrotate/ChangeLog?r1=1.72&r2=1.73
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v
19 retrieving revision 1.72
20 retrieving revision 1.73
21 diff -u -r1.72 -r1.73
22 --- ChangeLog 15 Dec 2008 17:30:51 -0000 1.72
23 +++ ChangeLog 24 Dec 2008 20:49:12 -0000 1.73
24 @@ -1,6 +1,15 @@
25 # ChangeLog for app-admin/logrotate
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.72 2008/12/15 17:30:51 dang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/ChangeLog,v 1.73 2008/12/24 20:49:12 dang Exp $
29 +
30 +*logrotate-3.7.7 (24 Dec 2008)
31 +
32 + 24 Dec 2008; Daniel Gryniewicz <dang@g.o>
33 + +files/logrotate-3.7.7-datehack.patch,
34 + +files/logrotate-3.7.7-ignore-hidden.patch,
35 + +files/logrotate-3.7.7-weekly.patch, files/logrotate.conf,
36 + +logrotate-3.7.7.ebuild:
37 + Bump to 3.7.7; now considering fedora as upstream
38
39 15 Dec 2008; Daniel Gryniewicz <dang@g.o> logrotate-3.7.2.ebuild:
40 Strip cflags; bug #250960
41
42
43
44 1.1 app-admin/logrotate/logrotate-3.7.7.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/logrotate/logrotate-3.7.7.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/logrotate/logrotate-3.7.7.ebuild?rev=1.1&content-type=text/plain
48
49 Index: logrotate-3.7.7.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/logrotate-3.7.7.ebuild,v 1.1 2008/12/24 20:49:12 dang Exp $
54
55 inherit eutils toolchain-funcs flag-o-matic
56
57 DESCRIPTION="Rotates, compresses, and mails system logs"
58 HOMEPAGE="http://www.gentoo.org"
59 SRC_URI="https://fedorahosted.org/releases/l/o/logrotate/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
64 IUSE="selinux"
65
66 RDEPEND="
67 >=dev-libs/popt-1.5
68 selinux? ( sys-libs/libselinux )"
69
70 DEPEND="${RDEPEND}
71 >=sys-apps/sed-4
72 selinux? ( sec-policy/selinux-logrotate )"
73
74 src_unpack() {
75 unpack ${P}.tar.gz
76
77 cd ${S}
78
79 strip-flags
80
81 sed -i \
82 -e "s:CFLAGS += -g:CFLAGS += -g ${CFLAGS}:" \
83 -e "/CVSROOT =/d" \
84 Makefile || die "sed failed"
85
86 epatch ${FILESDIR}/${P}-datehack.patch
87 epatch ${FILESDIR}/${P}-ignore-hidden.patch
88 epatch ${FILESDIR}/${P}-weekly.patch
89 }
90
91 src_compile() {
92 local myconf
93 myconf="CC=$(tc-getCC)"
94 useq selinux && myconf="${myconf} WITH_SELINUX=yes"
95 emake ${myconf} || die "emake failed"
96 }
97
98 src_install() {
99 insinto /usr
100 dosbin logrotate
101 doman logrotate.8
102 dodoc examples/logrotate*
103
104 exeinto /etc/cron.daily
105 doexe ${FILESDIR}/logrotate.cron
106
107 insinto /etc
108 doins ${FILESDIR}/logrotate.conf
109
110 keepdir /etc/logrotate.d
111 }
112
113 pkg_postinst() {
114 elog "If you wish to have logrotate e-mail you updates, please"
115 elog "emerge virtual/mailx and configure logrotate in"
116 elog "/etc/logrotate.conf appropriately"
117 elog
118 elog "Additionally, /etc/logrotate.conf may need to be modified"
119 elog "for your particular needs. See man logrotate for details."
120 }