updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bincimap / PKGBUILD
blob054c0802924a8bee8d8dde78a6e9e4b32283977c
1 # $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
2 # Maintainer: Kevin Piche <kevin@archlinux.org>
4 pkgname=bincimap
5 pkgver=1.2.13
6 pkgrel=4
7 pkgdesc="A well designed, modular IMAP server for Maildir."
8 arch=(i686 x86_64)
9 license=('GPL')
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
18                                 checkpassword.patch)
19 md5sums=('6d64d556eb3b786ad727e250f884a432' '3b065480b09cdbef31ceeb93217a99e7'\
20          '268e62bcb08cbc0155e00d4f46eb1913')
21 provides=('imap-server')
23 build() {
24         cd $startdir/src/$pkgname-${pkgver}final
25         ./configure --prefix=/usr --sysconfdir=/etc/bincimap \
26                         --localstatedir=/var --with-ssl
27         make || return 1
28         make DESTDIR=$startdir/pkg install || return 1
30         # clean up the files
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
36         done
37         rm -rf $startdir/pkg/etc/bincimap/xinetd
38         cd $startdir/pkg
39         patch -p1 < $startdir/src/xinetd.patch
40         patch -p1 < $startdir/src/checkpassword.patch
42 # vim:ts=2:ft=sh