summaryrefslogtreecommitdiff
path: root/extra/oprofile
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-07 12:19:54 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-07 12:19:54 -0300
commit730bda0e79d3e122d665663a18e0c973d7209236 (patch)
tree251b00a85c7bbc2e3ee21102c5c16c1054cf4669 /extra/oprofile
parentcfe7b034671297c6bba5e91867d98e182c683ded (diff)
parentfe769389426a6aa5a2878bf7dcfc6144717e1e93 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/gcolor2/PKGBUILD community/perl-list-moreutils/PKGBUILD extra/boost/PKGBUILD extra/cdrkit/PKGBUILD extra/ettercap/PKGBUILD extra/lame/PKGBUILD extra/sdl/PKGBUILD extra/unzip/PKGBUILD gnome-unstable/at-spi2-atk/PKGBUILD gnome-unstable/at-spi2-core/PKGBUILD gnome-unstable/caribou/PKGBUILD gnome-unstable/empathy/PKGBUILD gnome-unstable/eog/PKGBUILD gnome-unstable/epiphany/PKGBUILD gnome-unstable/glib2/PKGBUILD gnome-unstable/glibmm/PKGBUILD gnome-unstable/gnome-themes-standard/PKGBUILD gnome-unstable/gtkmm3/PKGBUILD gnome-unstable/yelp/PKGBUILD
Diffstat (limited to 'extra/oprofile')
-rw-r--r--extra/oprofile/PKGBUILD5
-rw-r--r--extra/oprofile/oprofile.install7
2 files changed, 8 insertions, 4 deletions
diff --git a/extra/oprofile/PKGBUILD b/extra/oprofile/PKGBUILD
index 52adcf953..e5004d6ca 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 <aaron@archlinux.org>
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' 'mips64el')
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(){