pkgname=apparmor
true && pkgname=(apparmor-parser apparmor-libapparmor apparmor-utils apparmor-profiles)
-pkgver=2.5.1
-pkgrel=7
+pkgver=2.6.0
+pkgrel=1
arch=(i686 x86_64)
license=(GPL)
url='https://launchpad.net/apparmor'
groups=(apparmor)
-makedepends=(swig perl python2 ruby wxgtk audit)
+makedepends=(swig perl python2 ruby perl-locale-gettext wxgtk audit)
optdepends=('kernel26>=2.6.36: kernel with AppArmor support')
pacman -Qi apparmor-libapparmor &>/dev/null &&
bigver="$(echo $pkgver | cut -d . -f -2)"
source=("http://launchpad.net/apparmor/$bigver/$pkgver/+download/apparmor-$pkgver.tar.gz")
-md5sums=('76b37656bf42fedab0d0b9d47e690a8b')
+md5sums=('3b4fb4186ac6440a03d8f2dcf188d4b4')
#Configuration
core_perl_dir='/usr/bin/core_perl'
depends=(perl perl-locale-gettext perl-term-readkey perl-file-tail perl-rpc-xml)
optdepends=('perl: many apparmor utilities' 'perl-rpc-xml: more utilities')
provides=(apparmor-notify);
+ install=('apparmor.install');
( cd "${srcroot}/utils"; msg2 "${PWD##*/}"
make
make install DESTDIR=${pkgdir}
--- /dev/null
+post_install() {
+ echo 'Creating /var/log/messages symlink to improve compatibility...'
+ ln -sf messages.log /var/log/messages
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ true
+}