mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 09:11:38 +01:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
# Contributor: Juraj Sujan <sujan@sofy.sk>
|
|
# Maintainer: Juraj Sujan <sujan@sofy.sk>
|
|
pkgname=maildrop
|
|
pkgver=2.5.2
|
|
pkgrel=0
|
|
pkgdesc="Mail delivery agent with filtering abilities"
|
|
url="http://courier-mta.org/maildrop/"
|
|
arch="all"
|
|
license="GPL3"
|
|
depends=
|
|
makedepends="perl pcre-dev"
|
|
install=
|
|
subpackages="$pkgname-doc"
|
|
source="http://downloads.sourceforge.net/project/courier/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2
|
|
http://www.max.rs/ozone/maildrop-2.3.0-dovecotauth.patch.txt"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
prepare() {
|
|
cd "$_builddir"
|
|
# apply patches here
|
|
if ! patch --verbose -p1 -i ../maildrop-2.3.0-dovecotauth.patch.txt; then
|
|
error "dovecotauth patch failed"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
# workaround for strange detection of default mailbox file/dir
|
|
export QMAIL="foo"
|
|
./configure --prefix=/usr \
|
|
--disable-authlib \
|
|
--without-db \
|
|
--enable-syslog=1 \
|
|
--with-default-maildrop=./Maildir || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
mkdir "$pkgdir"/usr/share/doc
|
|
mv "$pkgdir"/usr/share/maildrop "$pkgdir"/usr/share/doc/
|
|
cp README.dovecotauth "$pkgdir"/usr/share/doc/maildrop/
|
|
}
|
|
md5sums="3edb56534ae442a494255db6c8aaab99 maildrop-2.5.2.tar.bz2
|
|
f5e0fd910d76c4fba2a5fcdd40c6b375 maildrop-2.3.0-dovecotauth.patch.txt"
|