1 |
lordvan 07/10/10 08:47:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: clamav-0.92_rc2.ebuild |
5 |
Log: |
6 |
added 0.92 rc2 |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.255 app-antivirus/clamav/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.255&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.255&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/ChangeLog?r1=1.254&r2=1.255 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v |
19 |
retrieving revision 1.254 |
20 |
retrieving revision 1.255 |
21 |
diff -u -r1.254 -r1.255 |
22 |
--- ChangeLog 29 Aug 2007 10:27:33 -0000 1.254 |
23 |
+++ ChangeLog 10 Oct 2007 08:47:41 -0000 1.255 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-antivirus/clamav |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.254 2007/08/29 10:27:33 corsair Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.255 2007/10/10 08:47:41 lordvan Exp $ |
29 |
+ |
30 |
+*clamav-0.92_rc2 (10 Oct 2007) |
31 |
+ |
32 |
+ 10 Oct 2007; Thomas Raschbacher <lordvan@g.o> |
33 |
+ +clamav-0.92_rc2.ebuild: |
34 |
+ added 0.92rc2 |
35 |
|
36 |
29 Aug 2007; Markus Rothe <corsair@g.o> clamav-0.91.2.ebuild: |
37 |
Stable on ppc64; bug #189912 |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-antivirus/clamav/clamav-0.92_rc2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/clamav-0.92_rc2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-antivirus/clamav/clamav-0.92_rc2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: clamav-0.92_rc2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.92_rc2.ebuild,v 1.1 2007/10/10 08:47:41 lordvan Exp $ |
51 |
|
52 |
inherit autotools eutils flag-o-matic fixheadtails |
53 |
|
54 |
MY_P="${P/_/}" # for rc's |
55 |
DESCRIPTION="Clam Anti-Virus Scanner" |
56 |
HOMEPAGE="http://www.clamav.net/" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
62 |
IUSE="bzip2 crypt logrotate mailwrapper milter nls selinux" |
63 |
|
64 |
DEPEND="virtual/libc |
65 |
bzip2? ( app-arch/bzip2 ) |
66 |
crypt? ( >=dev-libs/gmp-4.1.2 ) |
67 |
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
68 |
nls? ( sys-devel/gettext ) |
69 |
dev-libs/gmp |
70 |
>=sys-libs/zlib-1.2.1-r3 |
71 |
>=sys-apps/sed-4" |
72 |
RDEPEND="${DEPEND} |
73 |
selinux? ( sec-policy/selinux-clamav ) |
74 |
logrotate? ( app-admin/logrotate ) |
75 |
sys-apps/grep" |
76 |
PROVIDE="virtual/antivirus" |
77 |
|
78 |
S=${WORKDIR}/${MY_P} |
79 |
pkg_setup() { |
80 |
if use milter; then |
81 |
if [ ! -e /usr/lib/libmilter.a ] ; then |
82 |
ewarn "In order to enable milter support, clamav needs sendmail with enabled milter" |
83 |
ewarn "USE flag. Either recompile sendmail with milter USE flag enabled, or disable" |
84 |
ewarn "this flag for clamav as well to disable milter support." |
85 |
die "need milter-enabled sendmail" |
86 |
fi |
87 |
fi |
88 |
enewgroup clamav |
89 |
enewuser clamav -1 -1 /dev/null clamav |
90 |
} |
91 |
|
92 |
src_unpack() { |
93 |
unpack "${A}" |
94 |
cd "${S}" |
95 |
echo $S |
96 |
epatch "${FILESDIR}"/${PN}-0.90-compat.patch |
97 |
epatch "${FILESDIR}"/${PN}-0.90-nls.patch |
98 |
eautoreconf |
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
has_version =sys-libs/glibc-2.2* && filter-lfs-flags |
103 |
|
104 |
local myconf |
105 |
|
106 |
# we depend on fixed zlib, so we can disable this check to prevent redundant |
107 |
# warning (bug #61749) |
108 |
myconf="${myconf} --disable-zlib-vcheck" |
109 |
# use id utility instead of /etc/passwd parsing (bug #72540) |
110 |
myconf="${myconf} --enable-id-check" |
111 |
use milter && { |
112 |
myconf="${myconf} --enable-milter" |
113 |
use mailwrapper && \ |
114 |
myconf="${myconf} --with-sendmail=/usr/sbin/sendmail.sendmail" |
115 |
} |
116 |
|
117 |
ht_fix_file configure |
118 |
econf ${myconf} \ |
119 |
$(use_enable bzip2) \ |
120 |
$(use_enable nls) \ |
121 |
--disable-experimental \ |
122 |
--with-dbdir=/var/lib/clamav || die |
123 |
emake || die |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
make DESTDIR=${D} install || die |
128 |
dodoc AUTHORS BUGS NEWS README ChangeLog FAQ |
129 |
newconfd ${FILESDIR}/clamd.conf clamd |
130 |
newinitd ${FILESDIR}/clamd.rc clamd |
131 |
dodoc ${FILESDIR}/clamav-milter.README.gentoo |
132 |
|
133 |
dodir /var/run/clamav |
134 |
keepdir /var/run/clamav |
135 |
fowners clamav:clamav /var/run/clamav |
136 |
dodir /var/log/clamav |
137 |
keepdir /var/log/clamav |
138 |
fowners clamav:clamav /var/log/clamav |
139 |
|
140 |
# Change /etc/clamd.conf to be usable out of the box |
141 |
sed -i -e "s:^\(Example\):\# \1:" \ |
142 |
-e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \ |
143 |
-e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \ |
144 |
-e "s:.*\(User\) .*:\1 clamav:" \ |
145 |
-e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \ |
146 |
-e "s:^\#\(LogTime\).*:\1 yes:" \ |
147 |
${D}/etc/clamd.conf |
148 |
|
149 |
# Do the same for /etc/freshclam.conf |
150 |
sed -i -e "s:^\(Example\):\# \1:" \ |
151 |
-e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \ |
152 |
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
153 |
-e "s:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \ |
154 |
-e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \ |
155 |
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
156 |
${D}/etc/freshclam.conf |
157 |
|
158 |
if use milter ; then |
159 |
echo "START_MILTER=no" \ |
160 |
>> ${D}/etc/conf.d/clamd |
161 |
echo "MILTER_SOCKET=\"/var/run/clamav/clmilter.sock\"" \ |
162 |
>>${D}/etc/conf.d/clamd |
163 |
echo "MILTER_OPTS=\"-m 10 --timeout=0\"" \ |
164 |
>>${D}/etc/conf.d/clamd |
165 |
fi |
166 |
|
167 |
if use logrotate ; then |
168 |
diropts "" |
169 |
dodir /etc/logrotate.d |
170 |
insopts -m0644 |
171 |
insinto /etc/logrotate.d |
172 |
newins ${FILESDIR}/${PN}.logrotate ${PN} |
173 |
fi |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
echo |
178 |
if use milter ; then |
179 |
elog "For simple instructions how to setup the clamav-milter" |
180 |
elog "read /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz" |
181 |
echo |
182 |
fi |
183 |
ewarn "Warning: clamd and/or freshclam have not been restarted." |
184 |
ewarn "You should restart them to start using new version: /etc/init.d/clamd restart" |
185 |
echo |
186 |
ewarn "The soname for libclamav has changed after clamav-0.90." |
187 |
ewarn "If you have upgraded from that or earlier version, it is recommended to run:" |
188 |
ewarn |
189 |
ewarn "revdep-rebuild --library libclamav.so.1" |
190 |
ewarn |
191 |
ewarn "This will fix linking errors caused by this change." |
192 |
echo |
193 |
} |
194 |
|
195 |
|
196 |
|
197 |
-- |
198 |
gentoo-commits@g.o mailing list |