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