1 # Contributor: kang <kang@rsbac.org>
2 pkgname=rsbac-admin-git
5 pkgdesc="RSBAC is a mandatory access control patch for Linux, this package include the required administration tools"
7 url="http://www.rsbac.org"
9 depends=('dialog' 'pam' 'ncurses')
10 makedepends=('git' 'pam' 'libtool' 'ncurses')
14 _gitroot="git://git.rsbac.org/rsbac-admin"
15 _gitname="rsbac-admin"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
39 make PREFIX="/usr" build || return 1
40 make PREFIX="/usr" DESTDIR="$pkgdir/" install