diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-05-24 23:19:22 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-04 07:49:12 +0000 |
commit | 840c9ab4ba56cfcff17a28b1925ec3c565019766 (patch) | |
tree | 266988cd2f118754e87d4491978b9174ffd46853 | |
parent | ffb869160858a1c5e5f65b6bfe83a9be393187ce (diff) | |
download | alpine_aports-840c9ab4ba56cfcff17a28b1925ec3c565019766.tar.bz2 alpine_aports-840c9ab4ba56cfcff17a28b1925ec3c565019766.tar.xz alpine_aports-840c9ab4ba56cfcff17a28b1925ec3c565019766.zip |
main/apk-tools: strip static binary before signing
otherwise, abuild would strip the binary after this phase, altering the correct digest
(cherry picked from commit f991d7fbc3150e92c9528c5b0dc8e69e9d809671)
-rw-r--r-- | main/apk-tools/APKBUILD | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/apk-tools/APKBUILD b/main/apk-tools/APKBUILD index 2f748023de..364dc269ff 100644 --- a/main/apk-tools/APKBUILD +++ b/main/apk-tools/APKBUILD | |||
@@ -1,12 +1,12 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=apk-tools | 2 | pkgname=apk-tools |
3 | pkgver=2.3.4 | 3 | pkgver=2.3.4 |
4 | pkgrel=1 | 4 | pkgrel=2 |
5 | pkgdesc="Alpine Package Keeper - package manager for alpine" | 5 | pkgdesc="Alpine Package Keeper - package manager for alpine" |
6 | subpackages="$pkgname-static lua-apk:luaapk" | 6 | subpackages="$pkgname-static lua-apk:luaapk" |
7 | depends= | 7 | depends= |
8 | makedepends="zlib-dev openssl-dev lua-dev" | 8 | makedepends="zlib-dev openssl-dev lua-dev" |
9 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 | 9 | source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.bz2 |
10 | " | 10 | " |
11 | 11 | ||
12 | url="http://git.alpinelinux.org/cgit/apk-tools/" | 12 | url="http://git.alpinelinux.org/cgit/apk-tools/" |
@@ -60,6 +60,7 @@ static() { | |||
60 | local privkey="$PACKAGER_PRIVKEY" | 60 | local privkey="$PACKAGER_PRIVKEY" |
61 | local pubkey=${PACKAGER_PUBKEY:-"${privkey}.pub"} | 61 | local pubkey=${PACKAGER_PUBKEY:-"${privkey}.pub"} |
62 | local keyname=${pubkey##*/} | 62 | local keyname=${pubkey##*/} |
63 | strip "$subpkgdir"/sbin/apk.static | ||
63 | openssl dgst -sha1 -sign "$privkey" \ | 64 | openssl dgst -sha1 -sign "$privkey" \ |
64 | -out "$subpkgdir"/sbin/apk.static.SIGN.RSA.$keyname \ | 65 | -out "$subpkgdir"/sbin/apk.static.SIGN.RSA.$keyname \ |
65 | "$subpkgdir"/sbin/apk.static || return 1 | 66 | "$subpkgdir"/sbin/apk.static || return 1 |
@@ -72,3 +73,5 @@ luaapk() { | |||
72 | } | 73 | } |
73 | 74 | ||
74 | md5sums="b5e4273c76590214e28afefab386d84a apk-tools-2.3.4.tar.bz2" | 75 | md5sums="b5e4273c76590214e28afefab386d84a apk-tools-2.3.4.tar.bz2" |
76 | sha256sums="502f05a5975a6c58b7111e1fe2f615306327fde89cdab79dab574666aae389c4 apk-tools-2.3.4.tar.bz2" | ||
77 | sha512sums="51228f7464bdef583d7113889eba5e44ab582f11f312a59f0282769303a95cd2f02bbd37fb6a8143453f1a45a36066d3ed86cdda25318a62975cb50d6a891cdf apk-tools-2.3.4.tar.bz2" | ||