Skip to content

Commit 42bc4d5

Browse files
committed
Add Brew Formulae
1 parent 02d8475 commit 42bc4d5

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ aagt21compile:
212212
aalt21compile:
213213
ndk-gcc $(ANDROID_API) $(KITKAT_CFLAGS) $(CFLAGS) $(LDFLAGS) -o fsmon-and$(ANDROID_API)-$(NDK_ARCH) $(SOURCES)
214214

215+
brewinstall:
216+
brew reinstall --HEAD ./fsmon.rb
217+
218+
dos:
219+
brew install --build-from-source fsmon.rb
220+
221+
brewcheck:
222+
brew audit --strict fsmon.rb
223+
brew test fsmon
224+
215225
.PHONY: all fsmon clean
216226
.PHONY: install uninstall
217-
.PHONY: and android
227+
.PHONY: and android brewinstall

fsmon.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class Fsmon < Formula
2+
desc "File-system monitor supporting inotify, fanotify, kqueue, fsevents"
3+
homepage "https://github.com/nowsecure/fsmon"
4+
head "https://github.com/nowsecure/fsmon.git", branch: "master"
5+
url "https://github.com/nowsecure/fsmon/archive/refs/tags/1.8.8.tar.gz"
6+
sha256 "b7f9a7310d7721c58e6e5bc432c5b2099be55b374ab9bf5f639420d2b9e0ab0a"
7+
license "MIT"
8+
9+
def install
10+
system "make"
11+
system "cp -f fsmon-macos fsmon"
12+
bin.install "fsmon"
13+
man1.install "fsmon.1"
14+
end
15+
16+
test do
17+
assert_match "Usage:", shell_output("#{bin}/fsmon -h")
18+
end
19+
end

0 commit comments

Comments
 (0)