pkgname=apparmor
pkgver=2.5.1
-pkgrel=4
+pkgrel=5
pkgdesc="Linux application security framework - mandatory access control for programs"
arch=(i686 x86_64)
license=(GPL)
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ msg2 'Global configuration'
export MAKEFLAGS+=' POD2MAN=/usr/lib/perl5/core_perl/bin/pod2man'
export MAKEFLAGS+=' POD2HTML=/usr/lib/perl5/core_perl/bin/pod2html'
export MAKEFLAGS+=' PROVE=/usr/lib/perl5/core_perl/bin/prove'
export PYTHON='/usr/bin/python2'
+ msg2 'Patching...'
#Patch (maybe we can avoid patching by ./configuring things better)
patch=parser/Makefile; { rm "$patch"
sed -e 's/pdflatex/true/g' > "$patch" #just workaround until we'll get pdflatex package
echo '#!/bin/true' > parser/tst/caching.sh #Can't pass this test with current kernel
- #Build (these sections can be used for splitpkg in future...)
- ( cd parser
+ msg 'Build (these sections can be used for splitpkg in future...)'
+ ( cd parser; msg2 "${PWD##*/}"
make
make install DESTDIR=${pkgdir}
)
- ( cd libraries/libapparmor
+ ( cd libraries/libapparmor; msg2 "${PWD##*/}"
./autogen.sh
./configure --prefix=/usr --with-perl --with-python --with-ruby
make
#FIXME: this file should install automatically:
cp swig/perl/LibAppArmor.pm ${pkgdir}/usr/lib/perl5/vendor_perl/
)
- ( cd utils
+ ( cd utils; msg2 "${PWD##*/}"
make
make install DESTDIR=${pkgdir}
)
- ( cd profiles
+ ( cd profiles; msg2 "${PWD##*/}"
make
make install DESTDIR=${pkgdir}
)
- ( cd deprecated/management/profile-editor
+
+ #FIXME: depends on this package itself (logparse.h,...):
+ #We should build it in splitpkg with proper dependences
+ #Now you can build, install, build and install again to enable:
+ if pacman -Qi apparmor &>/dev/null; then
+
+ ( cd deprecated/management/profile-editor; msg2 "${PWD##*/}"
./macros/autogen.sh
./configure --prefix=/usr
make
make install DESTDIR=${pkgdir}
)
- ( cd deprecated/management/apparmor-dbus
+ ( cd deprecated/management/apparmor-dbus; msg2 "${PWD##*/}"
./autogen.sh
./configure --prefix=/usr
make
make install DESTDIR=${pkgdir}
)
#FIXME: can't build this:
- #( cd deprecated/management/applets/apparmorapplet-gnome
+ #( cd deprecated/management/applets/apparmorapplet-gnome; msg2 "${PWD##*/}"
# ./autogen.sh
# ./configure --prefix=/usr
# make
# make install DESTDIR=${pkgdir}
# )
+
+ fi;
}