[arch-commits] Commit in oprofile/repos (6 files)
Allan McRae
allan at archlinux.org
Sat Dec 5 15:32:39 UTC 2015
Date: Saturday, December 5, 2015 @ 16:32:39
Author: allan
Revision: 148488
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
oprofile/repos/community-staging-i686/
oprofile/repos/community-staging-i686/PKGBUILD
(from rev 148487, oprofile/trunk/PKGBUILD)
oprofile/repos/community-staging-i686/oprofile.install
(from rev 148487, oprofile/trunk/oprofile.install)
oprofile/repos/community-staging-x86_64/
oprofile/repos/community-staging-x86_64/PKGBUILD
(from rev 148487, oprofile/trunk/PKGBUILD)
oprofile/repos/community-staging-x86_64/oprofile.install
(from rev 148487, oprofile/trunk/oprofile.install)
-------------------------------------------+
community-staging-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++
community-staging-i686/oprofile.install | 21 ++++++++++++++
community-staging-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++
community-staging-x86_64/oprofile.install | 21 ++++++++++++++
4 files changed, 126 insertions(+)
Copied: oprofile/repos/community-staging-i686/PKGBUILD (from rev 148487, oprofile/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-05 15:32:39 UTC (rev 148488)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer : Aaron Griffin <aaron at archlinux.org>
+
+pkgname=oprofile
+pkgver=1.1.0
+pkgrel=2
+pkgdesc='System-wide profiler for Linux systems'
+arch=('i686' 'x86_64')
+url="http://oprofile.sourceforge.net"
+license=('GPL')
+depends=('popt' 'gcc-libs' 'zlib' 'sh')
+options=('staticlibs')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+sha1sums=('38c0d8812fe605f6ddd1cd183a482aa7605c0e81')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --with-x
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $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-staging-i686/oprofile.install (from rev 148487, oprofile/trunk/oprofile.install)
===================================================================
--- community-staging-i686/oprofile.install (rev 0)
+++ community-staging-i686/oprofile.install 2015-12-05 15:32:39 UTC (rev 148488)
@@ -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-staging-x86_64/PKGBUILD (from rev 148487, oprofile/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-05 15:32:39 UTC (rev 148488)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer : Aaron Griffin <aaron at archlinux.org>
+
+pkgname=oprofile
+pkgver=1.1.0
+pkgrel=2
+pkgdesc='System-wide profiler for Linux systems'
+arch=('i686' 'x86_64')
+url="http://oprofile.sourceforge.net"
+license=('GPL')
+depends=('popt' 'gcc-libs' 'zlib' 'sh')
+options=('staticlibs')
+install=oprofile.install
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+sha1sums=('38c0d8812fe605f6ddd1cd183a482aa7605c0e81')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --with-x
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $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-staging-x86_64/oprofile.install (from rev 148487, oprofile/trunk/oprofile.install)
===================================================================
--- community-staging-x86_64/oprofile.install (rev 0)
+++ community-staging-x86_64/oprofile.install 2015-12-05 15:32:39 UTC (rev 148488)
@@ -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
+}
More information about the arch-commits
mailing list