summaryrefslogtreecommitdiff
path: root/extra/oprofile
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-17 23:14:29 +0000
committerroot <root@rshg054.dnsready.net>2011-08-17 23:14:29 +0000
commit3413e75c9cdb6c0daf6ddf92f469a2221c94a55b (patch)
treeebc8d673526a7bcca4a4fcd6ed7872baec735f90 /extra/oprofile
parent68b7938bb87c6e91d54e4f35f0223c7237fa53e1 (diff)
Wed Aug 17 23:14:29 UTC 2011
Diffstat (limited to 'extra/oprofile')
-rw-r--r--extra/oprofile/PKGBUILD26
-rw-r--r--extra/oprofile/oprofile.install18
2 files changed, 30 insertions, 14 deletions
diff --git a/extra/oprofile/PKGBUILD b/extra/oprofile/PKGBUILD
index 9a583d0d7..a36ca0995 100644
--- a/extra/oprofile/PKGBUILD
+++ b/extra/oprofile/PKGBUILD
@@ -1,27 +1,25 @@
-# $Id: PKGBUILD 107149 2011-01-21 19:58:21Z eric $
+# $Id: PKGBUILD 135638 2011-08-16 21:35:38Z eric $
# Maintainer : Aaron Griffin <aaron@archlinux.org>
pkgname=oprofile
-pkgver=0.9.6
-pkgrel=3
+pkgver=0.9.7
+pkgrel=1
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"
license=('GPL')
-depends=('popt')
-makedepends=('qt3')
-optdepends=('qt3: for oprof_start gui')
+depends=('popt' 'gcc-libs' 'zlib' 'sh')
+makedepends=('qt')
+optdepends=('qt: for oprof_start gui')
options=('!libtool')
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('4e407093ac06200185d5a5e6437d7242')
-sha1sums=('cc62cc58c574e235bc146c8ddc9d9a9af0972fd1')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('8b5d1d9b65f84420bcc3234777ad3be3')
+sha1sums=('f5befd8aafc77d449e955f0585216f5d7b967de2')
build() {
cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --with-kernel-support \
- --with-x
+ ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
make
}
@@ -29,7 +27,7 @@ package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
-# installing development libraries
+# 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"
install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
diff --git a/extra/oprofile/oprofile.install b/extra/oprofile/oprofile.install
new file mode 100644
index 000000000..025c9725a
--- /dev/null
+++ b/extra/oprofile/oprofile.install
@@ -0,0 +1,18 @@
+post_install(){
+ groupadd -g 492 oprofile &>/dev/null
+ useradd -u 492 -g 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
+}
+
+post_remove(){
+ if getent passwd oprofile >/dev/null 2>&1; then
+ userdel oprofile
+ fi
+ if getent group oprofile >/dev/null 2>&1; then
+ groupdel oprofile
+ fi
+}