summarylogtreecommitdiffstats
path: root/systemtap.install
diff options
context:
space:
mode:
authorChristian Rebischke2018-02-24 20:28:27 +0100
committerChristian Rebischke2018-02-24 20:28:27 +0100
commitc012fdf64ef3a3a105a239574e241e8cbefb29ea (patch)
tree7f1b5304167d90846219fc4338b397526797e468 /systemtap.install
parent68ebb460827c10678fcf49dbddaf03c101dc4fb9 (diff)
downloadaur-c012fdf64ef3a3a105a239574e241e8cbefb29ea.tar.gz
removed the install hooks
See also: https://bugs.archlinux.org/task/56853
Diffstat (limited to 'systemtap.install')
-rw-r--r--systemtap.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/systemtap.install b/systemtap.install
index d168c58fc23..bde565fd1b6 100644
--- a/systemtap.install
+++ b/systemtap.install
@@ -1,4 +1,18 @@
post_install() {
+ getent group stapusr >/dev/null || groupadd -g 156 -r stapusr 2>/dev/null || groupadd -r stapusr
+ getent group stapsys >/dev/null || groupadd -g 157 -r stapsys 2>/dev/null || groupadd -r stapsys
+ getent group stapdev >/dev/null || groupadd -g 158 -r stapdev 2>/dev/null || groupadd -r stapdev
+
+ getent group stapusr >/dev/null && chgrp stapusr /usr/bin/stapbpf
+ chmod 04110 /usr/bin/stapbpf
+
+ getent group stapusr >/dev/null && chgrp stapusr /usr/bin/staprun
+ chmod 04110 /usr/bin/staprun
+
echo "CONFIG_DEBUG_INFO is disabled on default. You need to recompile"
echo "the kernel with CONFIG_DEBUG_INFO enabled."
}
+
+post_upgrade() {
+ post_install $1
+}