[arch-commits] Commit in oprofile/trunk (PKGBUILD oprofile.install)
Jan Steffens
heftig at archlinux.org
Thu Jul 28 19:19:26 UTC 2016
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
===================================================================
--- PKGBUILD 2016-07-28 19:16:05 UTC (rev 184572)
+++ PKGBUILD 2016-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.install 2016-07-28 19:16:05 UTC (rev 184572)
+++ oprofile.install 2016-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
-}
More information about the arch-commits
mailing list