[arch-commits] Commit in oprofile/trunk (PKGBUILD oprofile.install oprofile.sysusers)

2018-01-09 Thread Eli Schwartz via arch-commits
Date: Tuesday, January 9, 2018 @ 20:13:14
  Author: eschwartz
Revision: 280759

upgpkg: oprofile 1.2.0-2

migrate to systemd-sysusers

Added:
  oprofile/trunk/oprofile.sysusers
Modified:
  oprofile/trunk/PKGBUILD
Deleted:
  oprofile/trunk/oprofile.install

---+
 PKGBUILD  |9 +
 oprofile.install  |8 
 oprofile.sysusers |1 +
 3 files changed, 6 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-01-09 20:11:02 UTC (rev 280758)
+++ PKGBUILD2018-01-09 20:13:14 UTC (rev 280759)
@@ -3,7 +3,7 @@
 
 pkgname=oprofile
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc='System-wide profiler for Linux systems'
 arch=('x86_64')
 url="http://oprofile.sourceforge.net;
@@ -10,9 +10,10 @@
 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=('7bf28b74953bd042ff23dc53c399be96d37f144c')
+source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+oprofile.sysusers)
+sha1sums=('7bf28b74953bd042ff23dc53c399be96d37f144c'
+  'efcd625073759b69f95cf74dbb4c2839e03af017')
 
 build() {
   cd $pkgname-$pkgver

Deleted: oprofile.install
===
--- oprofile.install2018-01-09 20:11:02 UTC (rev 280758)
+++ oprofile.install2018-01-09 20:13:14 UTC (rev 280759)
@@ -1,8 +0,0 @@
-post_install(){
-  post_upgrade $1 ''
-}
-
-post_upgrade(){
-  getent group oprofile >/dev/null || groupadd -g 492 oprofile &>/dev/null
-  getent passwd oprofile >/dev/null || useradd -u 492 -g oprofile -d 
/var/lib/oprofile -s /bin/false oprofile &>/dev/null
-}

Added: oprofile.sysusers
===
--- oprofile.sysusers   (rev 0)
+++ oprofile.sysusers   2018-01-09 20:13:14 UTC (rev 280759)
@@ -0,0 +1 @@
+u oprofile 492 - /var/lib/oprofile


[arch-commits] Commit in oprofile/trunk (PKGBUILD oprofile.install)

2016-07-28 Thread Jan Steffens
Date: Thursday, July 28, 2016 @ 19:19:26
  Author: heftig
Revision: 184573

1.1.0-3

Modified:
  oprofile/trunk/PKGBUILD
  oprofile/trunk/oprofile.install

--+
 PKGBUILD |3 ++-
 oprofile.install |   19 +++
 2 files changed, 5 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-07-28 19:16:05 UTC (rev 184572)
+++ PKGBUILD2016-07-28 19:19:26 UTC (rev 184573)
@@ -3,7 +3,7 @@
 
 pkgname=oprofile
 pkgver=1.1.0
-pkgrel=2
+pkgrel=3
 pkgdesc='System-wide profiler for Linux systems'
 arch=('i686' 'x86_64')
 url="http://oprofile.sourceforge.net;
@@ -16,6 +16,7 @@
 
 build() {
   cd $pkgname-$pkgver
+  CXXFLAGS+=" -std=gnu++03"
   ./configure --prefix=/usr --with-x
   make
 }

Modified: oprofile.install
===
--- oprofile.install2016-07-28 19:16:05 UTC (rev 184572)
+++ oprofile.install2016-07-28 19:19:26 UTC (rev 184573)
@@ -1,21 +1,8 @@
 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 $1 ''
 }
 
 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
+  getent group oprofile >/dev/null || groupadd -g 492 oprofile &>/dev/null
+  getent passwd oprofile >/dev/null || useradd -u 492 -g oprofile -d 
/var/lib/oprofile -s /bin/false oprofile &>/dev/null
 }
-
-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
-}


[arch-commits] Commit in oprofile/trunk (PKGBUILD oprofile.install)

2011-09-06 Thread Eric Bélanger
Date: Tuesday, September 6, 2011 @ 15:49:02
  Author: eric
Revision: 137217

upgpkg: oprofile 0.9.7-2

Fix oprofile user home directory

Modified:
  oprofile/trunk/PKGBUILD
  oprofile/trunk/oprofile.install

--+
 PKGBUILD |3 ++-
 oprofile.install |7 +--
 2 files changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-09-06 19:33:18 UTC (rev 137216)
+++ PKGBUILD2011-09-06 19:49:02 UTC (rev 137217)
@@ -3,7 +3,7 @@
 
 pkgname=oprofile
 pkgver=0.9.7
-pkgrel=1
+pkgrel=2
 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;
@@ -26,6 +26,7 @@
 package() {
   cd $srcdir/$pkgname-$pkgver
   make DESTDIR=$pkgdir install
+  install -d $pkgdir/var/lib/oprofile
 
 # installing development libraries - FS#20089
   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

Modified: oprofile.install
===
--- oprofile.install2011-09-06 19:33:18 UTC (rev 137216)
+++ oprofile.install2011-09-06 19:49:02 UTC (rev 137217)
@@ -1,11 +1,14 @@
 post_install(){
   groupadd -g 492 oprofile /dev/null
-  useradd -u 492 -g oprofile -s /bin/false 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 21 || groupadd -g 492 oprofile /dev/null
-  getent passwd oprofile /dev/null 21 || useradd -u 492 -g oprofile -s 
/bin/false oprofile /dev/null
+  getent passwd oprofile /dev/null 21 || 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(){



[arch-commits] Commit in oprofile/trunk (PKGBUILD oprofile.install)

2011-08-15 Thread Eric Bélanger
Date: Tuesday, August 16, 2011 @ 00:28:37
  Author: eric
Revision: 135580

upgpkg: oprofile 0.9.7-1

Upstream update, Update qt3 optdepends to qt, Add install scriptlet to 
create oprofile user and group

Added:
  oprofile/trunk/oprofile.install
Modified:
  oprofile/trunk/PKGBUILD

--+
 PKGBUILD |   22 ++
 oprofile.install |   18 ++
 2 files changed, 28 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-08-16 00:20:01 UTC (rev 135579)
+++ PKGBUILD2011-08-16 04:28:37 UTC (rev 135580)
@@ -2,26 +2,24 @@
 # Maintainer : Aaron Griffin aa...@archlinux.org
 
 pkgname=oprofile
-pkgver=0.9.6
-pkgrel=3
+pkgver=0.9.7
+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')
-makedepends=('qt3')
-optdepends=('qt3: for oprof_start gui')
+depends=('popt' 'gcc-libs' 'zlib' 'sh')
+makedepends=('qt')
+optdepends=('qt: for oprof_start gui')
 options=('!libtool')
+install=oprofile.install
 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('4e407093ac06200185d5a5e6437d7242')
-sha1sums=('cc62cc58c574e235bc146c8ddc9d9a9af0972fd1')
+md5sums=('8b5d1d9b65f84420bcc3234777ad3be3')
+sha1sums=('f5befd8aafc77d449e955f0585216f5d7b967de2')
 
 build() {
   cd $srcdir/$pkgname-$pkgver
-  ./configure --prefix=/usr \
---mandir=/usr/share/man \
---with-kernel-support \
---with-x
+  ./configure --prefix=/usr --with-kernel-support --with-x --enable-gui=qt4
   make
 }
 
@@ -29,7 +27,7 @@
   cd $srcdir/$pkgname-$pkgver
   make DESTDIR=$pkgdir install
 
-# installing development libraries
+# installing development libraries - FS#20089
   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

Added: oprofile.install
===
--- oprofile.install(rev 0)
+++ oprofile.install2011-08-16 04:28:37 UTC (rev 135580)
@@ -0,0 +1,18 @@
+post_install(){
+  groupadd -g 492 oprofile /dev/null
+  useradd -u 492 -g oprofile -s /bin/false oprofile /dev/null
+}
+
+post_upgrade(){
+  getent group oprofile /dev/null 21 || groupadd -g 492 oprofile /dev/null
+  getent passwd oprofile /dev/null 21 || useradd -u 492 -g oprofile -s 
/bin/false oprofile /dev/null
+}
+
+post_remove(){
+  if getent passwd oprofile /dev/null 21; then
+userdel oprofile
+  fi
+  if getent group oprofile /dev/null 21; then
+groupdel oprofile
+  fi
+}