Skip to content

Commit

Permalink
opentsdb: rebuild
Browse files Browse the repository at this point in the history
* opentsdb: stop using plist_options
* opentsdb: update license
* opentsdb: stop using plist_options

Closes #121456.

Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: Dawid Dziurla <9713907+dawidd6@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
2 people authored and BrewTestBot committed Jan 25, 2023
1 parent 2bc1e21 commit e467a15
Showing 1 changed file with 8 additions and 34 deletions.
42 changes: 8 additions & 34 deletions Formula/opentsdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Opentsdb < Formula
homepage "http://opentsdb.net/"
url "https://github.com/OpenTSDB/opentsdb/archive/refs/tags/v2.4.1.tar.gz"
sha256 "70456fa8b33a9f0855105422f944d6ef14d077c4b4c9c26f8e4a86f329b247a0"
license "LGPL-2.1"
license "LGPL-2.1-or-later"

livecheck do
url :stable
Expand All @@ -29,8 +29,8 @@ def install
with_env(JAVA_HOME: Language::Java.java_home("1.8")) do
ENV.prepend_path "PATH", Formula["python@3.11"].opt_libexec/"bin"
system "autoreconf", "--force", "--install", "--verbose"
system "./configure", "--disable-silent-rules",
"--prefix=#{prefix}",
system "./configure", *std_configure_args,
"--disable-silent-rules",
"--mandir=#{man}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}/opentsdb"
Expand Down Expand Up @@ -83,37 +83,11 @@ def post_install
end
end

plist_options manual: "#{HOMEBREW_PREFIX}/opt/opentsdb/bin/start-tsdb.sh"

def plist
<<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>OtherJobEnabled</key>
<dict>
<key>#{Formula["hbase"].plist_name}</key>
<true/>
</dict>
</dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/start-tsdb.sh</string>
</array>
<key>WorkingDirectory</key>
<string>#{HOMEBREW_PREFIX}</string>
<key>StandardOutPath</key>
<string>#{var}/opentsdb/opentsdb.log</string>
<key>StandardErrorPath</key>
<string>#{var}/opentsdb/opentsdb.err</string>
</dict>
</plist>
EOS
service do
run opt_bin/"start-tsdb.sh"
working_dir HOMEBREW_PREFIX
log_path var/"opentsdb/opentsdb.log"
error_log_path var/"opentsdb/opentsdb.err"
end

test do
Expand Down

0 comments on commit e467a15

Please sign in to comment.