[arch-commits] Commit in clamav/repos (18 files)

Gaetan Bisson bisson at nymeria.archlinux.org
Tue Jan 7 08:01:17 UTC 2014


    Date: Tuesday, January 7, 2014 @ 09:01:17
  Author: bisson
Revision: 203272

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  clamav/repos/testing-i686/
  clamav/repos/testing-i686/PKGBUILD
    (from rev 203271, clamav/trunk/PKGBUILD)
  clamav/repos/testing-i686/clamd.conf
    (from rev 203271, clamav/trunk/clamd.conf)
  clamav/repos/testing-i686/clamd.service
    (from rev 203271, clamav/trunk/clamd.service)
  clamav/repos/testing-i686/freshclam.conf
    (from rev 203271, clamav/trunk/freshclam.conf)
  clamav/repos/testing-i686/freshclamd.service
    (from rev 203271, clamav/trunk/freshclamd.service)
  clamav/repos/testing-i686/install
    (from rev 203271, clamav/trunk/install)
  clamav/repos/testing-i686/logrotate
    (from rev 203271, clamav/trunk/logrotate)
  clamav/repos/testing-i686/tmpfiles.d
    (from rev 203271, clamav/trunk/tmpfiles.d)
  clamav/repos/testing-x86_64/
  clamav/repos/testing-x86_64/PKGBUILD
    (from rev 203271, clamav/trunk/PKGBUILD)
  clamav/repos/testing-x86_64/clamd.conf
    (from rev 203271, clamav/trunk/clamd.conf)
  clamav/repos/testing-x86_64/clamd.service
    (from rev 203271, clamav/trunk/clamd.service)
  clamav/repos/testing-x86_64/freshclam.conf
    (from rev 203271, clamav/trunk/freshclam.conf)
  clamav/repos/testing-x86_64/freshclamd.service
    (from rev 203271, clamav/trunk/freshclamd.service)
  clamav/repos/testing-x86_64/install
    (from rev 203271, clamav/trunk/install)
  clamav/repos/testing-x86_64/logrotate
    (from rev 203271, clamav/trunk/logrotate)
  clamav/repos/testing-x86_64/tmpfiles.d
    (from rev 203271, clamav/trunk/tmpfiles.d)

-----------------------------------+
 testing-i686/PKGBUILD             |   61 ++++++++++++++++++++++++++++++++++++
 testing-i686/clamd.conf           |    6 +++
 testing-i686/clamd.service        |   10 +++++
 testing-i686/freshclam.conf       |    3 +
 testing-i686/freshclamd.service   |   10 +++++
 testing-i686/install              |   10 +++++
 testing-i686/logrotate            |   10 +++++
 testing-i686/tmpfiles.d           |    1 
 testing-x86_64/PKGBUILD           |   61 ++++++++++++++++++++++++++++++++++++
 testing-x86_64/clamd.conf         |    6 +++
 testing-x86_64/clamd.service      |   10 +++++
 testing-x86_64/freshclam.conf     |    3 +
 testing-x86_64/freshclamd.service |   10 +++++
 testing-x86_64/install            |   10 +++++
 testing-x86_64/logrotate          |   10 +++++
 testing-x86_64/tmpfiles.d         |    1 
 16 files changed, 222 insertions(+)

Copied: clamav/repos/testing-i686/PKGBUILD (from rev 203271, clamav/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,61 @@
+# $Id$
+# Contributor: Dale Blount <dale at archlinux.org>
+# Contributor: Gregor Ibic <gregor.ibic at intelicom.si>
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=clamav
+pkgver=0.98
+pkgrel=2
+pkgdesc='Anti-virus toolkit for Unix'
+url='http://www.clamav.net/'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('bzip2' 'libltdl' 'gcc-libs')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        'logrotate'
+        'tmpfiles.d'
+        'clamd.conf'
+        'freshclam.conf'
+        'clamd.service'
+        'freshclamd.service')
+sha1sums=('1e6a7284721387646c713a8d32fa8b5a897985db'
+          'bb488a56b0f6a0760446cde89c1e3321e2717b78'
+          'a224ea9b4d0f4f196827347d54bed51e11c197ea'
+          '887f624eb305f2446f55d8339e2972ad0cfe2b79'
+          'b767837d0279ad30b92c314cb762b73e5ad0415e'
+          'b6ac0c5de1e5b41232b10d4f84e86201c370eaeb'
+          'cda9a087e5593992150cb456e34c5f6f589aca82')
+
+backup=('etc/clamav/clamd.conf'
+        'etc/clamav/freshclam.conf'
+        'etc/logrotate.d/clamav')
+
+install=install
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	./configure \
+		--prefix=/usr \
+		--sbindir=/usr/bin \
+		--sysconfdir=/etc/clamav \
+		--with-dbdir=/var/lib/clamav \
+		--disable-clamav \
+
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+
+	install -Dm644 ../clamd.conf "${pkgdir}"/etc/clamav/clamd.conf
+	install -Dm644 ../freshclam.conf "${pkgdir}"/etc/clamav/freshclam.conf
+	install -Dm644 ../freshclamd.service "${pkgdir}"/usr/lib/systemd/system/freshclamd.service
+	install -Dm644 ../clamd.service "${pkgdir}"/usr/lib/systemd/system/clamd.service
+	install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/clamav.conf
+	install -Dm644 ../logrotate "${pkgdir}"/etc/logrotate.d/clamav
+
+	install -d -o 64 -g 64 "${pkgdir}"/run/clamav
+	install -d -o 64 -g 64 "${pkgdir}"/var/log/clamav
+	install -d -o 64 -g 64 "${pkgdir}"/var/lib/clamav
+}

Copied: clamav/repos/testing-i686/clamd.conf (from rev 203271, clamav/trunk/clamd.conf)
===================================================================
--- testing-i686/clamd.conf	                        (rev 0)
+++ testing-i686/clamd.conf	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,6 @@
+LogFile /var/log/clamav/clamd.log
+LogTime yes
+PidFile /run/clamav/clamd.pid
+TemporaryDirectory /tmp
+LocalSocket /var/lib/clamav/clamd.sock
+User clamav

Copied: clamav/repos/testing-i686/clamd.service (from rev 203271, clamav/trunk/clamd.service)
===================================================================
--- testing-i686/clamd.service	                        (rev 0)
+++ testing-i686/clamd.service	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,10 @@
+[Unit]
+Description=clamav daemon
+
+[Service]
+Type=forking
+PIDFile=/run/clamav/clamd.pid
+ExecStart=/usr/bin/clamd
+
+[Install]
+WantedBy=multi-user.target

Copied: clamav/repos/testing-i686/freshclam.conf (from rev 203271, clamav/trunk/freshclam.conf)
===================================================================
--- testing-i686/freshclam.conf	                        (rev 0)
+++ testing-i686/freshclam.conf	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,3 @@
+UpdateLogFile /var/log/clamav/freshclam.log
+DatabaseMirror database.clamav.net
+NotifyClamd /etc/clamav/clamd.conf

Copied: clamav/repos/testing-i686/freshclamd.service (from rev 203271, clamav/trunk/freshclamd.service)
===================================================================
--- testing-i686/freshclamd.service	                        (rev 0)
+++ testing-i686/freshclamd.service	2014-01-07 08:01:17 UTC (rev 203272)
@@ -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

Copied: clamav/repos/testing-i686/install (from rev 203271, clamav/trunk/install)
===================================================================
--- testing-i686/install	                        (rev 0)
+++ testing-i686/install	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,10 @@
+post_install() {
+	getent group clamav &>/dev/null || groupadd -r -g 64 clamav >/dev/null
+	getent passwd clamav &>/dev/null || useradd -r -u 64 -g clamav -d /dev/null -s /bin/false -c "Clam AntiVirus" clamav >/dev/null
+}
+
+post_remove() {
+	getent passwd clamav &>/dev/null && userdel clamav >/dev/null
+	getent group clamav &>/dev/null && groupdel clamav >/dev/null
+	return 0
+}

Copied: clamav/repos/testing-i686/logrotate (from rev 203271, clamav/trunk/logrotate)
===================================================================
--- testing-i686/logrotate	                        (rev 0)
+++ testing-i686/logrotate	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,10 @@
+/var/log/clamav/clamd.log /var/log/clamav/freshclam.log {
+	create 644 clamav clamav
+	sharedscripts
+	missingok
+	notifempty
+	postrotate
+			/bin/kill -HUP `cat /run/clamav/clamd.pid 2>/dev/null` 2> /dev/null || true
+			/bin/kill -HUP `cat /run/clamav/freshclam.pid 2>/dev/null` 2> /dev/null || true
+	endscript
+}

Copied: clamav/repos/testing-i686/tmpfiles.d (from rev 203271, clamav/trunk/tmpfiles.d)
===================================================================
--- testing-i686/tmpfiles.d	                        (rev 0)
+++ testing-i686/tmpfiles.d	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1 @@
+d /run/clamav 0755 clamav clamav

Copied: clamav/repos/testing-x86_64/PKGBUILD (from rev 203271, clamav/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,61 @@
+# $Id$
+# Contributor: Dale Blount <dale at archlinux.org>
+# Contributor: Gregor Ibic <gregor.ibic at intelicom.si>
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+
+pkgname=clamav
+pkgver=0.98
+pkgrel=2
+pkgdesc='Anti-virus toolkit for Unix'
+url='http://www.clamav.net/'
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('bzip2' 'libltdl' 'gcc-libs')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        'logrotate'
+        'tmpfiles.d'
+        'clamd.conf'
+        'freshclam.conf'
+        'clamd.service'
+        'freshclamd.service')
+sha1sums=('1e6a7284721387646c713a8d32fa8b5a897985db'
+          'bb488a56b0f6a0760446cde89c1e3321e2717b78'
+          'a224ea9b4d0f4f196827347d54bed51e11c197ea'
+          '887f624eb305f2446f55d8339e2972ad0cfe2b79'
+          'b767837d0279ad30b92c314cb762b73e5ad0415e'
+          'b6ac0c5de1e5b41232b10d4f84e86201c370eaeb'
+          'cda9a087e5593992150cb456e34c5f6f589aca82')
+
+backup=('etc/clamav/clamd.conf'
+        'etc/clamav/freshclam.conf'
+        'etc/logrotate.d/clamav')
+
+install=install
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	./configure \
+		--prefix=/usr \
+		--sbindir=/usr/bin \
+		--sysconfdir=/etc/clamav \
+		--with-dbdir=/var/lib/clamav \
+		--disable-clamav \
+
+	make
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+
+	install -Dm644 ../clamd.conf "${pkgdir}"/etc/clamav/clamd.conf
+	install -Dm644 ../freshclam.conf "${pkgdir}"/etc/clamav/freshclam.conf
+	install -Dm644 ../freshclamd.service "${pkgdir}"/usr/lib/systemd/system/freshclamd.service
+	install -Dm644 ../clamd.service "${pkgdir}"/usr/lib/systemd/system/clamd.service
+	install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/clamav.conf
+	install -Dm644 ../logrotate "${pkgdir}"/etc/logrotate.d/clamav
+
+	install -d -o 64 -g 64 "${pkgdir}"/run/clamav
+	install -d -o 64 -g 64 "${pkgdir}"/var/log/clamav
+	install -d -o 64 -g 64 "${pkgdir}"/var/lib/clamav
+}

Copied: clamav/repos/testing-x86_64/clamd.conf (from rev 203271, clamav/trunk/clamd.conf)
===================================================================
--- testing-x86_64/clamd.conf	                        (rev 0)
+++ testing-x86_64/clamd.conf	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,6 @@
+LogFile /var/log/clamav/clamd.log
+LogTime yes
+PidFile /run/clamav/clamd.pid
+TemporaryDirectory /tmp
+LocalSocket /var/lib/clamav/clamd.sock
+User clamav

Copied: clamav/repos/testing-x86_64/clamd.service (from rev 203271, clamav/trunk/clamd.service)
===================================================================
--- testing-x86_64/clamd.service	                        (rev 0)
+++ testing-x86_64/clamd.service	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,10 @@
+[Unit]
+Description=clamav daemon
+
+[Service]
+Type=forking
+PIDFile=/run/clamav/clamd.pid
+ExecStart=/usr/bin/clamd
+
+[Install]
+WantedBy=multi-user.target

Copied: clamav/repos/testing-x86_64/freshclam.conf (from rev 203271, clamav/trunk/freshclam.conf)
===================================================================
--- testing-x86_64/freshclam.conf	                        (rev 0)
+++ testing-x86_64/freshclam.conf	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,3 @@
+UpdateLogFile /var/log/clamav/freshclam.log
+DatabaseMirror database.clamav.net
+NotifyClamd /etc/clamav/clamd.conf

Copied: clamav/repos/testing-x86_64/freshclamd.service (from rev 203271, clamav/trunk/freshclamd.service)
===================================================================
--- testing-x86_64/freshclamd.service	                        (rev 0)
+++ testing-x86_64/freshclamd.service	2014-01-07 08:01:17 UTC (rev 203272)
@@ -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

Copied: clamav/repos/testing-x86_64/install (from rev 203271, clamav/trunk/install)
===================================================================
--- testing-x86_64/install	                        (rev 0)
+++ testing-x86_64/install	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,10 @@
+post_install() {
+	getent group clamav &>/dev/null || groupadd -r -g 64 clamav >/dev/null
+	getent passwd clamav &>/dev/null || useradd -r -u 64 -g clamav -d /dev/null -s /bin/false -c "Clam AntiVirus" clamav >/dev/null
+}
+
+post_remove() {
+	getent passwd clamav &>/dev/null && userdel clamav >/dev/null
+	getent group clamav &>/dev/null && groupdel clamav >/dev/null
+	return 0
+}

Copied: clamav/repos/testing-x86_64/logrotate (from rev 203271, clamav/trunk/logrotate)
===================================================================
--- testing-x86_64/logrotate	                        (rev 0)
+++ testing-x86_64/logrotate	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1,10 @@
+/var/log/clamav/clamd.log /var/log/clamav/freshclam.log {
+	create 644 clamav clamav
+	sharedscripts
+	missingok
+	notifempty
+	postrotate
+			/bin/kill -HUP `cat /run/clamav/clamd.pid 2>/dev/null` 2> /dev/null || true
+			/bin/kill -HUP `cat /run/clamav/freshclam.pid 2>/dev/null` 2> /dev/null || true
+	endscript
+}

Copied: clamav/repos/testing-x86_64/tmpfiles.d (from rev 203271, clamav/trunk/tmpfiles.d)
===================================================================
--- testing-x86_64/tmpfiles.d	                        (rev 0)
+++ testing-x86_64/tmpfiles.d	2014-01-07 08:01:17 UTC (rev 203272)
@@ -0,0 +1 @@
+d /run/clamav 0755 clamav clamav




More information about the arch-commits mailing list