Added first apparmor release
authorHarvie <tomas@mudrunka.cz>
Thu, 28 Oct 2010 15:17:47 +0000 (17:17 +0200)
committerHarvie <tomas@mudrunka.cz>
Thu, 28 Oct 2010 15:17:47 +0000 (17:17 +0200)
apparmor/PKGBUILD [new file with mode: 0644]

diff --git a/apparmor/PKGBUILD b/apparmor/PKGBUILD
new file mode 100644 (file)
index 0000000..cfd8583
--- /dev/null
@@ -0,0 +1,50 @@
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer:          Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=apparmor
+pkgver=2.5.1
+pkgrel=1
+pkgdesc="Linux application security framework - mandatory access control for programs"
+arch=(i686 x86_64)
+license=(GPL)
+url='https://launchpad.net/apparmor'
+makedepends=(autoconf make gcc perl)
+#install="${pkgname}.install"
+bigver="$(echo $pkgver | cut -d . -f -2)"
+source=("http://launchpad.net/apparmor/$bigver/$pkgver/+download/apparmor-$pkgver.tar.gz")
+md5sums=('76b37656bf42fedab0d0b9d47e690a8b')
+
+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"
+
+       patch=parser/tst/Makefile; { rm "$patch"
+               sed -e 's/\/usr\/bin\/prove/\/usr\/lib\/perl5\/core_perl\/bin\/prove/g' > "$patch"
+       } < "$patch"
+       patch=parser/Makefile; { rm "$patch"
+               sed -e 's/pdflatex/true/g' > "$patch"
+       } < "$patch"
+       echo '#!/bin/true' > parser/tst/caching.sh #Can't pass this test with current kernel
+
+       #Build
+       ( cd libraries/libapparmor
+               #autoconf
+               #./configure --prefix="${pkgdir}/usr"
+               #make
+               ##make install DESTDIR=${pkgdir}
+               )
+       ( cd parser
+               make
+               make install DESTDIR=${pkgdir}
+               )
+       ( cd utils
+               make
+               make install DESTDIR=${pkgdir}
+               )
+}
This page took 0.09522 seconds and 4 git commands to generate.