mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Jonathan Curran <jonathan@curran.in>
|
|
# Contributor: Shiz <hi@shiz.me>
|
|
# Maintainer: Jonathan Curran <jonathan@curran.in>
|
|
pkgname=opensmtpd
|
|
pkgver=6.0.3p1
|
|
pkgrel=0
|
|
pkgdesc="secure, reliable, lean, and easy-to configure SMTP server"
|
|
url="http://www.opensmtpd.org"
|
|
arch="all"
|
|
license="ISC"
|
|
depends="!postfix"
|
|
makedepends="automake autoconf libtool mdocml db-dev libasr-dev libevent-dev
|
|
fts-dev zlib-dev libressl-dev bison flex-dev"
|
|
install="$pkgname.pre-install"
|
|
subpackages="$pkgname-doc"
|
|
source="https://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz
|
|
smtpd.initd
|
|
aliases
|
|
autoconf-decl-checks.patch
|
|
"
|
|
options="suid !check"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc/smtpd \
|
|
--with-libssl=/usr/include/openssl \
|
|
--mandir=/usr/share/man \
|
|
--libexecdir=/usr/lib \
|
|
--with-path-mbox=/var/spool/mail \
|
|
--with-table-db \
|
|
--with-user-queue=smtpq \
|
|
--with-group-queue=smtpq \
|
|
--with-user-smtpd=smtpd \
|
|
--with-path-socket=/run \
|
|
--with-libs="-lfts" \
|
|
--with-pie \
|
|
--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \
|
|
--with-mantype=doc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" -C "$builddir" install
|
|
|
|
sed -i 's#/etc/mail#/etc/smtpd#g' "$pkgdir"/etc/smtpd/smtpd.conf
|
|
|
|
install -Dm755 "$srcdir"/smtpd.initd "$pkgdir"/etc/init.d/smtpd
|
|
install -Dm644 "$srcdir"/aliases "$pkgdir"/etc/smtpd/aliases
|
|
|
|
# Create compatibility symlinks for mailq, newaliases, makemap and sendmail.
|
|
local binary; for binary in mailq newaliases makemap sendmail; do
|
|
ln -s /usr/sbin/smtpctl "$pkgdir"/usr/sbin/$binary
|
|
done
|
|
rmdir "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="e579818a0ddbe637deb5a4e40f43eaf797783903ceac18fd89a57581b135b9e407d424e1a70ff7b4b06a0ee50bafb6e8ab2451371917887904b06ff1b55d320f opensmtpd-6.0.3p1.tar.gz
|
|
8d3b27c760df84804baadc90c23b34f3e99980fae97c685f98ab096c3e84ab293316cd7c49317fa3cffac7ab5e63217ada6a2c5b245f352bafe880b087e7705e smtpd.initd
|
|
51d47b34eb3d728daa45f29d6434cc75db28dfa69b6fb3ecd873121df85b296a2d2c81016d765a07778aa26a496e4b29c09a30b82678cf42596a536734b5deca aliases
|
|
37104cc605569f142ceffa902f200e8a7e9e1114ebe5394ed1eac0ed6ce25454e1610270921c45246de8396eee04b7c8ab5a112a231036a6ef14e7e229b264e3 autoconf-decl-checks.patch"
|