diff options
author | Timo Teras <timo.teras@iki.fi> | 2010-03-12 11:58:15 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2010-03-12 11:58:15 +0200 |
commit | 651f1f520b769e9bc7379f49a37fc821f2ac6c43 (patch) | |
tree | 69fea1f06c8bf4d972892ad479823b572b82b7e9 /main/oprofile/APKBUILD | |
parent | 4018cbda86cd2249f7f88c5eab297a980988f21e (diff) | |
download | aports-651f1f520b769e9bc7379f49a37fc821f2ac6c43.tar.bz2 aports-651f1f520b769e9bc7379f49a37fc821f2ac6c43.tar.xz |
main/oprofile: new aport
A system level profiler for Linux.
Diffstat (limited to 'main/oprofile/APKBUILD')
-rw-r--r-- | main/oprofile/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/oprofile/APKBUILD b/main/oprofile/APKBUILD new file mode 100644 index 0000000000..9c9e4f8cfe --- /dev/null +++ b/main/oprofile/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Timo Teras <timo.teras@iki.fi> +# Maintainer: Timo Teras <timo.teras@iki.fi> +pkgname=oprofile +pkgver=0.9.6 +pkgrel=0 +pkgdesc="A System Profiler for Linux" +url="http://oprofile.sourceforge.net/" +license="GPL" +depends="" +makedepends="libiconv-dev gettext" +install= +subpackages="$pkgname-doc" +source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + oprofile-pic.patch" + +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + for i in ../*.patch; do + msg "Apply $i" + patch -p1 < $i || return 1 + done +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-kernel-support \ + --with-pic + make -j1 || return 1 + make -j1 DESTDIR="$pkgdir" install + + #install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd + #install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/knockd +} + +md5sums="4e407093ac06200185d5a5e6437d7242 oprofile-0.9.6.tar.gz +e7b80603bc86f120480c3d411d532ab8 oprofile-pic.patch" |