Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum (dertobi123)" <dertobi123@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-antivirus/clamav: ChangeLog clamav-0.95.2.ebuild
Date: Sun, 21 Jun 2009 09:46:14
Message-Id: E1MIJcq-0005JG-3f@stork.gentoo.org
1 dertobi123 09/06/21 09:46:12
2
3 Modified: ChangeLog
4 Added: clamav-0.95.2.ebuild
5 Log:
6 Version bump, incorporating patches from #273668 by Bernd Lommerzheim, security bug #274510 and fixing milter support (#272039).
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.334 app-antivirus/clamav/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.334&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.334&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?r1=1.333&r2=1.334
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v
19 retrieving revision 1.333
20 retrieving revision 1.334
21 diff -u -r1.333 -r1.334
22 --- ChangeLog 23 May 2009 10:25:21 -0000 1.333
23 +++ ChangeLog 21 Jun 2009 09:46:11 -0000 1.334
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-antivirus/clamav
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.333 2009/05/23 10:25:21 maekke Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.334 2009/06/21 09:46:11 dertobi123 Exp $
29 +
30 +*clamav-0.95.2 (21 Jun 2009)
31 +
32 + 21 Jun 2009; Tobias Scherbaum <dertobi123@g.o> files/clamd.rc,
33 + +clamav-0.95.2.ebuild:
34 + Version bump, incorporating patches from #273668 by Bernd Lommerzheim,
35 + security bug #274510 and fixing milter support (#272039).
36
37 23 May 2009; Markus Meier <maekke@g.o> clamav-0.95.1.ebuild:
38 amd64 stable, bug #265545
39
40
41
42 1.1 app-antivirus/clamav/clamav-0.95.2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/clamav-0.95.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/clamav-0.95.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: clamav-0.95.2.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.95.2.ebuild,v 1.1 2009/06/21 09:46:12 dertobi123 Exp $
52
53 EAPI=2
54
55 inherit eutils flag-o-matic fixheadtails multilib versionator
56
57 # for when rc1 is appended to release candidates:
58 MY_PV=$(replace_version_separator 3 '');
59 MY_P="${PN}-${MY_PV}"
60 S="${WORKDIR}/${MY_P}"
61
62 DESCRIPTION="Clam Anti-Virus Scanner"
63 HOMEPAGE="http://www.clamav.net/"
64 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
69 IUSE="bzip2 clamdtop iconv milter selinux ipv6"
70
71 COMMON_DEPEND="bzip2? ( app-arch/bzip2 )
72 milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
73 iconv? ( virtual/libiconv )
74 clamdtop? ( sys-libs/ncurses )
75 >=sys-libs/zlib-1.2.1-r3
76 >=sys-apps/sed-4"
77
78 DEPEND="${COMMON_DEPEND}
79 >=dev-util/pkgconfig-0.20"
80
81 RDEPEND="${COMMON_DEPEND}
82 selinux? ( sec-policy/selinux-clamav )
83 sys-apps/grep"
84
85 PROVIDE="virtual/antivirus"
86
87 RESTRICT="test"
88
89 pkg_setup() {
90 enewgroup clamav
91 enewuser clamav -1 -1 /dev/null clamav
92 }
93
94 src_prepare() {
95 epatch "${FILESDIR}/${PN}-0.95.1-nls.patch"
96 }
97
98 src_configure() {
99 has_version =sys-libs/glibc-2.2* && filter-lfs-flags
100
101 ht_fix_file configure
102 econf \
103 $(use_enable bzip2) \
104 $(use_enable ipv6) \
105 $(use_enable clamdtop) \
106 $(use_enable milter) \
107 $(use_with iconv) \
108 --disable-experimental \
109 --enable-id-check \
110 --disable-zlib-vcheck \
111 --with-dbdir=/var/lib/clamav || die
112 }
113
114 src_install() {
115 emake DESTDIR="${D}" install || die
116 dodoc AUTHORS BUGS NEWS README ChangeLog FAQ
117 newconfd "${FILESDIR}/clamd.conf" clamd
118 newinitd "${FILESDIR}/clamd.rc" clamd
119
120 dodir /var/run/clamav
121 keepdir /var/run/clamav
122 fowners clamav:clamav /var/run/clamav
123 dodir /var/log/clamav
124 keepdir /var/log/clamav
125 fowners clamav:clamav /var/log/clamav
126
127 # Modify /etc/clamd.conf to be usable out of the box
128 sed -i -e "s:^\(Example\):\# \1:" \
129 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \
130 -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \
131 -e "s:.*\(User\) .*:\1 clamav:" \
132 -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \
133 -e "s:^\#\(LogTime\).*:\1 yes:" \
134 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
135 "${D}"/etc/clamd.conf
136
137 # Do the same for /etc/freshclam.conf
138 sed -i -e "s:^\(Example\):\# \1:" \
139 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \
140 -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
141 -e "s:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \
142 -e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \
143 -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
144 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
145 "${D}"/etc/freshclam.conf
146
147 if use milter; then
148 # And again same for /etc/clamav-milter.conf
149 # MilterSocket one to include ' /' because there is a 2nd line for
150 # inet: which we want to leave
151 dodoc "${FILESDIR}/clamav-milter.README.gentoo"
152
153 sed -i -e "s:^\(Example\):\# \1:" \
154 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamav-milter.pid:" \
155 -e "s+^\#\(ClamdSocket\) .*+\1 unix:/var/run/clamav/clamd.sock+" \
156 -e "s:.*\(User\) .*:\1 clamav:" \
157 -e "s+^\#\(MilterSocket\) /.*+\1 unix:/var/run/clamav/clamav-milter.sock+" \
158 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
159 -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamav-milter.log:" \
160 "${D}"/etc/clamav-milter.conf
161 fi
162
163 if use milter ; then
164 cat << EOF >> "${D}"/etc/conf.d/clamd
165 MILTER_NICELEVEL=19
166 START_MILTER=no
167 EOF
168 fi
169
170 diropts ""
171 dodir /etc/logrotate.d
172 insopts -m0644
173 insinto /etc/logrotate.d
174 newins "${FILESDIR}"/${PN}.logrotate ${PN}
175 }
176
177 pkg_postinst() {
178 if use milter ; then
179 elog "For simple instructions how to setup the clamav-milter"
180 elog "read the clamav-milter.README.gentoo in /usr/share/doc/${PF}"
181 elog
182 fi
183 ewarn "The soname for libclamav has changed in clamav-0.95."
184 ewarn "If you have upgraded from that or earlier version, it is"
185 ewarn "recommended to run revdep-rebuild, in order to fix anything"
186 ewarn "that links against libclamav.so library."
187 }