summaryrefslogtreecommitdiffstats
path: root/main/paxctl/APKBUILD
blob: 57dece2dd334fb475ededa040f986e5c44b12d04 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=paxctl
pkgver=0.7
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.bz2"

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="25bf9df751976e87be20243e75291263  paxctl-0.7.tar.bz2"