mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
46 lines
1.8 KiB
Bash
46 lines
1.8 KiB
Bash
# $Id: PKGBUILD 54331 2009-10-08 21:12:45Z andyrtr $
|
|
#
|
|
# Contributor: Paul Mattal <paul@mattal.com>
|
|
# Contributor: Federico Quagliata (quaqo) <quaqo@despammed.com>
|
|
# Contributor: GARETTE Emmanuel <gnunux at laposte dot net>
|
|
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
pkgname=dovecot
|
|
pkgver=1.2.6
|
|
pkgrel=1
|
|
pkgdesc="An IMAP and POP3 server written with security primarily in mind"
|
|
arch=('i686' 'x86_64')
|
|
url="http://dovecot.org/"
|
|
license=("LGPL")
|
|
depends=("pam>=1.0.4" "libmysqlclient>=5.1.38" "postgresql-libs>=8.4.1-1" "sqlite3>=3.6.18" "db>=4.8"
|
|
"heimdal>=1.2.1-6" 'libcap>=2.17' 'bzip2')
|
|
optdepends=('libldap: ldap plugin')
|
|
makedepends=('libldap>=2.4.18-1')
|
|
provides=('imap-server' 'pop3-server')
|
|
options=('!libtool')
|
|
install=$pkgname.install
|
|
source=(http://dovecot.org/releases/1.2/${pkgname}-${pkgver}.tar.gz dovecot.sh)
|
|
md5sums=('807666f1a112e7379c4dbb57c9ce4899'
|
|
'd020d43eab4ded6fb379dadc570a9490')
|
|
|
|
build() {
|
|
cd ${srcdir}/$pkgname-$pkgver || return 1
|
|
|
|
# configure with openssl, mysql, and postgresql support
|
|
./configure --prefix=/usr --sysconfdir=/etc/dovecot --localstatedir=/var \
|
|
--libexecdir=/usr/lib --with-moduledir=/usr/lib/dovecot/modules \
|
|
--with-db --with-mysql --with-pgsql --with-sqlite \
|
|
--with-ssl=openssl --with-ssldir=/etc/dovecot/ssl \
|
|
--with-gssapi --with-ldap=plugin --enable-header-install --with-docs || return 1
|
|
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
# install the launch script
|
|
install -D -m755 ${srcdir}/$pkgname.sh ${pkgdir}/etc/rc.d/$pkgname || return 1
|
|
|
|
# fix paths in the config example file where we have a different layout
|
|
sed -i 's|/usr/lib/dovecot|/usr/lib/dovecot/modules|g;
|
|
s|libexec|lib|g;
|
|
s|lib/sendmail|sbin/sendmail|g' $pkgdir/etc/dovecot/dovecot-example.conf || return 1
|
|
}
|