PKGBUILDs/community/gradm/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

2014-04-18 01:55:37 +00:00
# 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
2014-07-17 01:15:51 +00:00
_timestamp=201407162022
2014-04-18 01:55:37 +00:00
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
2014-05-29 00:48:13 +00:00
https://grsecurity.net/stable/$pkgname-$_version-$_timestamp.tar.gz.sig
2014-04-18 01:55:37 +00:00
learn_config
policy)
2014-07-17 01:15:51 +00:00
sha256sums=('300d119f584644a4698cf6c9125fa0cd17a7ff00b4f7885fe782828b93881e1b'
2014-05-29 00:48:13 +00:00
'SKIP'
2014-04-18 01:55:37 +00:00
'704ea6ba7f748761735cbe1cf52ef04f53eab1a1e9ea1bdcb6abaaf4a641e44d'
2014-07-17 01:15:51 +00:00
'0d069e28845f789d0e9da82fc6dffa368ab71b2ca4ab37e0d3e3c6951e82d98a')
2014-04-18 01:55:37 +00:00
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"
}