summaryrefslogtreecommitdiff
path: root/dovecot/Pkgfile
blob: 4c0b42b9992bcd6bb730996d31f59c37449ecb21 (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.3.0.1
    8 release=1
    9 source=(https://dovecot.org/releases/2.3/$name-$version.tar.gz
   10         dovecot-config.patch dovecot)
   11 
   12 build () {
   13     cd $name-$version
   14 
   15     ./configure --prefix=/usr \
   16                 --libexecdir=/usr/lib \
   17                 --sysconfdir=/etc \
   18                 --localstatedir=/var \
   19                 --with-moduledir=/usr/lib/dovecot/modules \
   20                 --with-ssl=openssl \
   21                 --without-libwrap
   22 
   23     make
   24     make DESTDIR=$PKG install
   25 
   26     cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
   27     install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot
   28 
   29     rm -r $PKG/usr/share/doc
   30     rm $PKG/etc/dovecot/README
   31 
   32     install -d $PKG/etc/ssl/{certs,keys}
   33     touch $PKG/etc/ssl/certs/dovecot.crt
   34     touch $PKG/etc/ssl/keys/dovecot.key
   35     chmod 0600 $PKG/etc/ssl/{keys/dovecot.key,certs/dovecot.crt}
   36 
   37     install -d -m 0750 $PKG/var/lib/dovecot
   38     install -d -m 0755 $PKG/var/run/dovecot
   39     install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
   40 }

Generated by cgit