more bins

This commit is contained in:
2017-05-26 11:31:45 +07:00 committed by GitHub
parent 6363533633
commit e7e9054096

View File

@ -13,11 +13,15 @@
} }
}, },
"bin": [ "bin": [
"unbound.ps1" "unbound.ps1",
"create_unbound_ad_servers.cmd",
"unbound_cache.cmd",
"unbound-control-setup.cmd"
], ],
"persist": "service.conf", "persist": "service.conf",
"suggest": { "suggest": {
"openssl": ["openssl", "openssl10x"] "openssl": ["openssl", "openssl10x"],
"wget": ["wget"]
}, },
"checkver": { "checkver": {
"url": "https://unbound.net/download.html", "url": "https://unbound.net/download.html",
@ -37,5 +41,9 @@
} }
}, },
"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", "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)', $pwd) | sc \"$dir\\create_unbound_ad_servers.cmd\"" "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\"
"
} }