summaryrefslogtreecommitdiff
path: root/dovecot/Pkgfile
blob: dd61b92d99bfa512d052cbc735e05d9aeb4750a4 (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, juergen dot daubert at t-online dot de
    4 # Depends on:  openssl
    5 
    6 name=dovecot
    7 version=1.1.5
    8 release=1
    9 source=(http://dovecot.org/releases/1.1/$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     ./configure --prefix=/usr \
   17                 --libexecdir=/usr/lib \
   18                 --sysconfdir=/etc \
   19                 --localstatedir=/var \
   20                 --with-moduledir=/usr/lib/dovecot/modules \
   21                 --with-ioloop=epoll \
   22                 --enable-ipv6 \
   23                 --enable-header-install \
   24                 --with-ssl=openssl \
   25                 --with-pop3d
   26     make
   27     make DESTDIR=$PKG install
   28 
   29     rm -r $PKG/usr/share
   30     rm $PKG/etc/dovecot-{ldap,sql}-example.conf
   31     mv $PKG/etc/dovecot-example.conf $PKG/etc/dovecot.conf
   32     install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot
   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 $PKG/var/{run,lib}/dovecot
   40     install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
   41     chmod 0750 $PKG/var/lib/dovecot
   42 }

Generated by cgit