1 |
eras 13/09/27 16:04:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: clamav-0.98.ebuild |
5 |
Log: |
6 |
Version bump - bug #485728. Use ionice in init script - bug #469484. Add database update notice for first time clamav usage - bug #483284. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.461 app-antivirus/clamav/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.461&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.461&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?r1=1.460&r2=1.461 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v |
20 |
retrieving revision 1.460 |
21 |
retrieving revision 1.461 |
22 |
diff -u -r1.460 -r1.461 |
23 |
--- ChangeLog 8 Sep 2013 10:50:14 -0000 1.460 |
24 |
+++ ChangeLog 27 Sep 2013 16:04:14 -0000 1.461 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-antivirus/clamav |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.460 2013/09/08 10:50:14 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.461 2013/09/27 16:04:14 eras Exp $ |
30 |
+ |
31 |
+*clamav-0.98 (27 Sep 2013) |
32 |
+ |
33 |
+ 27 Sep 2013; Eray Aslan <eras@g.o> +clamav-0.98.ebuild, |
34 |
+ +files/clamd.conf-r1, +files/clamd.initd-r6: |
35 |
+ Version bump - bug #485728. Use ionice in init script - bug #469484. Add |
36 |
+ database update notice for first time clamav usage - bug #483284. |
37 |
|
38 |
*clamav-0.97.8-r2 (08 Sep 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-antivirus/clamav/clamav-0.98.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/clamav-0.98.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/clamav-0.98.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: clamav-0.98.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 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.98.ebuild,v 1.1 2013/09/27 16:04:14 eras Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
inherit eutils flag-o-matic user systemd |
57 |
|
58 |
DESCRIPTION="Clam Anti-Virus Scanner" |
59 |
HOMEPAGE="http://www.clamav.net/" |
60 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" |
65 |
IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs uclibc" |
66 |
|
67 |
CDEPEND="bzip2? ( app-arch/bzip2 ) |
68 |
clamdtop? ( sys-libs/ncurses ) |
69 |
iconv? ( virtual/libiconv ) |
70 |
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) |
71 |
dev-libs/libtommath |
72 |
>=sys-libs/zlib-1.2.2 |
73 |
sys-devel/libtool" |
74 |
DEPEND="${CDEPEND} |
75 |
virtual/pkgconfig" |
76 |
RDEPEND="${CDEPEND} |
77 |
selinux? ( sec-policy/selinux-clamav )" |
78 |
|
79 |
DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE ) |
80 |
|
81 |
pkg_setup() { |
82 |
enewgroup clamav |
83 |
enewuser clamav -1 -1 /dev/null clamav |
84 |
} |
85 |
|
86 |
src_prepare() { |
87 |
use ppc64 && append-flags -mminimal-toic |
88 |
use uclibc && export ac_cv_type_error_t=yes |
89 |
} |
90 |
|
91 |
src_configure() { |
92 |
econf \ |
93 |
--disable-experimental \ |
94 |
--enable-id-check \ |
95 |
--with-dbdir="${EPREFIX}"/var/lib/clamav \ |
96 |
--with-system-tommath \ |
97 |
--with-zlib="${EPREFIX}"/usr \ |
98 |
$(use_enable bzip2) \ |
99 |
$(use_enable clamdtop) \ |
100 |
$(use_enable ipv6) \ |
101 |
$(use_enable milter) \ |
102 |
$(use_enable static-libs static) \ |
103 |
$(use_with iconv) |
104 |
} |
105 |
|
106 |
src_install() { |
107 |
default |
108 |
|
109 |
rm -rf "${ED}"/var/lib/clamav |
110 |
newinitd "${FILESDIR}"/clamd.initd-r6 clamd |
111 |
newconfd "${FILESDIR}"/clamd.conf-r1 clamd |
112 |
|
113 |
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf" |
114 |
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" |
115 |
systemd_dounit "${FILESDIR}/clamd.service" |
116 |
systemd_dounit "${FILESDIR}/freshclamd.service" |
117 |
|
118 |
keepdir /var/lib/clamav |
119 |
fowners clamav:clamav /var/lib/clamav |
120 |
keepdir /var/log/clamav |
121 |
fowners clamav:clamav /var/log/clamav |
122 |
|
123 |
dodir /etc/logrotate.d |
124 |
insinto /etc/logrotate.d |
125 |
newins "${FILESDIR}"/clamav.logrotate clamav |
126 |
|
127 |
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box |
128 |
sed -i -e "s:^\(Example\):\# \1:" \ |
129 |
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \ |
130 |
-e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \ |
131 |
-e "s:.*\(User\) .*:\1 clamav:" \ |
132 |
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \ |
133 |
-e "s:^\#\(LogTime\).*:\1 yes:" \ |
134 |
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
135 |
"${ED}"/etc/clamd.conf.sample || die |
136 |
sed -i -e "s:^\(Example\):\# \1:" \ |
137 |
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \ |
138 |
-e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ |
139 |
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \ |
140 |
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \ |
141 |
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ |
142 |
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
143 |
"${ED}"/etc/freshclam.conf.sample || die |
144 |
|
145 |
if use milter ; then |
146 |
# MilterSocket one to include ' /' because there is a 2nd line for |
147 |
# inet: which we want to leave |
148 |
dodoc "${FILESDIR}"/clamav-milter.README.gentoo |
149 |
sed -i -e "s:^\(Example\):\# \1:" \ |
150 |
-e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \ |
151 |
-e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \ |
152 |
-e "s:.*\(User\) .*:\1 clamav:" \ |
153 |
-e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \ |
154 |
-e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ |
155 |
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \ |
156 |
"${ED}"/etc/clamav-milter.conf.sample || die |
157 |
cat >> "${ED}"/etc/conf.d/clamd <<-EOF |
158 |
MILTER_NICELEVEL=19 |
159 |
START_MILTER=no |
160 |
EOF |
161 |
|
162 |
systemd_dounit "${FILESDIR}/clamav-milter.service" |
163 |
fi |
164 |
|
165 |
for i in clamd freshclam clamav-milter |
166 |
do |
167 |
[[ -f "${D}"/etc/clamd.conf.sample ]] && mv "${D}"/etc/clamd.conf{.sample,} |
168 |
done |
169 |
|
170 |
prune_libtool_files --all |
171 |
} |
172 |
|
173 |
pkg_postinst() { |
174 |
if use milter ; then |
175 |
elog "For simple instructions how to setup the clamav-milter read the" |
176 |
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" |
177 |
fi |
178 |
if test -z $(find "${ROOT}"var/lib/clamav -maxdepth 1 -name 'main.c*' -print -quit) ; then |
179 |
ewarn "You must run freshclam manually to populate the virus database files" |
180 |
ewarn "before starting clamav for the first time.\n" |
181 |
fi |
182 |
} |