From 401097f5459e31768d9f200bda40a81f4495aa19 Mon Sep 17 00:00:00 2001 From: Harvie Date: Sat, 12 Mar 2011 03:59:30 +0100 Subject: [PATCH] AppArmor userspace tools 2.6.0 --- apparmor/PKGBUILD | 9 +++++---- apparmor/apparmor.install | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 apparmor/apparmor.install diff --git a/apparmor/PKGBUILD b/apparmor/PKGBUILD index e669d4d..5d33803 100644 --- a/apparmor/PKGBUILD +++ b/apparmor/PKGBUILD @@ -6,13 +6,13 @@ pkgbase=apparmor 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 && @@ -22,7 +22,7 @@ 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' @@ -69,6 +69,7 @@ package_apparmor-utils() { 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} diff --git a/apparmor/apparmor.install b/apparmor/apparmor.install new file mode 100644 index 0000000..ff8b2d7 --- /dev/null +++ b/apparmor/apparmor.install @@ -0,0 +1,15 @@ +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 +} -- 2.30.2