Date: Thursday, October 25, 2012 @ 17:03:57 Author: stephane Revision: 169683
archrelease: copy trunk to testing-i686, testing-x86_64 Added: oprofile/repos/testing-i686/ oprofile/repos/testing-i686/PKGBUILD (from rev 169682, oprofile/trunk/PKGBUILD) oprofile/repos/testing-i686/oprofile.install (from rev 169682, oprofile/trunk/oprofile.install) oprofile/repos/testing-x86_64/ oprofile/repos/testing-x86_64/PKGBUILD (from rev 169682, oprofile/trunk/PKGBUILD) oprofile/repos/testing-x86_64/oprofile.install (from rev 169682, oprofile/trunk/oprofile.install) ---------------------------------+ testing-i686/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++ testing-i686/oprofile.install | 21 ++++++++++++++++++ testing-x86_64/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++ testing-x86_64/oprofile.install | 21 ++++++++++++++++++ 4 files changed, 130 insertions(+) Copied: oprofile/repos/testing-i686/PKGBUILD (from rev 169682, oprofile/trunk/PKGBUILD) =================================================================== --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2012-10-25 21:03:57 UTC (rev 169683) @@ -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/testing-i686/oprofile.install (from rev 169682, oprofile/trunk/oprofile.install) =================================================================== --- testing-i686/oprofile.install (rev 0) +++ testing-i686/oprofile.install 2012-10-25 21:03:57 UTC (rev 169683) @@ -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/testing-x86_64/PKGBUILD (from rev 169682, oprofile/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2012-10-25 21:03:57 UTC (rev 169683) @@ -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/testing-x86_64/oprofile.install (from rev 169682, oprofile/trunk/oprofile.install) =================================================================== --- testing-x86_64/oprofile.install (rev 0) +++ testing-x86_64/oprofile.install 2012-10-25 21:03:57 UTC (rev 169683) @@ -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 +}