# Contributor: Sören Tempel # Contributor: Jonathan Curran # Contributor: Shiz # Maintainer: Jonathan Curran pkgname=opensmtpd pkgver=6.4.2p1 pkgrel=0 pkgdesc="Secure, reliable, lean, and easy-to configure SMTP server" url="http://www.opensmtpd.org" arch="all" license="ISC" depends="!postfix ca-certificates" 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 smtpd.conf.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/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 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="45b071523a46c441fd436acee44ea841a88ebe93f6b76284ef948fc97535cf73a2962b9a030bffa288227ab8ef90944755748d0036f919df9493d562c1afb694 opensmtpd-6.4.2p1.tar.gz a53c9854f71e55011566d3c96ce6321e11d00706c4180eb8ec4358b38c97d63cb7fcf3bb3c0b69365a8568a385bdb3ec1bc700d5f4463f8d6695a3d46b283c1d smtpd.initd 51d47b34eb3d728daa45f29d6434cc75db28dfa69b6fb3ecd873121df85b296a2d2c81016d765a07778aa26a496e4b29c09a30b82678cf42596a536734b5deca aliases 37104cc605569f142ceffa902f200e8a7e9e1114ebe5394ed1eac0ed6ce25454e1610270921c45246de8396eee04b7c8ab5a112a231036a6ef14e7e229b264e3 autoconf-decl-checks.patch 14ff3d4f56aee3a31551ea535c4a5bf9b760f0f11bc269225d7b176d5031294716133cbf4555a92e76cc6e33de89454435562672ddaf1ab365e61085eb1e4d53 smtpd.conf.patch"