summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2009-06-16 07:35:59 +0000
committerLeonardo Arena <rnalrd@gmail.com>2009-06-16 07:35:59 +0000
commitca68415488cf1d989f9cbca632d5f66373c25625 (patch)
tree295a5fe52d064c6667392633633349312b380dbd /testing
parent1763c7f0a8c41b35398c697e9e0c1b68a96b8925 (diff)
downloadaports-ca68415488cf1d989f9cbca632d5f66373c25625.tar.bz2
aports-ca68415488cf1d989f9cbca632d5f66373c25625.tar.xz
testing/amavisd-new: moved to extra
Diffstat (limited to 'testing')
-rw-r--r--testing/amavisd-new/APKBUILD50
-rwxr-xr-xtesting/amavisd-new/amavisd-new.post-install14
-rw-r--r--testing/amavisd-new/amavisd.init23
3 files changed, 0 insertions, 87 deletions
diff --git a/testing/amavisd-new/APKBUILD b/testing/amavisd-new/APKBUILD
deleted file mode 100644
index daad650da..000000000
--- a/testing/amavisd-new/APKBUILD
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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"
diff --git a/testing/amavisd-new/amavisd-new.post-install b/testing/amavisd-new/amavisd-new.post-install
deleted file mode 100755
index 56cad39f5..000000000
--- a/testing/amavisd-new/amavisd-new.post-install
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-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
-
-addgroup $USER
-adduser -h $HOME -s /bin/false -G $GROUP -D $USER
-chown -R $USER:$GROUP $HOME
-chmod -R 750 $HOME
-chown root:$GROUP $CONFIG
diff --git a/testing/amavisd-new/amavisd.init b/testing/amavisd-new/amavisd.init
deleted file mode 100644
index 23f92af3f..000000000
--- a/testing/amavisd-new/amavisd.init
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/runscript
-
-PIDFILE="/var/amavis/amavisd.pid"
-
-depend() {
- need net
- use logger
- use antivirus
- before mta
-}
-
-start() {
- ebegin "Starting amavisd-new"
- start-stop-daemon --start --quiet --name amavisd --pidfile ${PIDFILE} \
- --exec /usr/sbin/amavisd
- eend $?
-}
-
-stop() {
- ebegin "Stopping amavisd-new"
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $?
-}