summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-05-24 23:19:22 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-05-24 23:19:22 +0300
commitf991d7fbc3150e92c9528c5b0dc8e69e9d809671 (patch)
tree3019b334c6d939c87a06f0802875e30e75a4edbd
parent416eb3d50e0b148e23a8f68bf11582147cbb1fb9 (diff)
downloadaports-f991d7fbc3150e92c9528c5b0dc8e69e9d809671.tar.bz2
aports-f991d7fbc3150e92c9528c5b0dc8e69e9d809671.tar.xz
main/apk-tools: strip static binary before signing
otherwise, abuild would strip the binary after this phase, altering the correct digest
-rw-r--r--main/apk-tools/APKBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/apk-tools/APKBUILD b/main/apk-tools/APKBUILD
index 2f748023d..a06e9e670 100644
--- a/main/apk-tools/APKBUILD
+++ b/main/apk-tools/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apk-tools
pkgver=2.3.4
-pkgrel=1
+pkgrel=2
pkgdesc="Alpine Package Keeper - package manager for alpine"
subpackages="$pkgname-static lua-apk:luaapk"
depends=
@@ -60,6 +60,7 @@ static() {
local privkey="$PACKAGER_PRIVKEY"
local pubkey=${PACKAGER_PUBKEY:-"${privkey}.pub"}
local keyname=${pubkey##*/}
+ strip "$subpkgdir"/sbin/apk.static
openssl dgst -sha1 -sign "$privkey" \
-out "$subpkgdir"/sbin/apk.static.SIGN.RSA.$keyname \
"$subpkgdir"/sbin/apk.static || return 1