opt/dovecot/Pkgfile

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
2006-10-09 19:35:49 +02:00
# URL: http://dovecot.org
2006-09-07 08:59:04 +02:00
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
2006-02-23 16:26:10 +01:00
# Depends on: openssl
name=dovecot
2007-09-09 10:32:46 +02:00
version=1.0.5
2006-02-23 16:26:10 +01:00
release=1
2007-08-04 09:37:39 +02:00
source=(http://dovecot.org/releases/1.0/$name-$version.tar.gz \
2006-02-23 16:26:10 +01:00
dovecot-config.patch dovecot)
build () {
cd $name-$version
2006-10-14 10:32:22 +02:00
patch -p1 < $SRC/$name-config.patch
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--with-moduledir=/usr/lib/dovecot/modules \
2006-08-04 17:06:27 +02:00
--with-ioloop=epoll \
2006-02-23 16:26:10 +01:00
--enable-ipv6 \
--with-ssl=openssl \
--with-pop3d
make
make DESTDIR=$PKG install
2007-03-02 17:35:45 +01:00
rm -r $PKG/usr/{share,include}
2007-03-25 10:22:48 +02:00
rm $PKG/etc/dovecot-{ldap,sql}-example.conf
2006-02-23 16:26:10 +01:00
mv $PKG/etc/dovecot-example.conf $PKG/etc/dovecot.conf
2006-10-14 10:32:22 +02:00
install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot
2006-02-23 16:26:10 +01:00
install -d $PKG/etc/ssl/{certs,keys}
touch $PKG/etc/ssl/certs/dovecot.crt
touch $PKG/etc/ssl/keys/dovecot.key
chmod 0600 $PKG/etc/ssl/{keys/dovecot.key,certs/dovecot.crt}
2006-02-23 16:26:10 +01:00
2006-08-04 17:06:27 +02:00
install -d $PKG/var/{run,lib}/dovecot
install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
chmod 0750 $PKG/var/lib/dovecot
2006-02-23 16:26:10 +01:00
}