1 # $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
2 # Maintainer: Kevin Piche <kevin@archlinux.org>
7 pkgdesc="A well designed, modular IMAP server for Maildir."
10 url="http://www.bincimap.org"
11 depends=('checkpassword' 'gcc-libs' 'openssl<=0.9.8')
12 install="$pkgname.install"
13 backup=(etc/bincimap/bincimap.conf etc/xinetd.d/bincimap \
14 etc/xinetd.d/bincimaps var/service/bincimap/run \
15 var/service/bincimap/log/run var/service/bincimaps/run \
16 var/service/bincimaps/log/run)
17 source=($url/dl/tarballs/1.2/$pkgname-${pkgver}final.tar.bz2 xinetd.patch
19 md5sums=('6d64d556eb3b786ad727e250f884a432' '3b065480b09cdbef31ceeb93217a99e7'\
20 '268e62bcb08cbc0155e00d4f46eb1913')
21 provides=('imap-server')
24 cd $startdir/src/$pkgname-${pkgver}final
25 ./configure --prefix=/usr --sysconfdir=/etc/bincimap \
26 --localstatedir=/var --with-ssl
28 make DESTDIR=$startdir/pkg install || return 1
31 mkdir -p $startdir/pkg/{usr/lib/bincimap,etc/xinetd.d}
32 mv $startdir/pkg/usr/libexec $startdir/pkg/usr/lib/bincimap/scripts
33 for i in imap imaps; do
34 mv $startdir/pkg/etc/bincimap/xinetd/binc$i \
35 $startdir/pkg/etc/xinetd.d/binc$i
37 rm -rf $startdir/pkg/etc/bincimap/xinetd
39 patch -p1 < $startdir/src/xinetd.patch
40 patch -p1 < $startdir/src/checkpassword.patch