aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-19 12:21:55 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-19 12:23:25 +0100
commitde4953d8d48d8d598ecb49ade56733dc038dfd59 (patch)
tree532eb89b0a0633c17d21a75ca1cc2d2cd125d925 /testing
parentb101426cab3555ae188c9f79f9aa92e8969195d3 (diff)
downloadaports-de4953d8d48d8d598ecb49ade56733dc038dfd59.tar.bz2
aports-de4953d8d48d8d598ecb49ade56733dc038dfd59.tar.xz
testing/opendkim: fix abuild to prevent silent failures
Diffstat (limited to 'testing')
-rw-r--r--testing/opendkim/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/testing/opendkim/APKBUILD b/testing/opendkim/APKBUILD
index d2a6815d68..f9e0874482 100644
--- a/testing/opendkim/APKBUILD
+++ b/testing/opendkim/APKBUILD
@@ -16,8 +16,7 @@ install="$pkgname.pre-install"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz
opendkim.conf
opendkim.initd"
-
-builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
@@ -31,16 +30,20 @@ build() {
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install
+
+ make DESTDIR="$pkgdir" install || return 1
install -Dm644 "$pkgdir"/usr/share/doc/opendkim/opendkim.conf.sample \
- "$pkgdir"/etc/opendkim/opendkim.conf.sample
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ "$pkgdir"/etc/opendkim/opendkim.conf.sample || return 1
+ install -Dm644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
install -Dm644 LICENSE.Sendmail \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.Sendmail
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.Sendmail || return 1
- install -m755 -D "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/"$pkgname"
- install -m644 -D "$srcdir"/"$pkgname".conf "$pkgdir"/etc/conf.d/"$pkgname"
+ install -m755 -D "$srcdir"/$pkgname.initd \
+ "$pkgdir"/etc/init.d/$pkgname || return 1
+ install -m644 -D "$srcdir"/$pkgname.conf \
+ "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="916e691cdd16cfabd1cd6efe745323f9 opendkim-2.10.3.tar.gz