summaryrefslogtreecommitdiffstats
path: root/main/paxctl/APKBUILD
blob: 9ca5861bbfaa494564d936aea774944fd4055ee0 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=paxctl
pkgver=0.9
pkgrel=0
pkgdesc="Manage PaX releated program header flags"
url="http://pax.grsecurity.net"
arch="all"
license="GPL-2"
depends=""
makedepends=""
install=
subpackages="$pkgname-doc"
source="http://pax.grsecurity.net/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	sed -i -e 's:--owner:-o:g; s:--group:-g:g; s:--mode:-m:g' Makefile

	make CFLAGS="$CFLAGS" LDFLASG="$LDFLAGS" || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
}

md5sums="9bea59b1987dc4e16c2d22d745374e64  paxctl-0.9.tar.gz"
sha256sums="a330ddd812688169802a3ba29e5e3b19956376b8f6f73b8d7e9586eb04423c2e  paxctl-0.9.tar.gz"
sha512sums="4048544bd05ed6eb37866034ade8482b8d017110ed9a639f220e8d2e32bb3dfb6c913a986c8fd41829e88efa793f7552eaa2a6d6b2af533c44a5754a5ab8650f  paxctl-0.9.tar.gz"