Date: Sunday, January 27, 2013 @ 10:59:19
  Author: andrea
Revision: 83066

archrelease: copy trunk to community-i686, community-x86_64

Added:
  oprofile/repos/community-i686/
  oprofile/repos/community-i686/PKGBUILD
    (from rev 83065, oprofile/trunk/PKGBUILD)
  oprofile/repos/community-i686/oprofile.install
    (from rev 83065, oprofile/trunk/oprofile.install)
  oprofile/repos/community-x86_64/
  oprofile/repos/community-x86_64/PKGBUILD
    (from rev 83065, oprofile/trunk/PKGBUILD)
  oprofile/repos/community-x86_64/oprofile.install
    (from rev 83065, oprofile/trunk/oprofile.install)

-----------------------------------+
 community-i686/PKGBUILD           |   44 ++++++++++++++++++++++++++++++++++++
 community-i686/oprofile.install   |   21 +++++++++++++++++
 community-x86_64/PKGBUILD         |   44 ++++++++++++++++++++++++++++++++++++
 community-x86_64/oprofile.install |   21 +++++++++++++++++
 4 files changed, 130 insertions(+)

Copied: oprofile/repos/community-i686/PKGBUILD (from rev 83065, 
oprofile/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD                             (rev 0)
+++ community-i686/PKGBUILD     2013-01-27 09:59:19 UTC (rev 83066)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer : Aaron Griffin <aa...@archlinux.org>
+
+pkgname=oprofile
+pkgver=0.9.8
+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' 'gcc-libs' 'zlib' 'sh')
+makedepends=('qt')
+optdepends=('qt: for oprof_start gui')
+options=('!libtool')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+sha1sums=('28416b853641f913e5f90954f2e3837efd96f6cd')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make check
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -d "$pkgdir/var/lib/oprofile"
+
+# installing development libraries and headers - FS#20089
+  install -d  "$pkgdir/usr/include/oprofile"
+  install -m644 config.h libop/op_*.h libregex/op_*.h libdb/odb.h \
+    libpp/{locate_images.h,image_errors.h} libutil/op_*.h \
+    libutil++/{op_*.h,bfd_support.h,utility.h,cached_value.h} 
"$pkgdir/usr/include/oprofile"
+  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
+  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
+  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
+  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
+}

Copied: oprofile/repos/community-i686/oprofile.install (from rev 83065, 
oprofile/trunk/oprofile.install)
===================================================================
--- community-i686/oprofile.install                             (rev 0)
+++ community-i686/oprofile.install     2013-01-27 09:59:19 UTC (rev 83066)
@@ -0,0 +1,21 @@
+post_install(){
+  groupadd -g 492 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 -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(){
+  if getent passwd oprofile >/dev/null 2>&1; then
+    userdel oprofile
+  fi
+  if getent group oprofile >/dev/null 2>&1; then
+    groupdel oprofile
+  fi
+}

Copied: oprofile/repos/community-x86_64/PKGBUILD (from rev 83065, 
oprofile/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2013-01-27 09:59:19 UTC (rev 83066)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer : Aaron Griffin <aa...@archlinux.org>
+
+pkgname=oprofile
+pkgver=0.9.8
+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' 'gcc-libs' 'zlib' 'sh')
+makedepends=('qt')
+optdepends=('qt: for oprof_start gui')
+options=('!libtool')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+sha1sums=('28416b853641f913e5f90954f2e3837efd96f6cd')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make check
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -d "$pkgdir/var/lib/oprofile"
+
+# installing development libraries and headers - FS#20089
+  install -d  "$pkgdir/usr/include/oprofile"
+  install -m644 config.h libop/op_*.h libregex/op_*.h libdb/odb.h \
+    libpp/{locate_images.h,image_errors.h} libutil/op_*.h \
+    libutil++/{op_*.h,bfd_support.h,utility.h,cached_value.h} 
"$pkgdir/usr/include/oprofile"
+  install -m644 libop/libop.a libdb/libodb.a "$pkgdir/usr/lib/"
+  install -m644 libabi/libabi.a "$pkgdir/usr/lib/libopabi.a"
+  install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a"
+  install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a"
+}

Copied: oprofile/repos/community-x86_64/oprofile.install (from rev 83065, 
oprofile/trunk/oprofile.install)
===================================================================
--- community-x86_64/oprofile.install                           (rev 0)
+++ community-x86_64/oprofile.install   2013-01-27 09:59:19 UTC (rev 83066)
@@ -0,0 +1,21 @@
+post_install(){
+  groupadd -g 492 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 -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(){
+  if getent passwd oprofile >/dev/null 2>&1; then
+    userdel oprofile
+  fi
+  if getent group oprofile >/dev/null 2>&1; then
+    groupdel oprofile
+  fi
+}

Reply via email to