aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensmtpd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-08 18:12:27 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-08 18:26:55 +0200
commitc9cfe39e8add23b5821ebf04919640e8d67f50f3 (patch)
tree3aa0907296db06199e1a774655f4b82d1b3729e3 /main/opensmtpd
parent80d3e2de0e7ec8f262ab4e39553062a81758f703 (diff)
downloadaports-c9cfe39e8add23b5821ebf04919640e8d67f50f3.tar.bz2
aports-c9cfe39e8add23b5821ebf04919640e8d67f50f3.tar.xz
main/opensmtpd: modernize abuild
Diffstat (limited to 'main/opensmtpd')
-rw-r--r--main/opensmtpd/APKBUILD18
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
}