Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-antivirus/clamav: ChangeLog clamav-0.97.ebuild
Date: Tue, 22 Feb 2011 10:23:28
Message-Id: 20110222102314.A56AB20054@flycatcher.gentoo.org
1 radhermit 11/02/22 10:23:14
2
3 Modified: ChangeLog
4 Added: clamav-0.97.ebuild
5 Log:
6 Version bump (bug #354019) with ebuild updates thanks to Bernd Lommerzheim. Update to EAPI 4, don't install signature files (fixes bugs #336842 and #345965), remove dependencies in the system set, update zlib dependency, other minor cleanups and style changes.
7
8 (Portage version: 2.2.0_alpha24/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.376 app-antivirus/clamav/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.376&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.376&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?r1=1.375&r2=1.376
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v
20 retrieving revision 1.375
21 retrieving revision 1.376
22 diff -u -r1.375 -r1.376
23 --- ChangeLog 7 Jan 2011 16:31:57 -0000 1.375
24 +++ ChangeLog 22 Feb 2011 10:23:14 -0000 1.376
25 @@ -1,6 +1,15 @@
26 # ChangeLog for app-antivirus/clamav
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.375 2011/01/07 16:31:57 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.376 2011/02/22 10:23:14 radhermit Exp $
30 +
31 +*clamav-0.97 (22 Feb 2011)
32 +
33 + 22 Feb 2011; Tim Harder <radhermit@g.o> +clamav-0.97.ebuild,
34 + +files/clamav-0.97-nls.patch:
35 + Version bump (bug #354019) with ebuild updates thanks to Bernd Lommerzheim.
36 + Update to EAPI 4, don't install signature files (fixes bugs #336842 and
37 + #345965), remove dependencies in the system set, update zlib dependency,
38 + other minor cleanups and style changes.
39
40 07 Jan 2011; Kacper Kowalik <xarthisius@g.o> clamav-0.96.5.ebuild:
41 stable ppc64 wrt #347627
42
43
44
45 1.1 app-antivirus/clamav/clamav-0.97.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/clamav-0.97.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/clamav-0.97.ebuild?rev=1.1&content-type=text/plain
49
50 Index: clamav-0.97.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.ebuild,v 1.1 2011/02/22 10:23:14 radhermit Exp $
55
56 EAPI=4
57
58 inherit eutils flag-o-matic
59
60 DESCRIPTION="Clam Anti-Virus Scanner"
61 HOMEPAGE="http://www.clamav.net/"
62 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
67 IUSE="bzip2 clamdtop iconv ipv6 milter selinux"
68
69 CDEPEND="bzip2? ( app-arch/bzip2 )
70 clamdtop? ( sys-libs/ncurses )
71 iconv? ( virtual/libiconv )
72 milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
73 >=sys-libs/zlib-1.2.2"
74 DEPEND="${CDEPEND}
75 >=dev-util/pkgconfig-0.20"
76 RDEPEND="${CDEPEND}
77 selinux? ( sec-policy/selinux-clamav )"
78
79 PROVIDE="virtual/antivirus"
80 RESTRICT="test"
81
82 pkg_setup() {
83 enewgroup clamav
84 enewuser clamav -1 -1 /dev/null clamav
85 }
86
87 src_prepare() {
88 epatch "${FILESDIR}"/${PN}-0.97-nls.patch
89 }
90
91 src_configure() {
92 has_version =sys-libs/glibc-2.2* && filter-lfs-flags
93
94 econf \
95 --disable-experimental \
96 --enable-id-check \
97 --with-dbdir=/var/lib/clamav \
98 $(use_enable bzip2) \
99 $(use_enable clamdtop) \
100 $(use_enable ipv6) \
101 $(use_enable milter) \
102 $(use_with iconv)
103 }
104
105 src_install() {
106 emake DESTDIR="${ED}" install
107 rm -rf "${ED}"/var/lib/clamav
108 dodoc AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE
109 newinitd "${FILESDIR}"/clamd.rc clamd
110 newconfd "${FILESDIR}"/clamd.conf clamd
111
112 keepdir /var/lib/clamav
113 fowners clamav:clamav /var/lib/clamav
114 keepdir /var/run/clamav
115 fowners clamav:clamav /var/run/clamav
116 keepdir /var/log/clamav
117 fowners clamav:clamav /var/log/clamav
118
119 dodir /etc/logrotate.d
120 insinto /etc/logrotate.d
121 newins "${FILESDIR}"/clamav.logrotate clamav
122
123 # Modify /etc/{clamd,freshclam}.conf to be usable out of the box
124 sed -i -e "s:^\(Example\):\# \1:" \
125 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \
126 -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \
127 -e "s:.*\(User\) .*:\1 clamav:" \
128 -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \
129 -e "s:^\#\(LogTime\).*:\1 yes:" \
130 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
131 "${ED}"/etc/clamd.conf
132 sed -i -e "s:^\(Example\):\# \1:" \
133 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \
134 -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
135 -e "s:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \
136 -e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \
137 -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
138 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
139 "${ED}"/etc/freshclam.conf
140
141 if use milter ; then
142 # MilterSocket one to include ' /' because there is a 2nd line for
143 # inet: which we want to leave
144 dodoc "${FILESDIR}"/clamav-milter.README.gentoo
145 sed -i -e "s:^\(Example\):\# \1:" \
146 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamav-milter.pid:" \
147 -e "s+^\#\(ClamdSocket\) .*+\1 unix:/var/run/clamav/clamd.sock+" \
148 -e "s:.*\(User\) .*:\1 clamav:" \
149 -e "s+^\#\(MilterSocket\) /.*+\1 unix:/var/run/clamav/clamav-milter.sock+" \
150 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
151 -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamav-milter.log:" \
152 "${ED}"/etc/clamav-milter.conf
153 cat << EOF >> "${ED}"/etc/conf.d/clamd
154 MILTER_NICELEVEL=19
155 START_MILTER=no
156 EOF
157 fi
158 }
159
160 pkg_postinst() {
161 ewarn
162 ewarn "Since clamav-0.97, signatures are not installed anymore. If you are"
163 ewarn "installing for the first time or upgrading from a version older"
164 ewarn "than clamav-0.97 you must download the newest signatures by"
165 ewarn "executing: /usr/bin/freshclam"
166 ewarn
167
168 if use milter ; then
169 elog "For simple instructions how to setup the clamav-milter read the"
170 elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
171 fi
172 }