blob: b7514458553f35b3dd397825ba4d88e664dd46cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pax-utils
pkgver=1.2.5
pkgrel=0
pkgdesc="ELF related utils for ELF 32/64 binaries"
url="https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities"
arch="all"
license="GPL-2.0-only"
depends="scanelf"
makedepends_host="linux-headers libcap-dev"
makedepends="$makedepends_host"
checkdepends="bash python3 py3-elftools"
source="https://dev.gentoo.org/~slyfox/distfiles/pax-utils-$pkgver.tar.xz"
subpackages="$pkgname-doc scanelf:_scanelf"
build() {
make USE_CAP=yes
}
check() {
# Use py3
sed -i '1 s:^.*$:#!/usr/bin/python3:' lddtree.py
make check
}
package() {
make DESTDIR="$pkgdir/" install
# Don't conflict with main/lddtree
rm -f "$pkgdir"/usr/bin/lddtree
}
_scanelf() {
pkgdesc="Scan ELF binaries for stuff"
depends=""
replaces="pax-utils"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/scanelf "$subpkgdir"/usr/bin/
}
sha512sums="bf2f47393a66b4218eba7981100fc6936c7c9d6d98970f5337e7b3097ce6f7b2ca13de486ff7450e4395b74ba2308d37105508234f323230376ec5814cfe54f9 pax-utils-1.2.5.tar.xz"
|