Package Details: clamsmtp 1.10-4

Git Clone URL: https://aur.archlinux.org/clamsmtp.git (read-only)
Package Base: clamsmtp
Description: SMTP filter that allows you to check for viruses using the ClamAV anti-virus software.
Upstream URL: http://thewalter.net/stef/software/clamsmtp/
Licenses: GPL
Submitter: None
Maintainer: Afwas
Last Packager: Afwas
Votes: 11
Popularity: 0.000317
First Submitted: 2006-07-14 12:37
Last Updated: 2016-08-07 01:04

Dependencies (1)

Required by (0)

Sources (3)

Latest Comments

Afwas commented on 2016-08-07 01:07

Updated. Added both changes by @thieume and @mezcal to PKGBUILD. See comments for details. Thanks.

thieume commented on 2016-02-20 08:53

A problem with the PKGBUILD :
==> ERREUR : license should be an array
license="GPL"

Resolved with : license=('GPL')

mezcal commented on 2015-11-06 11:07

For me it was necessary to add "sbindir=/usr/bin".
/usr/sbin have become symlink.

./configure --prefix=/usr --sbindir=/usr/bin

Update pkgbuild please.

Anonymous comment on 2014-05-04 01:22

A few updates to this pkgbuild.

# Maintainer: Eric Renfro <psi-jack@linux-help.org>
pkgname=clamsmtp
pkgver="1.10"
pkgrel=3
pkgdesc="SMTP filter that allows you to check for viruses using the ClamAV anti-virus software."
url="http://thewalter.net/stef/software/clamsmtp/"
license="GPL"
depends=('clamav')
source=(http://thewalter.net/stef/software/clamsmtp/$pkgname-$pkgver.tar.gz clamsmtp.confd clamsmtp.service)
backup=(etc/clamav/clamsmtpd.conf)
install=clamsmtp.install
md5sums=('b068ba6e444859782bbdd88f290c1abf'
'1ee746fb89ae90e48b1fa268ecc29b48'
'b55ac98624cee3d66656ba356a2b1d67')

arch=('i686' 'x86_64' 'armv6h')

build() {
cd ${srcdir}/clamsmtp-${pkgver}/
./configure --prefix=/usr
sed -i 's@#define DEFAULT_CLAMAV "/var/run/clamav/clamd"@#define DEFAULT_CLAMAV "/var/lib/clamav/clamd.sock"@g' src/clamsmtpd.c
make
}

package() {
cd ${srcdir}/clamsmtp-${pkgver}/
make DESTDIR=$pkgdir install
mkdir -p ${pkgdir}/usr/lib/systemd/system
mkdir -p ${pkgdir}/etc/conf.d
mkdir -p ${pkgdir}/etc/clamav
install -m 644 ../clamsmtp.confd ${pkgdir}/etc/conf.d/clamsmtp
install -m 644 ../clamsmtp.service ${pkgdir}/usr/lib/systemd/system/clamsmtp.service
install -m 644 $srcdir/$pkgname-$pkgver/doc/clamsmtpd.conf $pkgdir/etc/clamav/
sed -i 's/#User: clamav/User: clamav/g' $pkgdir/etc/clamav/clamsmtpd.conf
sed -i 's/#ClamAddress: \/var\/run\/clamav\/clamd/ClamAddress: \/var\/lib\/clamav\/clamd.sock/g' $pkgdir/etc/clamav/clamsmtpd.conf
}

mladoux commented on 2013-11-18 17:07

updated with new sources.

Anonymous comment on 2013-05-25 11:05

There it is:

# Maintainer: Eric Renfro <psi-jack@linux-help.org>
pkgname=clamsmtp
pkgver="1.10"
pkgrel=2
pkgdesc="SMTP filter that allows you to check for viruses using the ClamAV anti-virus software."
url="http://thewalter.net/stef/software/clamsmtp/"
license="GPL"
depends=('clamav')
source=(http://thewalter.net/stef/software/clamsmtp/$pkgname-$pkgver.tar.gz clamsmtp.confd clamsmtp.service)
backup=(etc/clamav/clamsmtpd.conf)
install=clamsmtp.install
md5sums=('b068ba6e444859782bbdd88f290c1abf'
'1ee746fb89ae90e48b1fa268ecc29b48'
'b55ac98624cee3d66656ba356a2b1d67')

arch=('i686' 'x86_64' 'armv6h')

build() {
cd $startdir/src/$pkgname-$pkgver/
./configure --prefix=/usr
sed -i 's@#define DEFAULT_CLAMAV "/var/run/clamav/clamd"@#define DEFAULT_CLAMAV "/var/lib/clamav/clamd.sock"@g' src/clamsmtpd.c
make
}

package() {
cd $srcdir/$pkgname-$pkgver/
make DESTDIR=$pkgdir install
mkdir -p ${pkgdir}/usr/lib/systemd/system
mkdir -p ${pkgdir}/etc/conf.d
mkdir -p $pkgdir/etc/clamav
#install -m 755 ../clamsmtp ${startdir}/pkg/etc/rc.d/
install -m 644 ../clamsmtp.confd ${pkgdir}/etc/conf.d/clamsmtp
install -m 644 ../clamsmtp.service ${pkgdir}/usr/lib/systemd/system/clamsmtp.service
install -m 644 $srcdir/$pkgname-$pkgver/doc/clamsmtpd.conf $pkgdir/etc/clamav/
sed -i 's/#User: clamav/User: clamav/g' $pkgdir/etc/clamav/clamsmtpd.conf
sed -i 's/#ClamAddress: \/var\/run\/clamav\/clamd/ClamAddress: \/var\/lib\/clamav\/clamd.sock/g' $pkgdir/etc/clamav/clamsmtpd.conf
}

Anonymous comment on 2013-05-25 11:03

Hey there,

due to the fact that http://memberwebs.com/nielsen/software/clamsmtp/ is down (error 404) I've changed the PKGBUILD to use another "mirror": http://thewalter.net/stef/software/clamsmtp/

@WaxyMouthfeel
Thanks for posting the PGKBUILD!

Refutationalist commented on 2013-04-19 08:52

Package currently generated an empty package, makepkg has deprecated some stuff. Here's an updated one:

# Maintainer: Eric Renfro <psi-jack@linux-help.org>
pkgname=clamsmtp
pkgver="1.10"
pkgrel=3
pkgdesc="SMTP filter that allows you to check for viruses using the ClamAV anti-virus software."
url="http://memberwebs.com/nielsen/software/clamsmtp/"
license="GPL"
depends=('clamav')
source=(http://memberwebs.com/nielsen/software/clamsmtp/$pkgname-$pkgver.tar.gz clamsmtp.confd clamsmtp.service)
backup=(etc/clamav/clamsmtpd.conf)
install=clamsmtp.install
md5sums=('b068ba6e444859782bbdd88f290c1abf'
'1ee746fb89ae90e48b1fa268ecc29b48'
'b55ac98624cee3d66656ba356a2b1d67')

arch=('i686' 'x86_64')

build() {
cd $startdir/src/$pkgname-$pkgver/
./configure --prefix=/usr
sed -i 's@#define DEFAULT_CLAMAV "/var/run/clamav/clamd"@#define DEFAULT_CLAMAV "/var/lib/clamav/clamd.sock"@g' src/clamsmtpd.c
make
}

package() {
cd $srcdir/$pkgname-$pkgver/
make DESTDIR=$pkgdir install
mkdir -p ${pkgdir}/usr/lib/systemd/system
mkdir -p ${pkgdir}/etc/conf.d
mkdir -p $pkgdir/etc/clamav
#install -m 755 ../clamsmtp ${startdir}/pkg/etc/rc.d/
install -m 644 ../clamsmtp.confd ${pkgdir}/etc/conf.d/clamsmtp
install -m 644 ../clamsmtp.service ${pkgdir}/usr/lib/systemd/system/clamsmtp.service
install -m 644 $srcdir/$pkgname-$pkgver/doc/clamsmtpd.conf $pkgdir/etc/clamav/
sed -i 's/#User: clamav/User: clamav/g' $pkgdir/etc/clamav/clamsmtpd.conf
sed -i 's/#ClamAddress: \/var\/run\/clamav\/clamd/ClamAddress: \/var\/lib\/clamav\/clamd.sock/g' $pkgdir/etc/clamav/clamsmtpd.conf
}

psi-jack commented on 2012-12-22 19:04

Updated to use systemd. Bon-appetite! :D

Anonymous comment on 2012-11-19 16:41

feel free to adopt the package, i stopped using archlinux

msierks commented on 2012-11-19 16:25

Can this package be updated to use systemd ?

Anonymous comment on 2010-06-12 15:47

Updated. Please remove non-current comments.

flow commented on 2010-06-11 15:22

Hello,
new version: http://memberwebs.com/stef/software/clamsmtp/clamsmtp-1.10.tar.gz