summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-03 10:40:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-03 10:40:12 +0000
commit97f8ecee5b90f72ea183a41a76e2d72ed4a41db6 (patch)
treee69a7f3c5749a78a0ce974c6a208f8f4663fe4c5 /testing
parent651a02df9321f2b131eacdee76feb6ca89456746 (diff)
downloadaports-97f8ecee5b90f72ea183a41a76e2d72ed4a41db6.tar.bz2
aports-97f8ecee5b90f72ea183a41a76e2d72ed4a41db6.tar.xz
main/postgrey: moved from testing, incl dependencies
Trying to clean up the mess.
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-io-multiplex/APKBUILD26
-rw-r--r--testing/perl-net-rblclient/APKBUILD26
-rw-r--r--testing/perl-parse-syslog/APKBUILD26
-rw-r--r--testing/postgrey/APKBUILD36
-rw-r--r--testing/postgrey/postgrey.confd55
-rw-r--r--testing/postgrey/postgrey.initd102
-rw-r--r--testing/postgrey/postgrey.pre-install6
7 files changed, 0 insertions, 277 deletions
diff --git a/testing/perl-io-multiplex/APKBUILD b/testing/perl-io-multiplex/APKBUILD
deleted file mode 100644
index e5d9bc065..000000000
--- a/testing/perl-io-multiplex/APKBUILD
+++ /dev/null
@@ -1,26 +0,0 @@
-# Contributor: Michael Mason <ms13sp@gmail.com>
-# Maintainer: Michael Mason <ms13sp@gmail.com>
-pkgname=perl-io-multiplex
-_realname=IO-Multiplex
-pkgver=1.10
-pkgrel=0
-pkgdesc="Manage IO on many file handles"
-url="http://search.cpan.org/dist/IO-Multiplex/"
-license="unknown"
-depends="perl"
-makedepends="perl-dev"
-install=
-subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/B/BB/BBB/$_realname-$pkgver.tar.gz"
-
-build() {
- cd "$srcdir/$_realname-$pkgver"
-
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
-}
-
-md5sums="ce230ee0a4afbff59da66f0c42e0340b IO-Multiplex-1.10.tar.gz"
diff --git a/testing/perl-net-rblclient/APKBUILD b/testing/perl-net-rblclient/APKBUILD
deleted file mode 100644
index e68eaae29..000000000
--- a/testing/perl-net-rblclient/APKBUILD
+++ /dev/null
@@ -1,26 +0,0 @@
-# Contributor: Michael Mason <ms13sp@gmail.com>
-# Maintainer: Michael Mason <ms13sp@gmail.com>
-pkgname=perl-net-rblclient
-_realname=Net-RBLClient
-pkgver=0.5
-pkgrel=0
-pkgdesc="Queries multiple Realtime Blackhole Lists in parallel"
-url="http://search.cpan.org/dist/Net-RBLClient/"
-license="unknown"
-depends="perl"
-makedepends="perl-dev"
-install=
-subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/A/AB/ABLUM/$_realname-$pkgver.tar.gz"
-
-build() {
- cd "$srcdir/RBLCLient-$pkgver"
-
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
-}
-
-md5sums="1fb9961106cbb5a6eb2257762847e502 Net-RBLClient-0.5.tar.gz"
diff --git a/testing/perl-parse-syslog/APKBUILD b/testing/perl-parse-syslog/APKBUILD
deleted file mode 100644
index af6da0fed..000000000
--- a/testing/perl-parse-syslog/APKBUILD
+++ /dev/null
@@ -1,26 +0,0 @@
-# Contributor: Michael Mason <ms13sp@gmail.com>
-# Maintainer: Michael Mason <ms13sp@gmail.com>
-pkgname=perl-parse-syslog
-_realname=Parse-Syslog
-pkgver=1.10
-pkgrel=0
-pkgdesc="Parse Unix syslog files"
-url="http://search.cpan.org/~dschwei/Parse-Syslog-1.10/"
-license="unknown"
-depends="perl"
-makedepends="perl-dev"
-install=
-subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/D/DS/DSCHWEI/$_realname-$pkgver.tar.gz"
-
-build() {
- cd "$srcdir/$_realname-$pkgver"
-
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
-}
-
-md5sums="e1c4c03aaa7cb8d2baa52f294dd9accc Parse-Syslog-1.10.tar.gz"
diff --git a/testing/postgrey/APKBUILD b/testing/postgrey/APKBUILD
deleted file mode 100644
index 83afce3c6..000000000
--- a/testing/postgrey/APKBUILD
+++ /dev/null
@@ -1,36 +0,0 @@
-# Contributor: Michael Mason <ms13sp@gmail.com>
-# Maintainer: Michael Mason <ms13sp@gmail.com>
-pkgname=postgrey
-pkgver=1.32
-pkgrel=2
-pkgdesc="Postfix policy server implementing greylisting"
-url="http://postgrey.schweikert.ch/"
-license="GPL"
-depends="perl perl-db perl-net-dns perl-net-server perl-io-multiplex
- perl-net-rblclient perl-parse-syslog"
-pkgusers="postgrey"
-pkggroups="postgrey"
-makedepends=""
-install=postgrey.pre-install
-subpackages=""
-source="http://postgrey.schweikert.ch/pub/$pkgname-$pkgver.tar.gz
- postgrey.confd
- postgrey.initd"
-
-build() {
- cd "$srcdir"/$pkgname-$pkgver
-
- install -m755 -D $pkgname "$pkgdir"/usr/sbin/$pkgname
- mkdir -p "$pkgdir"/var/spool/postfix/$pkgname
- chown postgrey:postgrey "$pkgdir"/var/spool/postfix/$pkgname
- chmod 770 "$pkgdir"/var/spool/postfix/$pkgname
- install -m755 -D contrib/postgreyreport "$pkgdir"/usr/bin/postgreyreport
- install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D postgrey_whitelist_clients "$pkgdir"/etc/postfix/postgrey_whitelist_clients
- install -m644 -D postgrey_whitelist_recipients "$pkgdir"/etc/postfix/postgrey_whitelist_recipients
- install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
-}
-
-md5sums="524a4e165bf997996f3bccade394712f postgrey-1.32.tar.gz
-caaad5770ab07fb5af3bbd522a05b84f postgrey.confd
-d0611b244202c77ad7ad79862721a738 postgrey.initd"
diff --git a/testing/postgrey/postgrey.confd b/testing/postgrey/postgrey.confd
deleted file mode 100644
index 7a6deb587..000000000
--- a/testing/postgrey/postgrey.confd
+++ /dev/null
@@ -1,55 +0,0 @@
-# Config file for /etc/init.d/postgrey
-
-# LISTEN TYPE
-# Set to 'inet' if you want to use a TCP socket.
-# Set to 'unix' if you want to use an UNIX socket.
-POSTGREY_TYPE="inet"
-
-# HOST
-# What IP should postgrey bind to?
-# Leave unchanged unless you know what you are doing.
-# (ignored if POSTGREY_TYPE is set to 'unix')
-POSTGREY_HOST="127.0.0.1"
-
-# PORT
-# What TCP port should postgrey listen on?
-# (ignored if POSTGREY_TYPE is set to 'unix')
-POSTGREY_PORT="10030"
-
-# SOCKET
-# Unix socket to listen on, if POSTGREY_TYPE is set to 'unix'.
-# Leave unchanged unless you know what you are doing.
-# (ignored if POSTGREY_TYPE is set to 'inet')
-POSTGREY_SOCKET="/var/spool/postfix/private/postgrey"
-
-# PID
-# Postgrey pid file.
-# Do not change, if you don't know what this is!
-POSTGREY_PID="/var/run/postgrey.pid"
-
-# DELAY
-# How long to delay mail that is greylisted in seconds.
-POSTGREY_DELAY=300
-
-# TEXT
-# The response we'll send back with delayed mail.
-POSTGREY_TEXT="Greylisted for %s seconds"
-
-# Additional Postgrey options
-#
-# -v, --verbose increase verbosity level
-# --max-age=N delete entries older than N days since the last time
-# that they have been seen (default: 30)
-# --retry-window=N allow only N days for the first retrial (default: 2)
-# append 'h' if you want to specify it in hours
-# --greylist-action=A if greylisted, return A to Postfix (default: DEFER_IF_PERMIT)
-# --lookup-by-subnet strip the last 8 bits from IP addresses (default)
-# --lookup-by-host do not strip the last 8 bits from IP addresses
-# --whitelist-clients=FILE default: /etc/postfix/postgrey_whitelist_clients
-# --whitelist-recipients=FILE default: /etc/postfix/postgrey_whitelist_recipients
-#
-# Note that the --whitelist-x options can be specified multiple times, and that
-# per default /etc/postfix/postgrey_whitelist_clients.local is also read, so
-# that you can put there local entries.
-#
-POSTGREY_OPTS=""
diff --git a/testing/postgrey/postgrey.initd b/testing/postgrey/postgrey.initd
deleted file mode 100644
index c9e51ceba..000000000
--- a/testing/postgrey/postgrey.initd
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/mail-filter/postgrey/files/postgrey.rc.new,v 1.10 2008/05/21 18:45:44 dertobi123 Exp $
-
-conf="/etc/conf.d/postgrey"
-
-opts="${opts} reload"
-
-depend() {
- need net
- after firewall
- before postfix
- provide postfix_greylist
-}
-
-conf_error() {
- eerror "You need to setup ${conf} first"
- return 1
-}
-
-checkconfig() {
-if [ -z "${POSTGREY_TYPE}" ]
- then
- einfo "You need to choose the server type you want"
- einfo "by setting the POSTGREY_TYPE variable in ${conf}."
- else
- if [ "x${POSTGREY_TYPE}" = "xinet" ]
- then
- if [ -z "${POSTGREY_PORT}" ] || [ -z "${POSTGREY_HOST}" ]
- then
- einfo "The following entries are missing in ${conf}:"
- [ -z "${POSTGREY_HOST}" ] && einfo " - POSTGREY_HOST"
- [ -z "${POSTGREY_PORT}" ] && einfo " - POSTGREY_PORT"
- conf_error
- fi
- POSTGREY_ADDR="${POSTGREY_TYPE}=${POSTGREY_HOST}:${POSTGREY_PORT}"
- else
- if [ -z "${POSTGREY_SOCKET}" ]
- then
- einfo "The following entries are missing in ${conf}:"
- [ -z "${POSTGREY_SOCKET}" ] && einfo " - POSTGREY_SOCKET"
- conf_error
- fi
- POSTGREY_ADDR="${POSTGREY_TYPE}=${POSTGREY_SOCKET}"
- fi
-fi
-
- if [ -z "${POSTGREY_PID}" ]
- then
- einfo "The following entries are missing in ${conf}:"
- [ -z "${POSTGREY_PID}" ] && einfo " - POSTGREY_PID"
- conf_error
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting Postgrey"
-
- # HACK -- start a subshell and corrects perms on the socket...
- ( if [ "x${POSTGREY_TYPE}" = "xunix" ]; then
- rm -f ${POSTGREY_SOCKET};
- while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done;
- chmod a+rw,a-x ${POSTGREY_SOCKET}; fi ) &
-
- if [ -z ${POSTGREY_DELAY} ] ; then
- POSTGREY_DELAY_ARG=""
- else
- POSTGREY_DELAY_ARG="--delay=${POSTGREY_DELAY}"
- fi
-
- if [ -z "${POSTGREY_TEXT}" ] ; then
- POSTGREY_TEXT_ARG=""
- else
- POSTGREY_TEXT_ARG="--greylist-text=${POSTGREY_TEXT}"
- fi
-
- start-stop-daemon --start --quiet --background \
- --pidfile=${POSTGREY_PID} \
- --name postgrey \
- --exec /usr/sbin/postgrey -- \
- --${POSTGREY_ADDR} \
- --daemonize \
- --pidfile=${POSTGREY_PID} \
- ${POSTGREY_DELAY_ARG} \
- ${POSTGREY_OPTS} \
- "${POSTGREY_TEXT_ARG}"
- eend ${?}
-}
-
-stop() {
- ebegin "Stopping Postgrey"
- start-stop-daemon --stop --quiet --pidfile ${POSTGREY_PID}
- eend ${?}
-}
-
-reload() {
- ebegin "Reloading Postgrey"
- start-stop-daemon --stop --signal HUP --oknodo --pidfile ${POSTGREY_PID}
- eend $?
-}
diff --git a/testing/postgrey/postgrey.pre-install b/testing/postgrey/postgrey.pre-install
deleted file mode 100644
index 3c34c3fd5..000000000
--- a/testing/postgrey/postgrey.pre-install
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-addgroup postgrey 2>/dev/null
-adduser -H -h /dev/null -s /bin/false -D postgrey 2>/dev/null
-
-exit 0