Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-antivirus/clamav: clamav-0.97.7-r2.ebuild ChangeLog
Date: Mon, 01 Apr 2013 12:51:58
Message-Id: 20130401125153.F2D612171D@flycatcher.gentoo.org
1 eras 13/04/01 12:51:53
2
3 Modified: ChangeLog
4 Added: clamav-0.97.7-r2.ebuild
5 Log:
6 Hopefully fix log file permission - bug #463208
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)
9
10 Revision Changes Path
11 1.452 app-antivirus/clamav/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.452&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?rev=1.452&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/ChangeLog?r1=1.451&r2=1.452
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v
20 retrieving revision 1.451
21 retrieving revision 1.452
22 diff -u -r1.451 -r1.452
23 --- ChangeLog 27 Mar 2013 08:52:03 -0000 1.451
24 +++ ChangeLog 1 Apr 2013 12:51:53 -0000 1.452
25 @@ -1,6 +1,12 @@
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.451 2013/03/27 08:52:03 eras Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.452 2013/04/01 12:51:53 eras Exp $
30 +
31 +*clamav-0.97.7-r2 (01 Apr 2013)
32 +
33 + 01 Apr 2013; Eray Aslan <eras@g.o> +clamav-0.97.7-r2.ebuild,
34 + +files/clamd.initd-r5:
35 + Hopefully fix log file permission - bug #463208
36
37 27 Mar 2013; Eray Aslan <eras@g.o> files/clamd.initd-r4:
38 Populate variables at the top
39
40
41
42 1.1 app-antivirus/clamav/clamav-0.97.7-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/clamav-0.97.7-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-antivirus/clamav/clamav-0.97.7-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: clamav-0.97.7-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.97.7-r2.ebuild,v 1.1 2013/04/01 12:51:53 eras Exp $
52
53 EAPI=5
54
55 inherit eutils flag-o-matic user
56
57 DESCRIPTION="Clam Anti-Virus Scanner"
58 HOMEPAGE="http://www.clamav.net/"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
64 IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs uclibc"
65
66 CDEPEND="bzip2? ( app-arch/bzip2 )
67 clamdtop? ( sys-libs/ncurses )
68 iconv? ( virtual/libiconv )
69 milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
70 dev-libs/libtommath
71 >=sys-libs/zlib-1.2.2
72 sys-devel/libtool"
73 DEPEND="${CDEPEND}
74 virtual/pkgconfig"
75 RDEPEND="${CDEPEND}
76 selinux? ( sec-policy/selinux-clamav )"
77
78 RESTRICT="test"
79
80 DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
81
82 PATCHES=(
83 "${FILESDIR}"/${PN}-0.97-nls.patch
84 )
85
86 pkg_setup() {
87 enewgroup clamav
88 enewuser clamav -1 -1 /dev/null clamav
89 }
90
91 src_prepare() {
92 use ppc64 && append-flags -mminimal-toic
93 use uclibc && export ac_cv_type_error_t=yes
94 }
95
96 src_configure() {
97 econf \
98 --disable-experimental \
99 --enable-id-check \
100 --with-dbdir="${EPREFIX}"/var/lib/clamav \
101 --with-system-tommath \
102 --with-zlib="${EPREFIX}"/usr \
103 $(use_enable bzip2) \
104 $(use_enable clamdtop) \
105 $(use_enable ipv6) \
106 $(use_enable milter) \
107 $(use_enable static-libs static) \
108 $(use_with iconv)
109 }
110
111 src_install() {
112 default
113
114 rm -rf "${ED}"/var/lib/clamav
115 newinitd "${FILESDIR}"/clamd.initd-r5 clamd
116 newconfd "${FILESDIR}"/clamd.conf clamd
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
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
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
157 cat > "${ED}"/etc/conf.d/clamd <<-EOF
158 MILTER_NICELEVEL=19
159 START_MILTER=no
160 EOF
161 fi
162
163 prune_libtool_files --all
164 }
165
166 pkg_postinst() {
167 if use milter ; then
168 elog "For simple instructions how to setup the clamav-milter read the"
169 elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
170 fi
171 }