Date: Friday, January 21, 2011 @ 14:58:21 Author: eric Revision: 107149
upgpkg: oprofile 0.9.6-3 Added development libraries (close FS#20089), PKGBUILD clean-up Modified: oprofile/trunk/PKGBUILD Deleted: oprofile/trunk/oprofile oprofile/trunk/oprofile.conf ---------------+ PKGBUILD | 24 ++++++++++++++++-------- oprofile | 45 --------------------------------------------- oprofile.conf | 2 -- 3 files changed, 16 insertions(+), 55 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2011-01-21 18:58:13 UTC (rev 107148) +++ PKGBUILD 2011-01-21 19:58:21 UTC (rev 107149) @@ -3,28 +3,36 @@ pkgname=oprofile pkgver=0.9.6 -pkgrel=2 -pkgdesc="a system-wide profiler for Linux systems, capable of profiling all running code at low overhead" +pkgrel=3 +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') -depends=('popt') optdepends=('qt3: for oprof_start gui') +options=('!libtool') source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz) md5sums=('4e407093ac06200185d5a5e6437d7242') -options=('!libtool') +sha1sums=('cc62cc58c574e235bc146c8ddc9d9a9af0972fd1') build() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr \ --mandir=/usr/share/man \ --with-kernel-support \ --with-x - make || return 1 + make } package() { - cd $srcdir/$pkgname-$pkgver - make DESTDIR=$pkgdir install || return 1 + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + +# installing development libraries + 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" + install -m644 libutil/libutil.a "$pkgdir/usr/lib/liboputil.a" + install -m644 libutil++/libutil++.a "$pkgdir/usr/lib/liboputil++.a" } Deleted: oprofile =================================================================== --- oprofile 2011-01-21 18:58:13 UTC (rev 107148) +++ oprofile 2011-01-21 19:58:21 UTC (rev 107149) @@ -1,45 +0,0 @@ -#!/bin/bash -# Contributed by basilburn - -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/conf.d/oprofile - -PID=`pidof -o %PPID /usr/sbin/oprofiled` -case "$1" in - start) - stat_busy "Starting Profiler" - [ -z "$PID" ] && /usr/bin/opcontrol --init && \ - /usr/bin/opcontrol --start $OPTIONS &>/dev/null - if [ $? -gt 0 ]; then - stat_fail - else - echo $PID > /var/run/oprofiled.pid - add_daemon oprofiled - stat_done - fi - ;; - stop) - stat_busy "Stopping Profiler" - [ ! -z "$PID" ] && /usr/bin/opcontrol --shutdown &>/dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm /var/run/oprofiled.pid - rm_daemon oprofiled - stat_done - fi - ;; - restart) - $0 stop - sleep 2 - $0 start - ;; - reset) - /usr/bin/opcontrol --reset - $0 restart - ;; - *) - echo "usage: $0 {start|stop|restart|reset}" -esac -exit 0 Deleted: oprofile.conf =================================================================== --- oprofile.conf 2011-01-21 18:58:13 UTC (rev 107148) +++ oprofile.conf 2011-01-21 19:58:21 UTC (rev 107149) @@ -1,2 +0,0 @@ -# Contributed by basilburn -OPTIONS="--vmlinux=/usr/src/linux/vmlinux"