summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohn Lane2015-06-09 17:34:55 +0100
committerJohn Lane2015-06-09 17:34:55 +0100
commit5a4bbce966a5ab3ddde5cd2bac2470f0a74b3275 (patch)
tree12b92bc1af07c4da281bd5456d295b5642ec67e9 /PKGBUILD
downloadaur-5a4bbce966a5ab3ddde5cd2bac2470f0a74b3275.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c70071b7fda
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,80 @@
+# Maintainer: John Lane <archlinux at jelmail dot com>
+# Previously: Fisher Duan <steamedfish@njuopen.com> Ryan Corder <ryanc@greengrey.org>
+
+pkgname=cyrus-imapd
+pkgver=2.5.3
+pkgrel=1
+pkgdesc="Cyrus IMAP mail server"
+arch=('i686' 'x86_64' 'armv6h')
+url="http://www.cyrusimap.org/"
+license=('custom')
+depends=('cyrus-sasl' 'db' 'libsasl' 'perl')
+provides=('imap-server' 'pop3-server')
+conflicts=('imap-server' 'pop3-server')
+options=('!makeflags')
+backup=(etc/cyrus/cyrus.conf etc/cyrus/imapd.conf)
+install="$pkgname.install"
+source=(ftp://ftp.cyrusimap.org/cyrus-imapd/$pkgname-$pkgver.tar.gz
+ 'cyrus-master-conf.d'
+ 'cyrus-imapd.install'
+ 'cyrus-master.service')
+sha256sums=('9ea6fcedf4a2b560cfcdffe90e65c31ba6007dee3c79425e5445988990acb3d8'
+ '6b55becbb58ceb66408de19fb6465e4364bf16528d0caa8b756c4316d88419dc'
+ '1c6054397b84866831ccc1647d154365cb46158d6d6b162f08bc205edda7119a'
+ 'd5e3f64aff773fb75d5221d567064741a0846849ead6de64d37255e59533c027')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ CFLAGS=-fPIC ./configure \
+ --prefix=/usr \
+ --includedir=/usr/include/cyrus --mandir=/usr/share/man \
+ --docdir=/usr/share/doc/cyrus \
+ --datadir=/usr/share/cyrus --sysconfdir=/etc/cyrus \
+ --localstatedir=/var/lib/cyrus \
+ --sharedstatedir=/usr/share/cyrus \
+ --enable-murder --enable-nntp --enable-replication \
+ --enable-idled \
+ --with-cyrus-user=cyrus --with-cyrus-group=mail \
+ --with-pidfile=/var/run/cyrmaster.pid \
+ --with-syslogfacility=MAIL \
+ --with-cyrus-prefix=/usr/lib/cyrus \
+ --without-libwrap \
+ --exec-prefix=/usr --libexecdir=/usr/sbin
+
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make DESTDIR="${pkgdir}" install
+
+ # create required directories first
+ mkdir -m 0755 -p $pkgdir/usr/lib/systemd/system
+ mkdir -m 0755 -p $pkgdir/usr/include/cyrus
+ mkdir -m 0755 -p $pkgdir/etc/cyrus
+ mkdir -m 0755 -p $pkgdir/etc/conf.d
+ mkdir -m 0755 -p $pkgdir/etc/rc.d
+
+ # rename master.8 so it doesn't conflict with master.8 from Postfix
+ mv $pkgdir/usr/share/man/man8/master.8 $pkgdir/usr/share/man/man8/cyrus-master.8
+
+ # move cyradm to standard location
+ mv $pkgdir/usr/bin/site_perl/cyradm $pkgdir/usr/bin/cyradm
+ rmdir $pkgdir/usr/bin/site_perl
+
+ # install configs, rc scripts, etc
+ install -m 600 $srcdir/$pkgname-$pkgver/master/conf/normal.conf \
+ $pkgdir/etc/cyrus/cyrus.conf
+ echo "# see imapd.conf(5) man page for correct setup of this file" >> \
+ $pkgdir/etc/cyrus/imapd.conf
+ chmod 600 $pkgdir/etc/cyrus/imapd.conf
+ install -m 644 $srcdir/cyrus-master-conf.d $pkgdir/etc/conf.d/cyrus-master
+ install -m 644 $srcdir/cyrus-master.service \
+ $pkgdir/usr/lib/systemd/system/cyrus-master.service
+ install -Dm 644 $srcdir/$pkgname-$pkgver/COPYING \
+ $pkgdir/usr/share/licenses/$pkgname/COPYING
+ install -Dm 644 $srcdir/$pkgname-$pkgver/README \
+ $pkgdir/usr/share/doc/$pkgname/README
+}