@@ -12,13 +12,73 @@ builds:
12
12
- mips
13
13
gomips :
14
14
- softfloat
15
+
15
16
release :
16
17
github :
17
18
owner : utilitywarehouse
18
19
name : wiresteward
20
+
19
21
archives :
20
22
- builds :
21
23
- main
22
24
format : binary
23
25
files :
24
26
- none*
27
+
28
+ brews :
29
+ - name : wiresteward
30
+ description : Wireguard peer manager
31
+ license : MIT
32
+ folder : Formula
33
+ tap :
34
+ owner : utilitywarehouse
35
+ name : homebrew-tap
36
+ caveats : |
37
+ *********************
38
+ When running the agent via `brew services` place your config file at `/etc/wiresteward/config.json`
39
+ *********************
40
+ To start the agent run:
41
+ brew services start utilitywarehouse/tap/wiresteward
42
+ To stop the agent run:
43
+ brew services stop utilitywarehouse/tap/wiresteward
44
+ To restart the agent run:
45
+ brew services restart utilitywarehouse/tap/wiresteward
46
+ *********************
47
+ To uninstall the agent run the following commands:
48
+ brew services stop utilitywarehouse/tap/wiresteward
49
+ brew uninstall utilitywarehouse/tap/wiresteward
50
+ launchctl remove uk.co.uw.wiresteward
51
+ *********************
52
+ plist : |
53
+ <?xml version="1.0" encoding="UTF-8"?>
54
+ <!DOCTYPE plist PUBLIC "-/Apple/DTD PLIST 1.0/EN" "http:/www.apple.com/DTDs/PropertyList-1.0.dtd">
55
+ <plist version="1.0">
56
+ <dict>
57
+ <key>Label</key>
58
+ <string>uk.co.uw.wiresteward</string>
59
+
60
+ <key>KeepAlive</key>
61
+ <true/>
62
+
63
+ <key>RunAtLoad</key>
64
+ <true/>
65
+
66
+ <key>ProgramArguments</key>
67
+ <array>
68
+ <string>#{bin}/wiresteward</string>
69
+ <string>-agent</string>
70
+ </array>
71
+
72
+ <key>StandardErrorPath</key>
73
+ <string>/var/log/wiresteward.err.log</string>
74
+
75
+ <key>StandardOutPath</key>
76
+ <string>/var/log/wiresteward.log</string>
77
+ </dict>
78
+ </plist>
79
+ service : |
80
+ run "#{bin}/wiresteward", "-agent"
81
+ test : |
82
+ system "#{bin}/wiresteward", "-version"
83
+ install : |
84
+ bin.install "wiresteward"
0 commit comments