diff options
author | Jesse Young <jlyo@jlyo.org> | 2011-10-27 21:32:55 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-10-28 07:54:35 +0000 |
commit | 058bc3c3c636ebc11323d39a99d7f636475d36c7 (patch) | |
tree | 8bb7afd4d5ab468ce5e13b60d52b748a18302b07 /testing/exim/APKBUILD | |
parent | dcf651a483101f741cd7e9d86c910c464fb87927 (diff) | |
download | aports-058bc3c3c636ebc11323d39a99d7f636475d36c7.tar.bz2 aports-058bc3c3c636ebc11323d39a99d7f636475d36c7.tar.xz |
testing/exim: new aport
A Message Transfer Agent
http://www.exim.org/
Signed-off-by: Jesse Young <jlyo@jlyo.org>
Diffstat (limited to 'testing/exim/APKBUILD')
-rw-r--r-- | testing/exim/APKBUILD | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/testing/exim/APKBUILD b/testing/exim/APKBUILD new file mode 100644 index 0000000000..908d0345fa --- /dev/null +++ b/testing/exim/APKBUILD @@ -0,0 +1,81 @@ +# Contributor: Jesse Young <jlyo@jlyo.org> +# Maintainer: Jesse Young <jlyo@jlyo.org> +pkgname=exim +pkgver=4.77 +pkgrel=0 +pkgdesc="A Message Transfer Agent" +url="http://www.exim.org/" +arch="all" +license="GPL" +depends="openssl" +depends_dev="db-dev pcre-dev openssl-dev" +makedepends="$depends_dev" +install= +subpackages="$pkgname-doc" +source="ftp://mirrors.24-7-solutions.net/pub/exim/ftp/exim/exim4/exim-$pkgver.tar.bz2 + exim.Makefile + exim.confd + exim.initd + exim.logrotate + aliases" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here + cp "$srcdir/$pkgname.Makefile" Local/Makefile + sed -e 's/^LIBS = -lnsl/LIBS =/g' \ + -e 's/^HAVE_ICONV=yes/#HAVE_ICONV=yes/' \ + -i OS/Makefile-Linux +} + +build() { + cd "$_builddir" + make makefile + make || { + cd build-Linux-* + sh ../scripts/Configure-config.h "make" + } && make || return 1 +} + +package() { + cd "$_builddir" + + install -D -m644 ../${pkgname}.logrotate ${pkgdir}/etc/logrotate.d/${pkgname} + install -D -m644 doc/exim.8 ${pkgdir}/usr/share/man/man8/exim.8 + mkdir -p ${pkgdir}/var/spool/exim/db ${pkgdir}/etc/mail \ + ${pkgdir}/var/log/exim ${pkgdir}/usr/lib \ + ${pkgdir}/var/log/exim ${pkgdir}/usr/sbin + chmod 770 ${pkgdir}/var/spool/exim ${pkgdir}/var/spool/exim/db ${pkgdir}/var/log/exim + cd build-Linux-* + for i in exicyclog exim_checkaccess exim_dumpdb exim_lock\ + exim_tidydb exipick exiqsumm exigrep exim_dbmbuild exim\ + exim_fixdb eximstats exinext exiqgrep exiwhat; do + install -m 0755 "$i" "$pkgdir/usr/sbin" + done + + cd "$srcdir/exim-$pkgver/src" + sed -e "s|/etc/aliases|/etc/mail/aliases|g" \ + -e "s|SYSTEM_ALIASES_FILE|/etc/mail/aliases|g" configure.default \ + >"$pkgdir/etc/mail/exim.conf" + + cp "$srcdir/aliases" "$pkgdir/etc/mail" + cd "$pkgdir/usr/sbin" + for i in mailq rmail rsmtp runq sendmail; do + ln -s exim "$i" + done + # fhs compliancy + ln -s ../sbin/exim ../lib/sendmail + + # remove the 2 lines below (and this) if there is no init.d script + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="5d746275f2cc85845567f9d5eb84a57a exim-4.77.tar.bz2 +7dfc9ed9307db655c8aec33b9618608d exim.Makefile +f442b68d435598831bab8536ade071b8 exim.confd +2f6d768039d74caf433345cace4bc540 exim.initd +2f40248d23ad1a9d0c25ab6474ff6900 exim.logrotate +4874006f0585253ddab027d441009757 aliases" |