mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# 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>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - comment LIBS mistreatment of ARM in makefile
|
|
|
|
pkgname=gradm
|
|
_version=3.0
|
|
_timestamp=201401291757
|
|
pkgver=3.0.$_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
|
|
learn_config
|
|
policy)
|
|
sha256sums=('9c99714e6d10797a7348c6ffe2561dfcfe5e7659c9d86118d381b8bdb09ae7a6'
|
|
'704ea6ba7f748761735cbe1cf52ef04f53eab1a1e9ea1bdcb6abaaf4a641e44d'
|
|
'c2fb8e696969530c4dc707c59cdc608df6c21d6226979dfeadef92c51deabc5e')
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
sed -i -e 's/^CFLAGS :=/CFLAGS +=/' -e 's:sbin:usr/bin:' Makefile
|
|
sed -i 's/^LIBS/#LIBS/' Makefile
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="$pkgdir" install
|
|
cp "$srcdir"/{learn_config,policy} "$pkgdir/etc/grsec"
|
|
rm -r "$pkgdir/dev"
|
|
}
|