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.94.2.ebuild clamav-0.94.ebuild clamav-0.93.3.ebuild
Date: Fri, 28 Nov 2008 22:26:33
Message-Id: E1L6BnC-0000m3-RZ@stork.gentoo.org
1 dertobi123 08/11/28 22:26:30
2
3 Modified: ChangeLog
4 Added: clamav-0.94.2.ebuild
5 Removed: clamav-0.94.ebuild clamav-0.93.3.ebuild
6 Log:
7 Cleanup; Version bump, fixes bug #248798
8 (Portage version: 2.2_rc16/cvs/Linux 2.6.25-gentoo-r7 x86_64)
9
10 Revision Changes Path
11 1.316 app-antivirus/clamav/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.316&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.316&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?r1=1.315&r2=1.316
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v
20 retrieving revision 1.315
21 retrieving revision 1.316
22 diff -u -r1.315 -r1.316
23 --- ChangeLog 15 Nov 2008 17:54:00 -0000 1.315
24 +++ ChangeLog 28 Nov 2008 22:26:30 -0000 1.316
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-antivirus/clamav
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.315 2008/11/15 17:54:00 dertobi123 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.316 2008/11/28 22:26:30 dertobi123 Exp $
30 +
31 +*clamav-0.94.2 (28 Nov 2008)
32 +
33 + 28 Nov 2008; Tobias Scherbaum <dertobi123@g.o>
34 + -files/clamav-0.93-buildfix.patch, -files/clamav-0.93-nls.patch,
35 + -files/clamav-0.94-buildfix.patch, -clamav-0.93.3.ebuild,
36 + -clamav-0.94.ebuild, +clamav-0.94.2.ebuild:
37 + Cleanup; Version bump, fixes bug #248798
38
39 15 Nov 2008; Tobias Scherbaum <dertobi123@g.o>
40 clamav-0.94.1.ebuild:
41
42
43
44 1.1 app-antivirus/clamav/clamav-0.94.2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/clamav-0.94.2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/clamav-0.94.2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: clamav-0.94.2.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-antivirus/clamav/clamav-0.94.2.ebuild,v 1.1 2008/11/28 22:26:30 dertobi123 Exp $
54
55 inherit autotools 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 crypt iconv mailwrapper milter nls selinux ipv6"
70
71 COMMON_DEPEND="bzip2? ( app-arch/bzip2 )
72 crypt? ( >=dev-libs/gmp-4.1.2 )
73 milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
74 iconv? ( virtual/libiconv )
75 nls? ( sys-devel/gettext )
76 dev-libs/gmp
77 >=sys-libs/zlib-1.2.1-r3
78 >=sys-apps/sed-4"
79
80 DEPEND="${COMMON_DEPEND}
81 >=dev-util/pkgconfig-0.20"
82
83 RDEPEND="${COMMON_DEPEND}
84 selinux? ( sec-policy/selinux-clamav )
85 sys-apps/grep"
86
87 PROVIDE="virtual/antivirus"
88
89 RESTRICT="test"
90
91 pkg_setup() {
92 if use milter; then
93 if [ ! -e /usr/$(get_libdir)/libmilter.a ] ; then
94 ewarn "In order to enable milter support, clamav needs sendmail with enabled milter"
95 ewarn "USE flag, or mail-filter/libmilter package."
96 fi
97 fi
98
99 enewgroup clamav
100 enewuser clamav -1 -1 /dev/null clamav
101 }
102
103 src_unpack() {
104 unpack ${A}
105 cd "${S}"
106 # This newer version of ClamAV packages libtool.m4 and lt*.m4 in m4,
107 # while previous versions did not.
108 # Since autoreconf invokes libtoolize, a different version of ltmain.sh that doesn't
109 # match up with the version of the *.m4 files gets thrown into this directory.
110 # This problem showed up for me in the packages libtool's use of $ECHO while my
111 # system's libtool's instead used $echo internally, and the .m4 file provides the value of
112 # $echo or $ECHO.
113 einfo "removing possibly incompatible libtool-related m4 files"
114 rm m4/libtool.m4 m4/lt*.m4 || die "unable to remove possibly incompatible libtool-related m4 files"
115 epatch "${FILESDIR}"/${PN}-0.94.1-buildfix.patch
116 epatch "${FILESDIR}"/${PN}-0.94-nls.patch
117
118 # If nls flag is disabled, gettext may not be available, but eautoreconf
119 # needs this file (bug #218892).
120 use nls || cp "${FILESDIR}"/lib-ld.m4 m4/
121
122 AT_M4DIR="m4" eautoreconf
123 }
124
125 src_compile() {
126 has_version =sys-libs/glibc-2.2* && filter-lfs-flags
127
128 local myconf
129
130 # we depend on fixed zlib, so we can disable this check to prevent redundant
131 # warning (bug #61749)
132 myconf="${myconf} --disable-zlib-vcheck"
133 # use id utility instead of /etc/passwd parsing (bug #72540)
134 myconf="${myconf} --enable-id-check"
135 use milter && {
136 myconf="${myconf} --enable-milter"
137 use mailwrapper && \
138 myconf="${myconf} --with-sendmail=/usr/sbin/sendmail.sendmail"
139 }
140
141 ht_fix_file configure
142 econf ${myconf} \
143 $(use_enable bzip2) \
144 $(use_enable nls) \
145 $(use_enable ipv6) \
146 $(use_with iconv) \
147 --disable-experimental \
148 --with-dbdir=/var/lib/clamav || die
149 emake || die
150 }
151
152 src_install() {
153 make DESTDIR="${D}" install || die
154 dodoc AUTHORS BUGS NEWS README ChangeLog FAQ
155 newconfd "${FILESDIR}"/clamd.conf clamd
156 newinitd "${FILESDIR}"/clamd.rc clamd
157 dodoc "${FILESDIR}"/clamav-milter.README.gentoo
158
159 dodir /var/run/clamav
160 keepdir /var/run/clamav
161 fowners clamav:clamav /var/run/clamav
162 dodir /var/log/clamav
163 keepdir /var/log/clamav
164 fowners clamav:clamav /var/log/clamav
165
166 # Change /etc/clamd.conf to be usable out of the box
167 sed -i -e "s:^\(Example\):\# \1:" \
168 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \
169 -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \
170 -e "s:.*\(User\) .*:\1 clamav:" \
171 -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \
172 -e "s:^\#\(LogTime\).*:\1 yes:" \
173 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
174 "${D}"/etc/clamd.conf
175
176 # Do the same for /etc/freshclam.conf
177 sed -i -e "s:^\(Example\):\# \1:" \
178 -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \
179 -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
180 -e "s:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \
181 -e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \
182 -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
183 -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
184 "${D}"/etc/freshclam.conf
185
186 if use milter ; then
187 echo "
188 START_MILTER=no
189 MILTER_NICELEVEL=19" \
190 >> "${D}"/etc/conf.d/clamd
191 echo "MILTER_SOCKET=\"/var/run/clamav/clmilter.sock\"" \
192 >>"${D}"/etc/conf.d/clamd
193 echo "MILTER_OPTS=\"-m 10 --timeout=0\"" \
194 >>"${D}"/etc/conf.d/clamd
195 fi
196
197 diropts ""
198 dodir /etc/logrotate.d
199 insopts -m0644
200 insinto /etc/logrotate.d
201 newins "${FILESDIR}"/${PN}.logrotate ${PN}
202 }
203
204 pkg_postinst() {
205 echo
206 if use milter ; then
207 elog "For simple instructions how to setup the clamav-milter"
208 elog "read /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
209 echo
210 fi
211 ewarn "The soname for libclamav has changed in clamav-0.94."
212 ewarn "If you have upgraded from that or earlier version, it is"
213 ewarn "recommended to run revdep-rebuild, in order to fix anything"
214 ewarn "that links against libclamav.so library."
215 echo
216 }