mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-30 22:01:42 +01:00
84 lines
2.4 KiB
Plaintext
84 lines
2.4 KiB
Plaintext
# Contributor: Jesse Young <jlyo@jlyo.org>
|
|
# Maintainer: Jesse Young <jlyo@jlyo.org>
|
|
pkgname=exim
|
|
pkgver=4.77
|
|
pkgrel=1
|
|
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"
|
|
# do not build parallel
|
|
export MAKEFLAGS=-j1
|
|
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
|
|
281ad020d1df8c6ed0f4ecb53c0fce63 exim.logrotate
|
|
eaec7a2a5f49b768fa168415ef0105fb aliases"
|