mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-20 15:41:19 +00:00
54 lines
2.3 KiB
JSON
54 lines
2.3 KiB
JSON
{
|
|
"homepage": "https://unbound.net/",
|
|
"description": "A validating, recursive, caching DNS resolver.",
|
|
"version": "1.9.3",
|
|
"license": "BSD-3-Clause",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://unbound.net/downloads/unbound-1.9.3.zip",
|
|
"hash": "ccdcd3187c87ff07c2281c676e05e2bb5560acb36cf367253f860e2b5cefe450"
|
|
},
|
|
"32bit": {
|
|
"url": "https://unbound.net/downloads/unbound-1.9.3-w32.zip",
|
|
"hash": "0187c88d3533993b66b26a996562b1903fe83c64db8c303109f0ba5b0452411e"
|
|
}
|
|
},
|
|
"bin": [
|
|
"unbound.ps1",
|
|
"create_unbound_ad_servers.cmd",
|
|
"unbound_cache.cmd",
|
|
"unbound-control-setup.cmd"
|
|
],
|
|
"persist": "service.conf",
|
|
"suggest": {
|
|
"openssl": [
|
|
"openssl",
|
|
"openssl10x"
|
|
],
|
|
"wget": "wget"
|
|
},
|
|
"checkver": {
|
|
"url": "https://unbound.net/download.html",
|
|
"re": "Unbound ([\\d.]+) \\(Current version\\)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://unbound.net/downloads/unbound-$version.zip"
|
|
},
|
|
"32bit": {
|
|
"url": "https://unbound.net/downloads/unbound-$version-w32.zip"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$url.sha256"
|
|
}
|
|
},
|
|
"pre_install": "echo \"if (`$args.count -eq 0) {`n `t`Start-Process -WorkingDirectory `\"`$psscriptroot`\" -f unbound.exe -a '-c service.conf'-WindowStyle Hidden`n`tWrite-Host -F Green `\"Unbound started in background.``nRun 'ps -n unbound' to show the processes``nRun 'kill -n unbound' to stop the processes`\"`n} else {`n`t& `$psscriptroot @args `n}\" | out-file $dir\\unbound.ps1",
|
|
"post_install": [
|
|
"(gc \"$dir\\create_unbound_ad_servers.cmd\").Replace('C:\\Program Files (x86)', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\create_unbound_ad_servers.cmd\"",
|
|
"(gc \"$dir\\unbound_cache.cmd\").Replace('C:\\Program Files (x86)', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\unbound_cache.cmd\"",
|
|
"(gc \"$dir\\unbound-control-setup.cmd\").Replace('C:\\Program Files', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\unbound-control-setup.cmd\""
|
|
]
|
|
}
|