pkgname=apparmor
pkgver=2.5.1
-pkgrel=3
+pkgrel=4
pkgdesc="Linux application security framework - mandatory access control for programs"
arch=(i686 x86_64)
license=(GPL)
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- #Patch
- patch=common/Make.rules; { rm "$patch"
- sed -e 's/\/usr\/bin\/pod2man/\/usr\/lib\/perl5\/core_perl\/bin\/pod2man/g' |
- sed -e 's/\/usr\/bin\/pod2html/\/usr\/lib\/perl5\/core_perl\/bin\/pod2html/g' > "$patch"
- } < "$patch"
+ 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'
- patch=parser/tst/Makefile; { rm "$patch"
- sed -e 's/\/usr\/bin\/prove/\/usr\/lib\/perl5\/core_perl\/bin\/prove/g' > "$patch"
- } < "$patch"
+ #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
} < "$patch"
make install DESTDIR=${pkgdir}
)
( cd libraries/libapparmor
- export PYTHON=/usr/bin/python2
./autogen.sh
./configure --prefix=/usr --with-perl --with-python --with-ruby
make
make install DESTDIR=${pkgdir}
+ #FIXME: this file should install automatically:
+ cp swig/perl/LibAppArmor.pm ${pkgdir}/usr/lib/perl5/vendor_perl/
)
( cd utils
make
make
make install DESTDIR=${pkgdir}
)
+ #FIXME: can't build this:
#( cd deprecated/management/applets/apparmorapplet-gnome
# ./autogen.sh
# ./configure --prefix=/usr