summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Honeyman2015-06-09 19:09:43 +0100
committerSteven Honeyman2015-06-09 19:09:43 +0100
commit3c2a2985d118eaf5ed9a2eac92c262155bcb5f00 (patch)
tree37fe7ca91fa807c464c7de73a153eeb531931463
downloadaur-3c2a2985d118eaf5ed9a2eac92c262155bcb5f00.tar.gz
Initial import
-rw-r--r--.AURINFO18
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD45
3 files changed, 82 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..2cf8e556f37
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,18 @@
+pkgbase = clamav-light
+ pkgdesc = ClamAV manual scanner
+ pkgver = 0.98.4
+ pkgrel = 1
+ url = http://www.clamav.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = intltool
+ makedepends = autoconf
+ depends = bzip2
+ depends = gcc-libs
+ depends = libltdl
+ conflicts = clamav
+ source = http://downloads.sourceforge.net/clamav/clamav-0.98.4.tar.gz
+
+pkgname = clamav-light
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9fe64f70f8b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = clamav-light
+ pkgdesc = ClamAV manual scanner
+ pkgver = 0.98.4
+ pkgrel = 1
+ url = http://www.clamav.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = intltool
+ makedepends = autoconf
+ depends = bzip2
+ depends = gcc-libs
+ depends = libltdl
+ conflicts = clamav
+ source = http://downloads.sourceforge.net/clamav/clamav-0.98.4.tar.gz
+ md5sums = 6d409eab6c311de05a0a591fccd2ec83
+
+pkgname = clamav-light
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..47feddea9da
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Steven Honeyman <stevenhoneyman at gmail com>
+
+pkgname=clamav-light
+_pkgname=clamav
+pkgver=0.98.4
+pkgrel=1
+pkgdesc="ClamAV manual scanner"
+arch=('i686' 'x86_64')
+url="http://www.clamav.net/"
+license=('GPL')
+depends=('bzip2' 'gcc-libs' 'libltdl')
+makedepends=('intltool' 'autoconf')
+conflicts=('clamav')
+source=(http://downloads.sourceforge.net/$_pkgname/$_pkgname-${pkgver}.tar.gz)
+md5sums=('6d409eab6c311de05a0a591fccd2ec83')
+
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ sed -i '/clamsubmit/s/^/#/ ; /^pkgconfig/s/^/#/ ; /^bin_SCRIPTS/s/^/#/ ; s/^SUBDIRS.*/SUBDIRS = libclamav clamscan freshclam docs/' ./Makefile.am
+ sed -i 's/^man_MANS.*/man_MANS = man\/clamscan.1 man\/freshclam.1 man\/freshclam.conf.5/' ./docs/Makefile.am
+ autoreconf -fi
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ ./configure --prefix=/usr --sysconfdir=/etc --with-dbdir=/var/lib/clamav \
+ --disable-clamav --enable-dns-fix --with-gnu-ld --without-included-ltdl \
+ --disable-milter --disable-ipv6 --disable-clamdtop --disable-fanotify \
+ --disable-unrar --enable-llvm=no
+ make
+}
+
+package() {
+ cd "$srcdir/clamav-$pkgver"
+ mkdir -p -m755 "$pkgdir/etc"
+ mkdir -p -m777 "$pkgdir/var/lib/clamav"
+ make DESTDIR="$pkgdir" install-strip
+
+ # config file for freshclam
+ echo "IyBmcmVzaGNsYW0gY29uZmlnIGZpbGUgKGNsYW1B
+ VikKCkRhdGFiYXNlRGlyZWN0b3J5IC92YXIvbGli
+ L2NsYW1hdgpEYXRhYmFzZU1pcnJvciBkYXRhYmFz
+ ZS5jbGFtYXYubmV0CkZvcmVncm91bmQgeWVzClRl
+ c3REYXRhYmFzZXMgeWVzCg==" | tr -d " " | base64 -d >"$pkgdir/etc/freshclam.conf"
+}