summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-antivirus')
-rw-r--r--app-antivirus/clamav/ChangeLog8
-rw-r--r--app-antivirus/clamav/clamav-0.97.8-r2.ebuild (renamed from app-antivirus/clamav/clamav-0.97.8-r1.ebuild)3
-rw-r--r--app-antivirus/clamav/files/freshclamd.service10
3 files changed, 19 insertions, 2 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog
index 82ffd0a7b96e..ee2d441194e1 100644
--- a/app-antivirus/clamav/ChangeLog
+++ b/app-antivirus/clamav/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-antivirus/clamav
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.459 2013/07/06 09:15:52 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.460 2013/09/08 10:50:14 pacho Exp $
+
+*clamav-0.97.8-r2 (08 Sep 2013)
+
+ 08 Sep 2013; Pacho Ramos <pacho@gentoo.org> +clamav-0.97.8-r2.ebuild,
+ +files/freshclamd.service, -clamav-0.97.8-r1.ebuild:
+ Install a service for freshclamd (#477540 by Harris Landgarten)
*clamav-0.97.8-r1 (06 Jul 2013)
diff --git a/app-antivirus/clamav/clamav-0.97.8-r1.ebuild b/app-antivirus/clamav/clamav-0.97.8-r2.ebuild
index 769f16f00e0a..45c1620a7852 100644
--- a/app-antivirus/clamav/clamav-0.97.8-r1.ebuild
+++ b/app-antivirus/clamav/clamav-0.97.8-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.8-r1.ebuild,v 1.1 2013/07/06 09:15:52 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.8-r2.ebuild,v 1.1 2013/09/08 10:50:14 pacho Exp $
EAPI=5
@@ -67,6 +67,7 @@ src_install() {
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/clamav.conf"
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
systemd_dounit "${FILESDIR}/clamd.service"
+ systemd_dounit "${FILESDIR}/freshclamd.service"
keepdir /var/lib/clamav
fowners clamav:clamav /var/lib/clamav
diff --git a/app-antivirus/clamav/files/freshclamd.service b/app-antivirus/clamav/files/freshclamd.service
new file mode 100644
index 000000000000..a0a72c2e60eb
--- /dev/null
+++ b/app-antivirus/clamav/files/freshclamd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=clamav updater
+
+[Service]
+Type=forking
+PIDFile=/run/clamav/freshclam.pid
+ExecStart=/usr/bin/freshclam -d -p /run/clamav/freshclam.pid
+
+[Install]
+WantedBy=multi-user.target