mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 18:31:35 +02:00
main/paxmark: fix for busybox 1.25
we cannot declare local variables in global scope anymore
This commit is contained in:
parent
da2c76f8a5
commit
74f3e1c5b1
@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
# Maintainer: Timo Teräs <timo.teras@iki.fi>
|
||||||
pkgname=paxmark
|
pkgname=paxmark
|
||||||
pkgver=0.8
|
pkgver=0.8
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Manage PaX marking of executables"
|
pkgdesc="Manage PaX marking of executables"
|
||||||
url="http://alpinelinux.org"
|
url="http://alpinelinux.org"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
@ -22,6 +22,6 @@ package() {
|
|||||||
ln -s paxmark "$pkgdir"/usr/sbin/paxmark.sh || return 1
|
ln -s paxmark "$pkgdir"/usr/sbin/paxmark.sh || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="b5b1192f8ad0664a37f67f4187b3a8b7 paxmark"
|
md5sums="e0834d725b1a3f1e34d80b42639e138e paxmark"
|
||||||
sha256sums="41bf92a2412200d22ca0f6c7e98d407ff5cb0c1495ccab58f8e1ba388812752f paxmark"
|
sha256sums="94cc7668dce946e61d75228ef0724fbd5ea58ea3386de921e92b71bda51f9cda paxmark"
|
||||||
sha512sums="e0f99417e5effb7e0e5269c625aff36e8bb0a6d47853ce9260c8a9f215c66ccf8b6c62f64992451325c80f3ae52e63cb0b355db8cb8fce5e0db8c695037d2df4 paxmark"
|
sha512sums="1ee1df5aba905c8c319e54ef69dfc0e83929693b2b3adbe7afe582588bb6d71006e3fa6483aa70b6664b322dd6ceec85ab12cd533db59b2c1b4cc1c8e484a6e5 paxmark"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
local ret=0
|
ret=0
|
||||||
local flags="${1//[!zPpEeMmRrSs]}"
|
flags="${1//[!zPpEeMmRrSs]}"
|
||||||
[ -n "${flags}" ] || return 0
|
[ -n "${flags}" ] || return 0
|
||||||
shift
|
shift
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ for f in "$@"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Create XATTR_PAX marking using attr
|
# Create XATTR_PAX marking using attr
|
||||||
local xval=""
|
xval=""
|
||||||
[ "${flags//[!P]}" ] && xval="${xval}P"
|
[ "${flags//[!P]}" ] && xval="${xval}P"
|
||||||
[ "${flags//[!p]}" -a -z "${flags//[!P]}" ] && xval="${xval}p"
|
[ "${flags//[!p]}" -a -z "${flags//[!P]}" ] && xval="${xval}p"
|
||||||
[ "${flags//[!E]}" ] && xval="${xval}E"
|
[ "${flags//[!E]}" ] && xval="${xval}E"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user