-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruptime.rb
34 lines (31 loc) · 1.26 KB
/
ruptime.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Ruptime < Formula
desc "poor man’s ruptime"
homepage "https://wedonthaveaprivacyproblem.com"
url "https://github.com/alexmyczko/ruptime/archive/refs/tags/1.8.tar.gz"
sha256 "c7115c34e11d79d1d0e966516818f3e5f7a0417aadb6cdddfb415cb103f688eb"
license "AGPL-3.0-or-later"
depends_on "xz"
depends_on "memtester"
def install
bin.install "ruptime"
#bin.install "ruptimed"
bin.install_symlink "ruptime" => "rsw"
bin.install_symlink "ruptime" => "rhw"
bin.install_symlink "ruptime" => "runame"
bin.install_symlink "ruptime" => "rbench"
bin.install_symlink "ruptime" => "rboot"
bin.install_symlink "ruptime" => "rdisk"
bin.install_symlink "ruptime" => "rload"
bin.install_symlink "ruptime" => "rnet"
bin.install_symlink "ruptime" => "rac"
bin.install_symlink "ruptime" => "rwho"
man1.install "man/ruptime.1"
#man8.install "man/ruptimed.8"
system "/usr/bin/defaults write ch.aiei.ruptime SERVER bananas.debian.net"
system "/usr/bin/defaults write ch.aiei.ruptime PORT 51300"
system "/usr/bin/defaults write ch.aiei.ruptime KEY PUBLICINTERNETRUPTIMEKEYNOTSUITABLEFORPRIVATEDATAYOUHAVEBEENWARNED"
end
test do
assert_match "SERVER=", shell_output("/usr/bin/defaults read ch.aiei.ruptime")
end
end