forked from ports/contrib
28 lines
981 B
Plaintext
28 lines
981 B
Plaintext
# Description: A mail filtering framework
|
|
# URL: http://www.mimedefang.org
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
# Depends on: clamav p5-mime-tools p5-io-stringy p5-mailtools p5-digest-sha1 p5-unix-syslog
|
|
|
|
name=mimedefang
|
|
version=2.58
|
|
release=1
|
|
source=(http://www.mimedefang.org/static/$name-$version.tar.gz
|
|
mimedefang.conf)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
./configure --prefix=/usr \
|
|
--with-user=clamav \
|
|
--sysconfdir=/etc
|
|
make
|
|
make DESTDIR=$PKG install
|
|
sed -i \s/"\/var\/spool\/MIMEDefang\/clamd\.sock"/"\/var\/run\/clamav\/clamd\.sock"/ $PKG/usr/bin/mimedefang.pl
|
|
install -D -m 755 examples/init-script $PKG/etc/rc.d/mimedefang
|
|
install -D -m 644 $SRC/mimedefang.conf $PKG/etc/mail/mimedefang.conf
|
|
mkdir -p $PKG/var/spool/MIMEDefang $PKG/var/spool/MD-Quarantine
|
|
chown clamav:clamav $PKG/var/spool/MIMEDefang
|
|
chown clamav:clamav $PKG/var/spool/MD-Quarantine
|
|
chmod 750 $PKG/var/spool/MIMEDefang
|
|
chmod 750 $PKG/var/spool/MD-Quarantine
|
|
}
|