diff options
-rw-r--r-- | main/opensmtpd/APKBUILD | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/main/opensmtpd/APKBUILD b/main/opensmtpd/APKBUILD index c9eb1dccd9..c27f576adc 100644 --- a/main/opensmtpd/APKBUILD +++ b/main/opensmtpd/APKBUILD @@ -14,14 +14,13 @@ 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 +source="https://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz smtpd.initd aliases autoconf-decl-checks.patch missing-decls.patch libressl-compat.patch" options="suid !check" - builddir="$srcdir"/$pkgname-$pkgver build() { @@ -41,20 +40,21 @@ build() { --with-libs="-lfts" \ --with-pie \ --with-path-CAfile=/etc/ssl/certs/ca-certificates.crt \ - --with-mantype=man || return 1 - make || return 1 + --with-mantype=man + make } package() { - make DESTDIR="${pkgdir}" -C "$builddir" install || return 1 + 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 || return 1 - install -Dm644 "$srcdir"/aliases "$pkgdir"/etc/smtpd/aliases || return 1 + 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. - for binary in mailq newaliases makemap sendmail; do - ln -s /usr/sbin/smtpctl "$pkgdir"/usr/sbin/$binary || return 1 + local binary; for binary in mailq newaliases makemap sendmail; do + ln -s /usr/sbin/smtpctl "$pkgdir"/usr/sbin/$binary done rmdir "$pkgdir"/usr/bin } |