aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2012-05-03 10:49:45 +0800
committerMike McQuaid2012-05-03 10:49:45 +0800
commit72346a64f63844226ac58703c7442f930a20e2ec (patch)
treea5a9fc67b956141db756c1effa853d98d9f160da /Library/Formula
parent86cdaf84e37acba1bfc11d8d566c6419777ac8d4 (diff)
downloadhomebrew-72346a64f63844226ac58703c7442f930a20e2ec.tar.bz2
htop-osx: add setuid caveats
From discussion in #11727.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/htop-osx.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Formula/htop-osx.rb b/Library/Formula/htop-osx.rb
index 91104e52b..984ad5ada 100644
--- a/Library/Formula/htop-osx.rb
+++ b/Library/Formula/htop-osx.rb
@@ -12,4 +12,15 @@ class HtopOsx < Formula
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install", "DEFAULT_INCLUDES='-iquote .'"
end
+
+ def caveats; <<-EOS.undent
+ htop-osx requires root privileges to correctly display all running processes.
+ You can either run the program via `sudo` or set the setuid bit:
+
+ sudo chown root:wheel #{bin}/htop
+ sudo chmod u+s #{bin}/htop
+
+ You should be certain that you trust any software you granting root privileges.
+ EOS
+ end
end