mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 10:21:10 +02:00
testing/exim: new APKBUILD. Modular package
This commit is contained in:
parent
9bc3eecbb2
commit
7db3ca7f01
@ -2,27 +2,27 @@
|
|||||||
# Maintainer: Jesse Young <jlyo@jlyo.org>
|
# Maintainer: Jesse Young <jlyo@jlyo.org>
|
||||||
pkgname=exim
|
pkgname=exim
|
||||||
pkgver=4.84
|
pkgver=4.84
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A Message Transfer Agent"
|
pkgdesc="A Message Transfer Agent"
|
||||||
url="http://www.exim.org/"
|
url="http://www.exim.org/"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="GPL2"
|
license="GPL2"
|
||||||
depends=""
|
depends=
|
||||||
depends_dev="db-dev pcre-dev openssl-dev libspf2-dev"
|
depends_dev="db-dev pcre-dev openssl-dev libspf2-dev mysql-dev postgresql-dev sqlite-dev"
|
||||||
makedepends="gawk $depends_dev"
|
makedepends="bash gawk perl $depends_dev"
|
||||||
install=
|
install=
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-cdb $pkgname-doc $pkgname-dnsdb $pkgname-passwd $pkgname-sqlite $pkgname-mysql $pkgname-postgresql $pkgname-utils $pkgname-scripts"
|
||||||
source="ftp://exim.inode.at/exim/exim4/$pkgname-$pkgver.tar.bz2
|
source="ftp://exim.inode.at/exim/exim4/$pkgname-$pkgver.tar.bz2
|
||||||
exim.Makefile
|
exim.Makefile
|
||||||
exim.confd
|
exim.confd
|
||||||
exim.initd
|
exim.initd
|
||||||
exim.logrotate
|
exim.logrotate
|
||||||
aliases"
|
exim.pre-install"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
_builddir=$srcdir/$pkgname-$pkgver
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$_builddir"
|
cd $_builddir
|
||||||
# apply patches here
|
# apply patches here
|
||||||
cp "$srcdir/$pkgname.Makefile" Local/Makefile
|
cp "$srcdir/$pkgname.Makefile" Local/Makefile
|
||||||
sed -e 's/^LIBS = -lnsl/LIBS =/g' \
|
sed -e 's/^LIBS = -lnsl/LIBS =/g' \
|
||||||
@ -31,71 +31,103 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd $_builddir
|
||||||
# do not build parallel
|
|
||||||
export MAKEFLAGS=-j1
|
|
||||||
make makefile
|
make makefile
|
||||||
make || {
|
make -j1
|
||||||
cd build-Linux-*
|
|
||||||
sh ../scripts/Configure-config.h "make"
|
|
||||||
} && make || return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd $_builddir
|
||||||
|
make DESTDIR=$pkgdir INSTALL_ARG="-no_symlink -no_chown exim" install
|
||||||
install -D -m644 ../${pkgname}.logrotate ${pkgdir}/etc/logrotate.d/${pkgname}
|
install -D -m644 doc/exim.8 $pkgdir/usr/share/man/man8/exim.8
|
||||||
install -D -m644 doc/exim.8 ${pkgdir}/usr/share/man/man8/exim.8
|
cd $pkgdir/usr/sbin
|
||||||
mkdir -p ${pkgdir}/var/spool/exim/db ${pkgdir}/etc/mail \
|
mv exim-${pkgver}-* exim
|
||||||
${pkgdir}/var/log/exim ${pkgdir}/usr/lib \
|
|
||||||
${pkgdir}/var/log/exim ${pkgdir}/usr/sbin \
|
|
||||||
${pkgdir}/var/spool/mail
|
|
||||||
chmod 770 ${pkgdir}/var/spool/exim ${pkgdir}/var/spool/exim/db
|
|
||||||
chmod 750 ${pkgdir}/var/log/exim ${pkgdir}/etc/mail
|
|
||||||
chmod 03775 ${pkgdir}/var/spool/mail
|
|
||||||
chown root:mail ${pkgdir}/var/spool/mail ${pkgdir}/etc/mail
|
|
||||||
chown mail:mail ${pkgdir}/var/log/exim
|
|
||||||
install -D -m644 src/configure.default ${pkgdir}/etc/mail/exim.conf
|
|
||||||
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
|
for i in mailq rmail rsmtp runq sendmail; do
|
||||||
ln -s exim "$i"
|
ln -s exim $i
|
||||||
done
|
done
|
||||||
# fhs compliancy
|
install -m644 -D $srcdir/$pkgname.logrotate $pkgdir/etc/logrotate.d/$pkgname
|
||||||
ln -s ../sbin/exim ../lib/sendmail
|
install -m644 -D $srcdir/$pkgname.confd $pkgdir/etc/conf.d/$pkgname
|
||||||
|
install -m755 -D $srcdir/$pkgname.initd $pkgdir/etc/init.d/$pkgname
|
||||||
|
install -m750 -D -g mail -d $pkgdir/usr/lib/exim
|
||||||
|
install -m750 -D -o mail -d $pkgdir/var/log/exim
|
||||||
|
}
|
||||||
|
|
||||||
# remove the 2 lines below (and this) if there is no init.d script
|
scripts() {
|
||||||
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
pkgdesc="exim scripts"
|
||||||
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
|
depends="exim perl"
|
||||||
|
arch="noarch"
|
||||||
|
cd $_builddir
|
||||||
|
make DESTDIR=$subpkgdir \
|
||||||
|
INSTALL_ARG="exicyclog exim_checkaccess eximstats exiqgrep exigrep exinext exiqsumm exipick exiwhat" \
|
||||||
|
install
|
||||||
|
rm -fr $subpkgdir/etc
|
||||||
|
}
|
||||||
|
|
||||||
|
utils() {
|
||||||
|
pkgdesc="exim utils"
|
||||||
|
depends="exim"
|
||||||
|
cd $_builddir
|
||||||
|
make DESTDIR=$subpkgdir \
|
||||||
|
INSTALL_ARG="exim_dbmbuild exim_dumpdb exim_tidydb exim_fixdb exim_lock" \
|
||||||
|
install
|
||||||
|
rm -fr $subpkgdir/etc
|
||||||
|
}
|
||||||
|
|
||||||
|
sqlite() {
|
||||||
|
pkgdesc="sqlite support for exim"
|
||||||
|
depends="exim"
|
||||||
|
_inst_lookup sqlite
|
||||||
|
}
|
||||||
|
|
||||||
|
mysql() {
|
||||||
|
pkgdesc="mysql support for exim"
|
||||||
|
depends="exim"
|
||||||
|
_inst_lookup mysql
|
||||||
|
}
|
||||||
|
|
||||||
|
postgresql() {
|
||||||
|
pkgdesc="postgresql support for exim"
|
||||||
|
depends="exim"
|
||||||
|
_inst_lookup pgsql
|
||||||
|
}
|
||||||
|
|
||||||
|
cdb() {
|
||||||
|
pkgdesc="cdb support for exim"
|
||||||
|
depends="exim"
|
||||||
|
_inst_lookup cdb
|
||||||
|
}
|
||||||
|
|
||||||
|
dnsdb() {
|
||||||
|
pkgdesc="dnsdb support for exim"
|
||||||
|
depends="exim"
|
||||||
|
_inst_lookup dnsdb
|
||||||
|
}
|
||||||
|
|
||||||
|
passwd() {
|
||||||
|
pkgdesc="passwd support for exim"
|
||||||
|
depends="exim"
|
||||||
|
_inst_lookup passwd
|
||||||
|
}
|
||||||
|
|
||||||
|
_inst_lookup() {
|
||||||
|
install -D -m755 $_builddir/build-Linux-*/lookups/$1.so $subpkgdir/usr/lib/exim/$1.so
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="3d14522e604b687b9e515f5aa739b2c0 exim-4.84.tar.bz2
|
md5sums="3d14522e604b687b9e515f5aa739b2c0 exim-4.84.tar.bz2
|
||||||
90e01a407bfb32c406f5265d06c26ad7 exim.Makefile
|
8b2190d4169850f667250acdd13d6d06 exim.Makefile
|
||||||
f442b68d435598831bab8536ade071b8 exim.confd
|
f442b68d435598831bab8536ade071b8 exim.confd
|
||||||
6ba3c29545484c152df7ac8656943891 exim.initd
|
6ba3c29545484c152df7ac8656943891 exim.initd
|
||||||
8e8003542b9b8cd6300e46c24c302802 exim.logrotate
|
8e8003542b9b8cd6300e46c24c302802 exim.logrotate
|
||||||
eaec7a2a5f49b768fa168415ef0105fb aliases"
|
a58ceadf9f3fa8b06bbadb01bc731dc8 exim.pre-install"
|
||||||
sha256sums="78ea22be87fb6df880e7fd482f3bec9ef6ceca0c9dedd50f8a26cae0b38b9e9c exim-4.84.tar.bz2
|
sha256sums="78ea22be87fb6df880e7fd482f3bec9ef6ceca0c9dedd50f8a26cae0b38b9e9c exim-4.84.tar.bz2
|
||||||
0b6f24deea28bd236139dadef9632deb5255ac082bb9988dfac705d67034c92d exim.Makefile
|
a64a2eb7c1d17d2734604bcea7422b2110bab94d0b70606b68cf3f4300753284 exim.Makefile
|
||||||
668f912565a59926957090c6143f669f0e9de2cf441507d3c05fcd046865b401 exim.confd
|
668f912565a59926957090c6143f669f0e9de2cf441507d3c05fcd046865b401 exim.confd
|
||||||
46869c47ff928c5628113e4a76ea469e8202339305b781ada0e37dcf6cd5bf76 exim.initd
|
46869c47ff928c5628113e4a76ea469e8202339305b781ada0e37dcf6cd5bf76 exim.initd
|
||||||
49b4d81d6823057c89f7734b2d76de389d427af56164faad32ec883f8ca9e804 exim.logrotate
|
49b4d81d6823057c89f7734b2d76de389d427af56164faad32ec883f8ca9e804 exim.logrotate
|
||||||
f2943990feb2ddfb93e8b0816ef914e7057cb5d48a093901881e970b1002ab8a aliases"
|
3470a7f2860b0c01549577edf446fc13cdcf3e10e1b52875eee666017227db03 exim.pre-install"
|
||||||
sha512sums="3cd41af6d57e5f0377fc93367753eae6cb6bf835803e8608c44e1da5acefce1ed8886f4fe7536950de072bfed6e927afe1536c1e6466cf3121dd352b69a68039 exim-4.84.tar.bz2
|
sha512sums="3cd41af6d57e5f0377fc93367753eae6cb6bf835803e8608c44e1da5acefce1ed8886f4fe7536950de072bfed6e927afe1536c1e6466cf3121dd352b69a68039 exim-4.84.tar.bz2
|
||||||
e6936db8316fbbd32ea9828137eaeeb2e84053252ce1c180015b99d70a9f8ad5a4dcbad565595e19c06a48498ee2df8e86b22efb6ca2bca64af13a4395a89f23 exim.Makefile
|
4ec2b7a5e2c99cf0fb8dc4cd7684a86e8667e57c3ebb7beab8cd24322ab0d876fc27dd6b2d8e5bdfb36f260adaf297ca64cc6623f9e686a2fef3386c0531557a exim.Makefile
|
||||||
24bae5bba1b41e59247cd7089c3f9ffcc5f4b26c3da1b21f755724a7ee5c99a05e324437c965ae86170056cc63b9bcdc41f624a747ab31b887d69cff620f2155 exim.confd
|
24bae5bba1b41e59247cd7089c3f9ffcc5f4b26c3da1b21f755724a7ee5c99a05e324437c965ae86170056cc63b9bcdc41f624a747ab31b887d69cff620f2155 exim.confd
|
||||||
aeec8762d1dce4b09049e08d0c275ae475e639c4a3ad667c4208df36eba71c544311f5c175d7f481ea84213cf130da0a77a0e32d3ff7e933a7356deab8c4e850 exim.initd
|
aeec8762d1dce4b09049e08d0c275ae475e639c4a3ad667c4208df36eba71c544311f5c175d7f481ea84213cf130da0a77a0e32d3ff7e933a7356deab8c4e850 exim.initd
|
||||||
665bfa5ced8829f8f199bbcd040c1c667193643c6d902e5412679cf138e4c8cda7ffd0eefc8ff3b76d95202ee52d0c372b7c319746ff590dd6b61b93c1a2fedf exim.logrotate
|
665bfa5ced8829f8f199bbcd040c1c667193643c6d902e5412679cf138e4c8cda7ffd0eefc8ff3b76d95202ee52d0c372b7c319746ff590dd6b61b93c1a2fedf exim.logrotate
|
||||||
9cc0fe81b2110aecdd3d494650d051f773c2c83611692c4e5d365b89dcddd08b16af5b8f5f4ac3e3f553c36198846a05793d8fd01113f62d2ab761f555409201 aliases"
|
6b6e85f392cd338602653b86f88daedf90a735e04f9bbcbac83df357ec881f436a74aedd91db21bd1e2e510eedea39587ae473efa7be9b75c6e2efe0472cf28d exim.pre-install"
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
#
|
|
||||||
# /etc/mail/aliases
|
|
||||||
#
|
|
||||||
# NOTE: Make sure you run 'newaliases' after modifying this file
|
|
||||||
#
|
|
||||||
|
|
||||||
# Basic system aliases -- these MUST be present.
|
|
||||||
MAILER-DAEMON: postmaster
|
|
||||||
postmaster: root
|
|
||||||
hostmaster: root
|
|
||||||
webmaster: hostmaster
|
|
||||||
ftpmaster: hostmaster
|
|
||||||
admin: hostmaster
|
|
||||||
administrator: hostmaster
|
|
||||||
|
|
||||||
# General redirections for pseudo accounts.
|
|
||||||
bin: root
|
|
||||||
daemon: root
|
|
||||||
games: root
|
|
||||||
ingres: root
|
|
||||||
nobody: root
|
|
||||||
system: root
|
|
||||||
toor: root
|
|
||||||
uucp: root
|
|
||||||
|
|
||||||
# Well-known aliases.
|
|
||||||
manager: root
|
|
||||||
dumper: root
|
|
||||||
operator: root
|
|
||||||
|
|
||||||
# trap decode to catch security attacks
|
|
||||||
decode: root
|
|
||||||
|
|
||||||
# Person who should get root's mail
|
|
||||||
#root:
|
|
File diff suppressed because it is too large
Load Diff
6
testing/exim/exim.pre-install
Normal file
6
testing/exim/exim.pre-install
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
addgroup -S -g 12 mail 2>/dev/null
|
||||||
|
adduser -S -u 8 -h /var/spool/mail -s /sbin/nologin -g mail -G mail -D mail 2>/dev/null
|
||||||
|
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user