core/exim/Pkgfile
Juergen Daubert 32d711c85d [notify] exim: update to 4.87
Note the following change in behaviour:

JH/18 Bug 1709: When built with TLS support, the tls_advertise_hosts
      option now defaults to "*" (all hosts).  The variable is now
      available when not built with TLS, default unset, mainly to
      enable keeping the testuite sane.
      If a server certificate is not supplied (via tls_certificate)
      an error is logged, and clients will find TLS connections fail
      on startup.  Presumably they will retry in-clear.

      Packagers of Exim are strongly encouraged to create a server
      certificate at installation time.

To follow that advice our rc-script creates the required certificate
and the two variables tls_certificate and tls_privatekey are set in
the configuration file.
2016-04-07 13:58:47 +02:00

36 lines
977 B
Plaintext

# Description: Mail transfer agent
# URL: http://www.exim.org
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: db openssl libpcre
name=exim
version=4.87
release=1
source=(ftp://ftp.exim.org/pub/exim/exim4/$name-$version.tar.bz2 \
$name $name-config.patch)
build() {
cd $name-$version
sed "s/#CFLAGS#/$CFLAGS/" $SRC/$name-config.patch | patch -p1
cp src/EDITME Local/Makefile
make -j1
make DESTDIR=$PKG install
mv $PKG/usr/sbin/{$name-$version-?,$name}
install -D -m 755 $SRC/exim $PKG/etc/rc.d/exim
install -D -m 644 doc/exim.8 $PKG/usr/share/man/man8/exim.8
install -d $PKG/var/{log,spool} $PKG/usr/bin
install -d -m 0750 -o mail -g mail $PKG/var/{log,spool}/exim
touch $PKG/var/log/exim/exim_{mainlog,paniclog,rejectlog}
chown mail:mail $PKG/var/log/exim/*
chmod 640 $PKG/var/log/exim/*
ln -sf $name $PKG/usr/sbin/sendmail
ln -sf ../sbin/$name $PKG/usr/bin/mailq
}