ScoopInstaller_Main/unbound.json
2018-03-15 11:00:17 +00:00

55 lines
2.3 KiB
JSON

{
"homepage": "https://unbound.net/",
"version": "1.7.0",
"license": "BSD",
"architecture": {
"64bit": {
"url": "https://unbound.net/downloads/unbound-1.7.0.zip",
"hash": "80f851a9212055ec27ca04bb2a35e3f1d2b5fa107dd06f77d9bb659c1375465e"
},
"32bit": {
"url": "https://unbound.net/downloads/unbound-1.7.0-w32.zip",
"hash": "fd4d2d7020a20f4f42863aca212dcf5d3abf8d0f7ece41b8e3f0f86e4a74eb9d"
}
},
"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": "\\(currently ([\\d.]+)\\)"
},
"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\"
"
}