[arch-commits] Commit in dovecot/repos (8 files)

Andreas Radke andyrtr at archlinux.org
Fri Oct 28 17:45:21 UTC 2016


    Date: Friday, October 28, 2016 @ 17:45:20
  Author: andyrtr
Revision: 279398

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  dovecot/repos/staging-i686/
  dovecot/repos/staging-i686/PKGBUILD
    (from rev 279397, dovecot/trunk/PKGBUILD)
  dovecot/repos/staging-i686/dovecot.install
    (from rev 279397, dovecot/trunk/dovecot.install)
  dovecot/repos/staging-i686/dovecot.tmpfilesd
    (from rev 279397, dovecot/trunk/dovecot.tmpfilesd)
  dovecot/repos/staging-x86_64/
  dovecot/repos/staging-x86_64/PKGBUILD
    (from rev 279397, dovecot/trunk/PKGBUILD)
  dovecot/repos/staging-x86_64/dovecot.install
    (from rev 279397, dovecot/trunk/dovecot.install)
  dovecot/repos/staging-x86_64/dovecot.tmpfilesd
    (from rev 279397, dovecot/trunk/dovecot.tmpfilesd)

----------------------------------+
 staging-i686/PKGBUILD            |   95 +++++++++++++++++++++++++++++++++++++
 staging-i686/dovecot.install     |   10 +++
 staging-i686/dovecot.tmpfilesd   |    1 
 staging-x86_64/PKGBUILD          |   95 +++++++++++++++++++++++++++++++++++++
 staging-x86_64/dovecot.install   |   10 +++
 staging-x86_64/dovecot.tmpfilesd |    1 
 6 files changed, 212 insertions(+)

Copied: dovecot/repos/staging-i686/PKGBUILD (from rev 279397, dovecot/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-10-28 17:45:20 UTC (rev 279398)
@@ -0,0 +1,95 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Paul Mattal <paul at mattal.com>
+# Contributor: Federico Quagliata (quaqo) <quaqo at despammed.com>
+# Contributor: GARETTE Emmanuel <gnunux at laposte dot net>
+
+
+# --->>> remember to rebuild/bump pigeonhole in one step <<<---
+
+pkgname=dovecot
+pkgver=2.2.26
+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=('krb5' 'openssl' 'sqlite' 'libmariadbclient'
+        'postgresql-libs' 'bzip2' 'lz4' 'expat' 'curl' 'pam')
+makedepends=('libcap' 'libldap' 'clucene')
+optdepends=('libldap: ldap plugin'
+            'xz: imap zlib  plugin'
+            'clucene: alternative FTS indexer')
+provides=('imap-server' 'pop3-server')
+install=$pkgname.install
+source=(http://dovecot.org/releases/2.2/${pkgname}-${pkgver}.tar.gz{,.sig}
+        dovecot.tmpfilesd)
+md5sums=('54d96c68316cd75432e1f4234ecc82d9'
+         'SKIP'
+         '342a28251d40f983c98c0d1f1bf3d07d')
+validpgpkeys=('E643F0BDFDCD04D9FFCB6279C948525140558AC9') # Timo Sirainen <tss at iki.fi>
+
+prepare() {
+  cd $pkgname-$pkgver
+  # fix path in helper script
+  sed -i 's:OPENSSLCONFIG=${OPENSSLCONFIG-dovecot-openssl.cnf}:OPENSSLCONFIG=${OPENSSLCONFIG- /etc/ssl/dovecot-openssl.cnf}:' doc/mkcert.sh
+}
+
+build() {
+  cd $pkgname-$pkgver
+  # configure with openssl, mysql, and postgresql support
+  ./configure --prefix=/usr --sysconfdir=/etc \
+    --sbindir=/usr/bin \
+    --localstatedir=/var \
+  	--libexecdir=/usr/lib \
+  	--with-moduledir=/usr/lib/dovecot/modules \
+  	--with-systemdsystemunitdir=/usr/lib/systemd/system \
+	--disable-static \
+	--with-nss \
+	--with-pam \
+	--with-mysql \
+	--with-pgsql \
+	--with-sqlite \
+	--with-ssl=openssl \
+	--with-ssldir=/etc/ssl \
+	--with-gssapi \
+	--with-ldap=plugin \
+	--with-zlib \
+	--with-bzlib \
+	--with-lzma \
+	--with-lz4 \
+	--with-libcap \
+	--with-solr \
+	--with-lucene \
+	--with-docs #--help
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+	
+  # system user/group dovenull - 74
+  # system user/group dovecot  - 76
+  
+  cd $pkgname-$pkgver
+  make DESTDIR=${pkgdir} install
+
+  # install example conf files and ssl.conf
+  install -d -m755 ${pkgdir}/etc/dovecot/conf.d
+  install -m 644 ${pkgdir}/usr/share/doc/dovecot/example-config/dovecot.conf ${pkgdir}/etc/dovecot/dovecot.conf.sample
+  install -d -m755 ${pkgdir}/etc/ssl
+  install -m 644  ${srcdir}/$pkgname-$pkgver/doc/dovecot-openssl.cnf ${pkgdir}/etc/ssl/dovecot-openssl.cnf.sample
+
+  # install mkcert helper script
+  install -m 755  ${srcdir}/$pkgname-$pkgver/doc/mkcert.sh ${pkgdir}/usr/lib/dovecot/mkcert.sh
+
+  rm ${pkgdir}/etc/dovecot/README
+  
+  # systemd tmpfile
+  install -d -m755 ${pkgdir}/usr/lib/tmpfiles.d
+  install -m 644  ${srcdir}/dovecot.tmpfilesd ${pkgdir}/usr/lib/tmpfiles.d/dovecot.conf
+}

Copied: dovecot/repos/staging-i686/dovecot.install (from rev 279397, dovecot/trunk/dovecot.install)
===================================================================
--- staging-i686/dovecot.install	                        (rev 0)
+++ staging-i686/dovecot.install	2016-10-28 17:45:20 UTC (rev 279398)
@@ -0,0 +1,10 @@
+post_install() {
+  getent group dovenull &> /dev/null || groupadd -g 74 dovenull &> /dev/null
+  getent group dovecot &> /dev/null  || groupadd -g 76 dovecot &> /dev/null
+  getent passwd dovenull &> /dev/null || useradd -s /sbin/nologin -c "Dovecot user for completely untrustworthy processes" -d /var/empty -u 74 -g dovenull -r dovenull &> /dev/null
+  getent passwd dovecot &> /dev/null  || useradd -s /sbin/nologin -c "Dovecot user" -d /var/empty -u 76 -g dovecot -r dovecot &> /dev/null
+}
+
+post_remove() {
+  rm -rf /var/run/dovecot/ &> /dev/null || /bin/true
+}

Copied: dovecot/repos/staging-i686/dovecot.tmpfilesd (from rev 279397, dovecot/trunk/dovecot.tmpfilesd)
===================================================================
--- staging-i686/dovecot.tmpfilesd	                        (rev 0)
+++ staging-i686/dovecot.tmpfilesd	2016-10-28 17:45:20 UTC (rev 279398)
@@ -0,0 +1 @@
+d /var/run/dovecot 0755 root dovecot -

Copied: dovecot/repos/staging-x86_64/PKGBUILD (from rev 279397, dovecot/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-10-28 17:45:20 UTC (rev 279398)
@@ -0,0 +1,95 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Paul Mattal <paul at mattal.com>
+# Contributor: Federico Quagliata (quaqo) <quaqo at despammed.com>
+# Contributor: GARETTE Emmanuel <gnunux at laposte dot net>
+
+
+# --->>> remember to rebuild/bump pigeonhole in one step <<<---
+
+pkgname=dovecot
+pkgver=2.2.26
+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=('krb5' 'openssl' 'sqlite' 'libmariadbclient'
+        'postgresql-libs' 'bzip2' 'lz4' 'expat' 'curl' 'pam')
+makedepends=('libcap' 'libldap' 'clucene')
+optdepends=('libldap: ldap plugin'
+            'xz: imap zlib  plugin'
+            'clucene: alternative FTS indexer')
+provides=('imap-server' 'pop3-server')
+install=$pkgname.install
+source=(http://dovecot.org/releases/2.2/${pkgname}-${pkgver}.tar.gz{,.sig}
+        dovecot.tmpfilesd)
+md5sums=('54d96c68316cd75432e1f4234ecc82d9'
+         'SKIP'
+         '342a28251d40f983c98c0d1f1bf3d07d')
+validpgpkeys=('E643F0BDFDCD04D9FFCB6279C948525140558AC9') # Timo Sirainen <tss at iki.fi>
+
+prepare() {
+  cd $pkgname-$pkgver
+  # fix path in helper script
+  sed -i 's:OPENSSLCONFIG=${OPENSSLCONFIG-dovecot-openssl.cnf}:OPENSSLCONFIG=${OPENSSLCONFIG- /etc/ssl/dovecot-openssl.cnf}:' doc/mkcert.sh
+}
+
+build() {
+  cd $pkgname-$pkgver
+  # configure with openssl, mysql, and postgresql support
+  ./configure --prefix=/usr --sysconfdir=/etc \
+    --sbindir=/usr/bin \
+    --localstatedir=/var \
+  	--libexecdir=/usr/lib \
+  	--with-moduledir=/usr/lib/dovecot/modules \
+  	--with-systemdsystemunitdir=/usr/lib/systemd/system \
+	--disable-static \
+	--with-nss \
+	--with-pam \
+	--with-mysql \
+	--with-pgsql \
+	--with-sqlite \
+	--with-ssl=openssl \
+	--with-ssldir=/etc/ssl \
+	--with-gssapi \
+	--with-ldap=plugin \
+	--with-zlib \
+	--with-bzlib \
+	--with-lzma \
+	--with-lz4 \
+	--with-libcap \
+	--with-solr \
+	--with-lucene \
+	--with-docs #--help
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+	
+  # system user/group dovenull - 74
+  # system user/group dovecot  - 76
+  
+  cd $pkgname-$pkgver
+  make DESTDIR=${pkgdir} install
+
+  # install example conf files and ssl.conf
+  install -d -m755 ${pkgdir}/etc/dovecot/conf.d
+  install -m 644 ${pkgdir}/usr/share/doc/dovecot/example-config/dovecot.conf ${pkgdir}/etc/dovecot/dovecot.conf.sample
+  install -d -m755 ${pkgdir}/etc/ssl
+  install -m 644  ${srcdir}/$pkgname-$pkgver/doc/dovecot-openssl.cnf ${pkgdir}/etc/ssl/dovecot-openssl.cnf.sample
+
+  # install mkcert helper script
+  install -m 755  ${srcdir}/$pkgname-$pkgver/doc/mkcert.sh ${pkgdir}/usr/lib/dovecot/mkcert.sh
+
+  rm ${pkgdir}/etc/dovecot/README
+  
+  # systemd tmpfile
+  install -d -m755 ${pkgdir}/usr/lib/tmpfiles.d
+  install -m 644  ${srcdir}/dovecot.tmpfilesd ${pkgdir}/usr/lib/tmpfiles.d/dovecot.conf
+}

Copied: dovecot/repos/staging-x86_64/dovecot.install (from rev 279397, dovecot/trunk/dovecot.install)
===================================================================
--- staging-x86_64/dovecot.install	                        (rev 0)
+++ staging-x86_64/dovecot.install	2016-10-28 17:45:20 UTC (rev 279398)
@@ -0,0 +1,10 @@
+post_install() {
+  getent group dovenull &> /dev/null || groupadd -g 74 dovenull &> /dev/null
+  getent group dovecot &> /dev/null  || groupadd -g 76 dovecot &> /dev/null
+  getent passwd dovenull &> /dev/null || useradd -s /sbin/nologin -c "Dovecot user for completely untrustworthy processes" -d /var/empty -u 74 -g dovenull -r dovenull &> /dev/null
+  getent passwd dovecot &> /dev/null  || useradd -s /sbin/nologin -c "Dovecot user" -d /var/empty -u 76 -g dovecot -r dovecot &> /dev/null
+}
+
+post_remove() {
+  rm -rf /var/run/dovecot/ &> /dev/null || /bin/true
+}

Copied: dovecot/repos/staging-x86_64/dovecot.tmpfilesd (from rev 279397, dovecot/trunk/dovecot.tmpfilesd)
===================================================================
--- staging-x86_64/dovecot.tmpfilesd	                        (rev 0)
+++ staging-x86_64/dovecot.tmpfilesd	2016-10-28 17:45:20 UTC (rev 279398)
@@ -0,0 +1 @@
+d /var/run/dovecot 0755 root dovecot -



More information about the arch-commits mailing list