diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2017-05-11 22:57:32 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2017-05-11 22:57:32 -0700 |
commit | 335051400f374074ac16c1ea176ac81527a7807e (patch) | |
tree | 03ccd34fca0ff93b41ae3f180e9105d1f4ad19e9 /PKGBUILD | |
download | gradm-335051400f374074ac16c1ea176ac81527a7807e.tar.xz |
Initial Commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..771670a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Daniel Micay <danielmicay@gmail.com> +# Contributor: Jonathan Liu <net147@gmail.com> +# Contributor: henning mueller <henning@orgizm.net> +# Contributor: s1gma <s1gma@mindslicer.com> +# Contributor: Ahmad24 <myitrayan@gmail.com> +# Contributor: maxrp <maxp@pdx.edu> + +pkgname=gradm +_version=3.1 +_timestamp=201701031918 +pkgver=$_version.$_timestamp +pkgrel=1 +pkgdesc="Administration utility for grsecurity's Role Based Access Control (RBAC)" +arch=(i686 x86_64) +url=https://grsecurity.net/ +license=(GPL2) +depends=(pam) +source=(https://grsecurity.net/stable/$pkgname-$_version-$_timestamp.tar.gz + https://grsecurity.net/stable/$pkgname-$_version-$_timestamp.tar.gz.sig + learn_config + policy) +sha512sums=('3dbf33aff6b723af8f3bf6986fcf5fdab92bc6819b9f06074ec4e8cc52d47c0f9bc64c928d25f537160ecc9e00c3b212dce737214eea280c046c4c4ab2326a77' + 'SKIP' + '2fd1e94e1ea7142ee939611d58d3537d5e5842d5f6d73b8837cc9b6900fb8e34c167ab61cfcde92c045a73bb10de1c841f61a41f3f65fb9def830a81bcb4bc13' + 'a85569f7e950154cd56e1c092dc78f65d01e3f1afd067b9d5398e6bb265aeea144f3ca91f3780abab443a83432712597b9f01bfa7f2c4d7047fd2971b148f767') +validpgpkeys=( + 'DE9452CE46F42094907F108B44D1C0F82525FE49' # Bradley Spengler +) + +prepare() { + cd $pkgname + sed -i -e 's/^CFLAGS :=/CFLAGS +=/' -e 's:sbin:usr/bin:' Makefile +} + +build() { + cd $pkgname + make +} + +package() { + cd $pkgname + make DESTDIR="$pkgdir" install + cp "$srcdir"/{learn_config,policy} "$pkgdir/etc/grsec" + rm -r "$pkgdir/dev" +} |