# Contributor: Sören Tempel # Contributor: Jonathan Curran # Contributor: Shiz # Maintainer: Jonathan Curran pkgname=opensmtpd pkgver=6.0.2p1 pkgrel=0 pkgdesc="secure, reliable, lean, and easy-to configure SMTP server" url="http://www.opensmtpd.org" arch="all" license="ISC" depends="" makedepends="automake autoconf libtool mdocml db-dev libasr-dev libevent-dev fts-dev zlib-dev libressl-dev bison flex-dev" install="$pkgname.pre-install $pkgname.post-install" subpackages="$pkgname-doc" source="https://www.opensmtpd.org/archives/${pkgname}-${pkgver}.tar.gz smtpd.initd aliases autoconf-decl-checks.patch" options="suid" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ./configure \ --prefix=/usr \ --sysconfdir=/etc/smtpd \ --with-libssl=/usr/include/openssl \ --mandir=/usr/share/man \ --libexecdir=/usr/lib/$pkgname \ --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=man || return 1 make || return 1 } package() { make DESTDIR="${pkgdir}" -C "$builddir" install || return 1 sed -i 's#/etc/mail#/etc/smtpd#g' "$pkgdir"/etc/smtpd/smtpd.conf install -Dm755 "$srcdir"/smtpd.initd "$pkgdir"/etc/init.d/smtpd || return 1 install -Dm644 "$srcdir"/aliases "$pkgdir"/etc/smtpd/aliases || return 1 # Create compatibility symlinks for mailq, newaliases, makemap and sendmail. for binary in mailq newaliases makemap sendmail; do ln -s /usr/sbin/smtpctl "$pkgdir"/usr/sbin/$binary || return 1 done } sha512sums="1e4275795dd2c43174ffa268398a0d9864ce4cb7d370330f7b8c55a9b40e757616bbd280919a409ebde403769e3dea62047857dc2ff98d7ecce660b459c7ff1c opensmtpd-6.0.2p1.tar.gz 6cbcca9fc74cc0bb007164442dea87d039b06668da1b43da5e1fac2160a96da95d6644437c79a92480a3ab1fc252686bd10eceed38a19971344b0a8fca65a3d6 smtpd.initd 929ba0b8befca6cad558602f9793a9c653923924ee524902916b8ef4952d1ea8a391895e7450ed9768eb82a07bd307b49561f5d49ea4711bd87a1a73eb8d7dad aliases e61b7b0ab98acca9c092469d3ed756161225af5126e2fc0611b2676b8e1df05db7037549febe85b860fa48e47536a01fa3bfa37976f42e47666065ba4198e903 autoconf-decl-checks.patch"