33 lines
883 B
Plaintext
33 lines
883 B
Plaintext
# Description: Mail transfer agent
|
|
# URL: http://www.exim.org
|
|
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
|
|
# Depends on: db, openssl
|
|
|
|
name=exim
|
|
version=4.61
|
|
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
|
|
make DESTDIR=$PKG install
|
|
|
|
install -D -m 755 $SRC/exim $PKG/etc/rc.d/exim
|
|
install -D -m 644 doc/exim.8 $PKG/usr/man/man8/exim.8
|
|
|
|
install -d $PKG/var/{log,spool}
|
|
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 -s $name-$version-1 $PKG/usr/sbin/sendmail
|
|
}
|