Added bison to AppArmor dependencies
[mirrors/ArchLinux-Packages.git] / apparmor / PKGBUILD
CommitLineData
742d4cec
H
1# Contributor: Thomas Mudrunka <harvie@@email..cz>
2# Maintainer: Thomas Mudrunka <harvie@@email..cz>
3# You can also contact me on http://blog.harvie.cz/
4
5pkgname=apparmor
6pkgver=2.5.1
7bf59e8a 7pkgrel=5
742d4cec
H
8pkgdesc="Linux application security framework - mandatory access control for programs"
9arch=(i686 x86_64)
10license=(GPL)
11url='https://launchpad.net/apparmor'
69fc7635 12depends=(perl perl-locale-gettext perl-term-readkey perl-file-tail perl-rpc-xml)
57031b20 13makedepends=(autoconf automake make gcc bison swig perl python2 ruby wxgtk audit)
85c6a4bf
H
14optdepends=('perl: many apparmor utilities' 'perl-rpc-xml: more utilities')
15provides=(apparmor-parser libapparmor apparmor-utils apparmor-profiles apparmor-notify
16 apparmor-lib apparmor-perl apparmor-python apparmor-ruby
17 apparmor-dbus apparmor-profile-editor apparmor-applet
18)
742d4cec
H
19bigver="$(echo $pkgver | cut -d . -f -2)"
20source=("http://launchpad.net/apparmor/$bigver/$pkgver/+download/apparmor-$pkgver.tar.gz")
21md5sums=('76b37656bf42fedab0d0b9d47e690a8b')
22
23build() {
24 cd "${srcdir}/${pkgname}-${pkgver}"
25
7bf59e8a 26 msg2 'Global configuration'
50d73033
H
27 export MAKEFLAGS+=' POD2MAN=/usr/lib/perl5/core_perl/bin/pod2man'
28 export MAKEFLAGS+=' POD2HTML=/usr/lib/perl5/core_perl/bin/pod2html'
29 export MAKEFLAGS+=' PROVE=/usr/lib/perl5/core_perl/bin/prove'
30 export PYTHON='/usr/bin/python2'
742d4cec 31
7bf59e8a 32 msg2 'Patching...'
50d73033 33 #Patch (maybe we can avoid patching by ./configuring things better)
742d4cec 34 patch=parser/Makefile; { rm "$patch"
85c6a4bf 35 sed -e 's/pdflatex/true/g' > "$patch" #just workaround until we'll get pdflatex package
742d4cec
H
36 } < "$patch"
37 echo '#!/bin/true' > parser/tst/caching.sh #Can't pass this test with current kernel
38
85c6a4bf 39
7bf59e8a
H
40 msg 'Build (these sections can be used for splitpkg in future...)'
41 ( cd parser; msg2 "${PWD##*/}"
742d4cec
H
42 make
43 make install DESTDIR=${pkgdir}
44 )
7bf59e8a 45 ( cd libraries/libapparmor; msg2 "${PWD##*/}"
85c6a4bf
H
46 ./autogen.sh
47 ./configure --prefix=/usr --with-perl --with-python --with-ruby
48 make
49 make install DESTDIR=${pkgdir}
50d73033
H
50 #FIXME: this file should install automatically:
51 cp swig/perl/LibAppArmor.pm ${pkgdir}/usr/lib/perl5/vendor_perl/
85c6a4bf 52 )
7bf59e8a 53 ( cd utils; msg2 "${PWD##*/}"
742d4cec
H
54 make
55 make install DESTDIR=${pkgdir}
56 )
7bf59e8a 57 ( cd profiles; msg2 "${PWD##*/}"
85c6a4bf
H
58 make
59 make install DESTDIR=${pkgdir}
60 )
7bf59e8a
H
61
62 #FIXME: depends on this package itself (logparse.h,...):
63 #We should build it in splitpkg with proper dependences
64 #Now you can build, install, build and install again to enable:
65 if pacman -Qi apparmor &>/dev/null; then
66
67 ( cd deprecated/management/profile-editor; msg2 "${PWD##*/}"
85c6a4bf
H
68 ./macros/autogen.sh
69 ./configure --prefix=/usr
70 make
71 make install DESTDIR=${pkgdir}
72 )
7bf59e8a 73 ( cd deprecated/management/apparmor-dbus; msg2 "${PWD##*/}"
85c6a4bf
H
74 ./autogen.sh
75 ./configure --prefix=/usr
76 make
77 make install DESTDIR=${pkgdir}
78 )
50d73033 79 #FIXME: can't build this:
7bf59e8a 80 #( cd deprecated/management/applets/apparmorapplet-gnome; msg2 "${PWD##*/}"
85c6a4bf
H
81 # ./autogen.sh
82 # ./configure --prefix=/usr
83 # make
84 # make install DESTDIR=${pkgdir}
85 # )
7bf59e8a
H
86
87 fi;
742d4cec 88}
This page took 0.152852 seconds and 4 git commands to generate.