[arch-commits] Commit in oprofile/trunk (PKGBUILD oprofile.install)

Eric Bélanger eric at archlinux.org
Tue Aug 16 04:28:37 UTC 2011


    Date: Tuesday, August 16, 2011 @ 00:28:37
  Author: eric
Revision: 135580

upgpkg: oprofile 0.9.7-1

	Upstream update, Update qt3 optdepends to qt, Add install scriptlet to create oprofile user and group

Added:
  oprofile/trunk/oprofile.install
Modified:
  oprofile/trunk/PKGBUILD

------------------+
 PKGBUILD         |   22 ++++++++++------------
 oprofile.install |   18 ++++++++++++++++++
 2 files changed, 28 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-08-16 00:20:01 UTC (rev 135579)
+++ PKGBUILD	2011-08-16 04:28:37 UTC (rev 135580)
@@ -2,26 +2,24 @@
 # Maintainer : Aaron Griffin <aaron at 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')
+install=oprofile.install
 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('4e407093ac06200185d5a5e6437d7242')
-sha1sums=('cc62cc58c574e235bc146c8ddc9d9a9af0972fd1')
+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 @@
   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"

Added: oprofile.install
===================================================================
--- oprofile.install	                        (rev 0)
+++ oprofile.install	2011-08-16 04:28:37 UTC (rev 135580)
@@ -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
+}




More information about the arch-commits mailing list