#Maintainer: Dimitris Tzemos #Former Maintainer: Thorsten Muehlfelder pkgname=dovecot pkgver=2.1.10 pkgrel=1dj source=("http://www.dovecot.org/releases/2.1/dovecot-$pkgver.tar.gz" "rc.dovecot" "README.Slackware" "config-helper.sh" "config-helper-dovenull.sh") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname url="http://www.dovecot.org/" docs=('AUTHORS' 'COPYING*' 'ChangeLog' 'INSTALL' 'NEWS' 'README' 'TODO' 'doc/*.*' 'doc/wiki' 'README.Slackware' 'config-helper.sh' 'config-helper-dovenull.sh') options=('noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (IMAP and POP3 server)" "Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like" "systems, written with security primarily in mind. Dovecot is an" "excellent choice for both small and large installations. It's fast," "simple to set up, requires no special administration and it uses very" "little memory." "Make sure you read the documentation about how to set this up," "especially the info about creating dovecot user and groups in" "/usr/doc/dovecot-$pkgver/README.Slackware" ) build() { cd $SRC/${pkgname}-${pkgver} # fix build with recent clucene (FC) sed -i '/DEFAULT_INCLUDES *=/s|$| '"$(pkg-config --cflags libclucene-core)|" src/plugins/fts-lucene/Makefile.in || return 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --docdir=/usr/doc/dovecot-$pkgver \ --with-moduledir=/usr/lib${LIBDIRSUFFIX}/dovecot/modules \ --with-ldap=plugin \ --with-sql=plugin \ --with-mysql \ --with-sqlite \ --without-pam \ --with-zlib \ --with-bzlib \ --with-notify=inotify \ --without-pgsql \ --disable-static \ --with-libcap \ --with-ssl=openssl \ --with-ssldir=/etc/dovecot/ssl \ --without-gssapi \ --host=$arch-slackware-linux \ --build=$arch-slackware-linux make -j $numjobs || return 1 make DESTDIR=$PKG/ install || return 1 # install rc script install -D -m755 ../rc.dovecot $PKG/etc/rc.d/rc.dovecot.new || return 1 # create some dirs in /var mkdir -p $PKG/var/run/dovecot/ || return 1 mkdir -p $PKG/var/lib/dovecot || return 1 # create the ssl dirs mkdir -p $PKG/etc/dovecot/ssl/certs || return 1 mkdir -p $PKG/etc/dovecot/ssl/private || return 1 # Add example configuration file install -m 644 $PKG/usr/doc/$pkgname-$pkgver/example-config/dovecot.conf $PKG/etc/dovecot/dovecot.conf.new || return 1 sed -i "s#/etc/ssl#/etc/dovecot/ssl#" $PKG/usr/doc/$pkgname-$pkgver/example-config/conf.d/10-ssl.conf || return 1 sed -i "s#/etc/ssl#/etc/dovecot/ssl#" $PKG/usr/doc/$pkgname-$pkgver/mkcert.sh || return 1 } doinst() { if [ -r etc/rc.d/rc.dovecot -a -r etc/rc.d/rc.dovecot.new ]; then chmod --reference=etc/rc.d/rc.dovecot etc/rc.d/rc.dovecot.new fi mv etc/rc.d/rc.dovecot.new etc/rc.d/rc.dovecot }