diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 08:01:31 +0000 |
commit | b70981b68efcce5256eb11c6cd26ae123b10b6ea (patch) | |
tree | a38be6efae5e2ba15c2e839504632f9b7bfd5f91 /main/amavisd-new/APKBUILD | |
parent | 2b4df81538b8398442d5296650905c70341dd8d3 (diff) | |
download | aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2 aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz |
moved extra/* to main/
and fixed misc build issues
Diffstat (limited to 'main/amavisd-new/APKBUILD')
-rw-r--r-- | main/amavisd-new/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/amavisd-new/APKBUILD b/main/amavisd-new/APKBUILD new file mode 100644 index 0000000000..daad650daa --- /dev/null +++ b/main/amavisd-new/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=amavisd-new +pkgver=2.6.3 +pkgrel=0 +pkgdesc="High-performance interface between mailer (MTA) and content checkers" +url="http://www.ijs.si/software/amavisd" +license="GPL-2" +depends="uclibc sed file perl perl-archive-zip perl-convert-tnef +perl-convert-uulib perl-mime-tools perl-mail-tools perl-net-server +perl-io-stringy perl-unix-syslog perl-db perl-mail-dkim" +makedepends="" +install="$pkgname.post-install" +subpackages="" +source="http://www.ijs.si/software/amavisd/$pkgname-$pkgver.tar.gz +$pkgname.post-install" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + HOME=/var/amavis + QUARANTINE=$HOME/quarantine + USER=amavis + GROUP=amavis + DIRS="$HOME $HOME/tmp $HOME/var $HOME/db $HOME/home $QUARANTINE" + CONFIG=/etc/amavisd.conf + + for dir in $DIRS + do + if [ ! -d "${pkgdir}$dir" ]; then + mkdir -p ${pkgdir}$dir + fi + chown -R amavis.amavis $HOME + done + + install -m 755 -o root -D amavisd $pkgdir/usr/sbin/amavisd + install -m 755 -o root -D amavisd-nanny $pkgdir/usr/bin/amavisd-nanny + install -m 755 -o root -D amavisd-release $pkgdir/usr/bin/amavisd-release + sed -e "s:^.*\$MYHOME = .*$:\$MYHOME = '$HOME';:" \ + -e 's:^.*\$TEMPBASE = .*$:\$TEMPBASE = "\$MYHOME/tmp";:' \ + -e 's:^.*\$db_home = .*$:\$db_home = "$MYHOME/db";:' \ + -e "s:^.*\$QUARANTINEDIR = .*$:\$QUARANTINEDIR = '$QUARANTINE';:" \ + -e "s:^.*\$daemon_user = 'vscan';\(.*\)$:\$daemon_user = 'amavis';\1:" \ + -e "s:^.*\$daemon_group = 'vscan';\(.*\)$:\$daemon_group = 'amavis';\1:" < amavisd.conf > amavisd.conf.alpine + install -m 640 -o root -g amavis -D amavisd.conf.alpine ${pkgdir}${CONFIG} + install -m 755 -D ../../amavisd.init $pkgdir/etc/init.d/amavisd +} + +md5sums="02b0bd38b40258841c60479603dc6842 amavisd-new-2.6.3.tar.gz +4b5cb0c750ab11d9d211a4e389545d6d amavisd-new.post-install" |