From 52442b30a60f3a0dc7bc0eb214d123d001987c83 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 7 Sep 2011 15:14:25 +0000 Subject: Wed Sep 7 15:14:25 UTC 2011 --- extra/oprofile/PKGBUILD | 5 +++-- extra/oprofile/oprofile.install | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'extra/oprofile') diff --git a/extra/oprofile/PKGBUILD b/extra/oprofile/PKGBUILD index a36ca0995..b557d828e 100644 --- a/extra/oprofile/PKGBUILD +++ b/extra/oprofile/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 135638 2011-08-16 21:35:38Z eric $ +# $Id: PKGBUILD 137218 2011-09-06 19:49:42Z eric $ # Maintainer : Aaron Griffin pkgname=oprofile pkgver=0.9.7 -pkgrel=1 +pkgrel=2 pkgdesc="A system-wide profiler for Linux systems, capable of profiling all running code at low overhead" arch=('i686' 'x86_64') url="http://oprofile.sourceforge.net" @@ -26,6 +26,7 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install + install -d "$pkgdir/var/lib/oprofile" # installing development libraries - FS#20089 install -m644 libutil/op_types.h libop/op_sample_file.h libutil/op_list.h libop/op_events.h libop/op_cpu_type.h libop/op_config.h libdb/odb.h "$pkgdir/usr/include" diff --git a/extra/oprofile/oprofile.install b/extra/oprofile/oprofile.install index 025c9725a..5cd3e7e22 100644 --- a/extra/oprofile/oprofile.install +++ b/extra/oprofile/oprofile.install @@ -1,11 +1,14 @@ post_install(){ groupadd -g 492 oprofile &>/dev/null - useradd -u 492 -g oprofile -s /bin/false oprofile &>/dev/null + useradd -u 492 -g oprofile -d /var/lib/oprofile -s /bin/false oprofile &>/dev/null } post_upgrade(){ getent group oprofile >/dev/null 2>&1 || groupadd -g 492 oprofile &>/dev/null - getent passwd oprofile >/dev/null 2>&1 || useradd -u 492 -g oprofile -s /bin/false oprofile &>/dev/null + getent passwd oprofile >/dev/null 2>&1 || useradd -u 492 -g oprofile -d /var/lib/oprofile -s /bin/false oprofile &>/dev/null + if [ "$(vercmp $2 0.9.7-2)" -lt 0 ] ; then + usermod -d /var/lib/oprofile oprofile + fi } post_remove(){ -- cgit v1.2.3-54-g00ecf