ScoopInstaller_Main/apache.json
2016-04-15 19:46:44 +10:00

54 lines
1.9 KiB
JSON

{
"homepage": "http://www.apachelounge.com",
"version": "2.4.20",
"license": "Apache 2.0",
"architecture": {
"64bit": {
"url": [
"https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.20-win64-VC14.zip",
"https://raw.githubusercontent.com/MPLew-is/scoop-wamp/master/visual-c-redistributables/14/64-bit/vcruntime140.dll"
],
"hash": [
"sha256:4EC8A8B25F30809A1D8700FBE8CFAA6C1511E10DB3BBD44FC36B206F5C097200",
"sha256:acf65e565021f2017815fc5ec8a3145cf6c15e75c132cf23a378cc943e68327c"
]
},
"32bit": {
"url": [
"https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.20-win32-VC14.zip",
"https://raw.githubusercontent.com/MPLew-is/scoop-wamp/master/visual-c-redistributables/14/32-bit/vcruntime140.dll"
],
"hash": [
"sha256:5EBC9F372E049C6B604A5D8A3EF621B269FBF603D76385578E992CE2856AD748",
"sha256:b7c13f8519340257ba6ae3129afce961f137e394dde3e4e41971b9f912355f5e"
]
}
},
"extract_dir": "Apache24",
"bin": [
"bin\\ab.exe",
"bin\\abs.exe",
"bin\\htcacheclean.exe",
"bin\\htdbm.exe",
"bin\\htdigest.exe",
"bin\\htpasswd.exe",
"bin\\httpd.exe",
"bin\\httxt2dbm.exe",
"bin\\logresolve.exe",
"bin\\rotatelogs.exe"
],
"post_install": "
#Copy needed DLL to bin subdirectory
mv \"$dir\\vcruntime140.dll\" \"$dir\\bin\\vcruntime140.dll\"
# set directory in httpd.conf
$conf = \"$dir/conf/httpd.conf\"
$root=(scoop which httpd | split-path -res -par | split-path -par) -replace '\\\\', '/';
(gc $conf) | % { $_ -replace 'c:/Apache24', \"$root\" } | sc $conf
",
"checkver": {
"url": "http://www.apachelounge.com/download/",
"re": "Apache ([0-9\\.]+) Win32"
}
}