summaryrefslogtreecommitdiffstats
path: root/exim/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'exim/Pkgfile')
-rw-r--r--exim/Pkgfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/exim/Pkgfile b/exim/Pkgfile
new file mode 100644
index 0000000..79e8871
--- /dev/null
+++ b/exim/Pkgfile
@@ -0,0 +1,27 @@
+description="Mail transfer agent."
+packager="CRUX System Team <core-ports AT crux DOT nu>"
+maintainer="Lukc <lukc AT upyum DOT com>"
+url="http://www.exim.org"
+depends=(db openssl libpcre tcp_wrappers)
+
+name=exim
+version=4.72
+release=1
+source=(ftp://ftp.exim.org/pub/exim/exim4/$name-$version.tar.bz2 exim exim-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;
+ install -D -m 755 $SRC/exim $PKG/etc/rc.d/exim;
+ install -D -m 644 doc/exim.8 $PKG$mandir/man8/exim.8;
+ install -d $PKG/var/{log,spool} $PKG$bindir;
+ 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-$version-1 $PKG/usr/sbin/sendmail;
+ ln -sf ../sbin/$name-$version-1 $PKG$bindir/mailq
+}