summaryrefslogtreecommitdiff
path: root/homebrew/unbound
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/unbound')
-rw-r--r--homebrew/unbound/.beer29
-rw-r--r--homebrew/unbound/.make.sh-auto5
-rw-r--r--homebrew/unbound/_metadata/description1
-rw-r--r--homebrew/unbound/_metadata/homepage1
-rw-r--r--homebrew/unbound/_metadata/name1
-rw-r--r--homebrew/unbound/_metadata/version1
-rwxr-xr-xhomebrew/unbound/download.sh1
7 files changed, 39 insertions, 0 deletions
diff --git a/homebrew/unbound/.beer b/homebrew/unbound/.beer
new file mode 100644
index 000000000..34d3e3766
--- /dev/null
+++ b/homebrew/unbound/.beer
@@ -0,0 +1,29 @@
+{
+ "name": "Unbound",
+ "description": "Validating, recursive, caching DNS resolver",
+ "url": "https://nlnetlabs.nl/downloads/unbound/unbound-1.9.1.tar.gz",
+ "mirror": null,
+ "homepage": "https://www.unbound.net",
+ "depends": [
+ {
+ "depend": "libevent",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "conf = etc/\"unbound/unbound.conf\"",
+ "return unless conf.exist?",
+ "return unless conf.read.include?('username: \"@@HOMEBREW-UNBOUND-USER@@\"')",
+ "inreplace conf, 'username: \"@@HOMEBREW-UNBOUND-USER@@\"',",
+ "\"username: \\\"#{ENV[\"USER\"]}\\\"\""
+ ],
+ "version": "1.9.1",
+ "file": "unbound.rb"
+} \ No newline at end of file
diff --git a/homebrew/unbound/.make.sh-auto b/homebrew/unbound/.make.sh-auto
new file mode 100644
index 000000000..82080eb52
--- /dev/null
+++ b/homebrew/unbound/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+conf = etc/"unbound/unbound.conf"
+return unless conf.exist?
+return unless conf.read.include?('username: "@@HOMEBREW-UNBOUND-USER@@"')
+inreplace conf, 'username: "@@HOMEBREW-UNBOUND-USER@@"', "username: \"#{ENV["USER"]}\""
diff --git a/homebrew/unbound/_metadata/description b/homebrew/unbound/_metadata/description
new file mode 100644
index 000000000..eb1a4abe7
--- /dev/null
+++ b/homebrew/unbound/_metadata/description
@@ -0,0 +1 @@
+Validating, recursive, caching DNS resolver
diff --git a/homebrew/unbound/_metadata/homepage b/homebrew/unbound/_metadata/homepage
new file mode 100644
index 000000000..0ba544651
--- /dev/null
+++ b/homebrew/unbound/_metadata/homepage
@@ -0,0 +1 @@
+https://www.unbound.net
diff --git a/homebrew/unbound/_metadata/name b/homebrew/unbound/_metadata/name
new file mode 100644
index 000000000..0bd79c071
--- /dev/null
+++ b/homebrew/unbound/_metadata/name
@@ -0,0 +1 @@
+Unbound
diff --git a/homebrew/unbound/_metadata/version b/homebrew/unbound/_metadata/version
new file mode 100644
index 000000000..9ab8337f3
--- /dev/null
+++ b/homebrew/unbound/_metadata/version
@@ -0,0 +1 @@
+1.9.1
diff --git a/homebrew/unbound/download.sh b/homebrew/unbound/download.sh
new file mode 100755
index 000000000..3b8384378
--- /dev/null
+++ b/homebrew/unbound/download.sh
@@ -0,0 +1 @@
+wget https://nlnetlabs.nl/downloads/unbound/unbound-1.9.1.tar.gz \ No newline at end of file