homebrew-core/Formula/backupninja.rb

48 lines
2.1 KiB
Ruby

class Backupninja < Formula
desc "Backup automation tool"
homepage "https://0xacab.org/riseuplabs/backupninja"
url "https://sourcearchive.raspbian.org/main/b/backupninja/backupninja_1.1.0.orig.tar.gz"
mirror "https://debian.ethz.ch/ubuntu/ubuntu/pool/universe/b/backupninja/backupninja_1.1.0.orig.tar.gz"
sha256 "abe444d0c7520ede7847b9497da4b1253a49579f59293b043c47b1dd9833280a"
license "GPL-2.0"
livecheck do
url "https://sourcearchive.raspbian.org/main/b/backupninja/"
regex(/href=.*?backupninja[._-]v?(\d+(?:\.\d+)+)\.orig\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "87d0526c41bc181f8c0064bfa5807572d4d4f7cf6dc134ef895e146e16d48558"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "afe1343c5eb5d63d9aa242b75965b90f6ee749283b04e9f51db125085d0caec5"
sha256 cellar: :any_skip_relocation, monterey: "b64703392bc6668074756ec577a8ba62a5c9d67704a17153061fa81bb104f65a"
sha256 cellar: :any_skip_relocation, big_sur: "4e0e81d5f30ac2a634fb6ac26c3d9efcc168b810ebe07eefc899411feda1710a"
sha256 cellar: :any_skip_relocation, catalina: "10006896f517296c2a62d1f510d3795afa2777f24d401206cfb69ce06bdf5d3c"
sha256 cellar: :any_skip_relocation, mojave: "39df0693351a58ac9f406d6c16ab9c15ddb5d96ddf7ac9e98cf94061ccffe9a8"
sha256 cellar: :any_skip_relocation, high_sierra: "39df0693351a58ac9f406d6c16ab9c15ddb5d96ddf7ac9e98cf94061ccffe9a8"
sha256 cellar: :any_skip_relocation, sierra: "071ac37b853475ae44c4b3dde995d694a5fce322e68d7eeb39eb52a85c781cea"
sha256 cellar: :any_skip_relocation, x86_64_linux: "322a0ff49ad63c3960f46ef07b5326b0d7e31e737009bb560bcc6ed40caed591"
end
depends_on "bash"
depends_on "dialog"
depends_on "gawk"
skip_clean "etc/backup.d"
def install
system "./configure", "--disable-silent-rules",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}"
system "make", "install", "SED=sed"
end
def post_install
(var/"log").mkpath
end
test do
assert_match "root", shell_output("#{sbin}/backupninja -h", 1)
end
end