2006-02-23 15:26:10 +00:00
|
|
|
# Description: Mail transfer agent
|
|
|
|
# URL: http://www.exim.org
|
2006-11-10 17:34:38 +01:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: db, openssl
|
|
|
|
|
|
|
|
name=exim
|
2007-01-10 19:56:20 +01:00
|
|
|
version=4.66
|
2006-12-20 17:57:48 +01:00
|
|
|
release=1
|
2006-02-23 15:26:10 +00:00
|
|
|
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
|
|
|
|
|
2006-11-10 17:34:38 +01:00
|
|
|
install -d $PKG/var/{log,spool} $PKG/usr/bin
|
2006-02-23 15:26:10 +00:00
|
|
|
install -d -m 0750 -o mail -g mail $PKG/var/{log,spool}/exim
|
|
|
|
|
2006-11-20 19:46:07 +01:00
|
|
|
touch $PKG/var/log/exim/exim_{mainlog,paniclog,rejectlog}
|
2006-02-23 15:26:10 +00:00
|
|
|
chown mail:mail $PKG/var/log/exim/*
|
|
|
|
chmod 640 $PKG/var/log/exim/*
|
|
|
|
|
2006-11-10 17:34:38 +01:00
|
|
|
ln -sf $name-$version-1 $PKG/usr/sbin/sendmail
|
|
|
|
ln -sf ../sbin/$name-$version-1 $PKG/usr/bin/mailq
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|