AppArmor userspace tools 2.6.0
authorHarvie <tomas@mudrunka.cz>
Sat, 12 Mar 2011 02:59:30 +0000 (03:59 +0100)
committerHarvie <tomas@mudrunka.cz>
Sat, 12 Mar 2011 02:59:30 +0000 (03:59 +0100)
apparmor/PKGBUILD
apparmor/apparmor.install [new file with mode: 0644]

index e669d4d2adf8c086265bd59d8fcc93a33c85a9a3..5d3380319d0aafa4efe696a02fe89cf523e72913 100644 (file)
@@ -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 (file)
index 0000000..ff8b2d7
--- /dev/null
@@ -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
+}
This page took 0.275478 seconds and 4 git commands to generate.