summaryrefslogtreecommitdiff
path: root/dovecot/Pkgfile
blob: 650d976e4fcd20367fc7fa849ccdc3c96e5c9efa (plain)
    1 # Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
    2 # URL:         http://dovecot.org
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  zlib bzip2 openssl libcap
    5 
    6 name=dovecot
    7 version=2.2.33.1
    8 release=1
    9 source=(https://dovecot.org/releases/2.2/$name-$version.tar.gz \
   10         dovecot-config.patch dovecot)
   11 
   12 build () {
   13     cd $name-$version
   14 
   15     patch -p1 -i $SRC/$name-config.patch
   16 
   17     ./configure --prefix=/usr \
   18                 --libexecdir=/usr/lib \
   19                 --sysconfdir=/etc \
   20                 --localstatedir=/var \
   21                 --with-moduledir=/usr/lib/dovecot/modules \
   22                 --with-ssl=openssl \
   23                 --without-libwrap
   24 
   25     make
   26     make DESTDIR=$PKG install
   27 
   28     cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
   29     install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot
   30 
   31     rm -r $PKG/usr/share/doc
   32     rm $PKG/etc/dovecot/README
   33 
   34     install -d $PKG/etc/ssl/{certs,keys}
   35     touch $PKG/etc/ssl/certs/dovecot.crt
   36     touch $PKG/etc/ssl/keys/dovecot.key
   37     chmod 0600 $PKG/etc/ssl/{keys/dovecot.key,certs/dovecot.crt}
   38 
   39     install -d -m 0750 $PKG/var/lib/dovecot
   40     install -d -m 0755 $PKG/var/run/dovecot
   41     install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
   42 }

Generated by cgit