2006-11-25 16:20:25 +01:00
|
|
|
# Description: Mail transfer agent
|
|
|
|
# URL: http://www.exim.org
|
2008-05-07 22:48:36 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2010-04-16 09:25:41 +02:00
|
|
|
# Depends on: db openssl libpcre tcp_wrappers
|
2006-11-25 16:20:25 +01:00
|
|
|
|
|
|
|
name=exim
|
2012-05-31 16:27:26 +02:00
|
|
|
version=4.80
|
2009-11-16 11:58:40 +01:00
|
|
|
release=1
|
2006-11-25 16:20:25 +01:00
|
|
|
source=(ftp://ftp.exim.org/pub/exim/exim4/$name-$version.tar.bz2 \
|
2011-10-11 17:24:02 +02:00
|
|
|
$name $name-config.patch
|
2012-05-31 16:27:26 +02:00
|
|
|
$name-compile_number.patch)
|
2006-11-25 16:20:25 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
2012-05-31 16:27:26 +02:00
|
|
|
patch -p1 -i $SRC/$name-compile_number.patch
|
2011-10-11 17:24:02 +02:00
|
|
|
|
2006-11-25 16:20:25 +01:00
|
|
|
sed "s/#CFLAGS#/$CFLAGS/" $SRC/$name-config.patch | patch -p1
|
|
|
|
cp src/EDITME Local/Makefile
|
|
|
|
|
2007-07-06 08:54:06 +02:00
|
|
|
make -j1
|
2006-11-25 16:20:25 +01:00
|
|
|
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} $PKG/usr/bin
|
|
|
|
install -d -m 0750 -o mail -g mail $PKG/var/{log,spool}/exim
|
2008-09-22 16:54:39 +02:00
|
|
|
|
2006-11-25 16:20:25 +01:00
|
|
|
touch $PKG/var/log/exim/exim_{mainlog,paniclog,rejectlog}
|
|
|
|
chown mail:mail $PKG/var/log/exim/*
|
|
|
|
chmod 640 $PKG/var/log/exim/*
|
|
|
|
|
2009-11-24 18:04:27 +01:00
|
|
|
ln -sf $name-$version-1 $PKG/usr/sbin/sendmail
|
|
|
|
ln -sf ../sbin/$name-$version-1 $PKG/usr/bin/mailq
|
2006-11-25 16:20:25 +01:00
|
|
|
}
|