ScoopInstaller_Main/apache.json
2017-06-17 09:00:18 +00:00

57 lines
1.8 KiB
JSON

{
"homepage": "https://www.apachelounge.com",
"version": "2.4.26",
"license": "Apache 2.0",
"architecture": {
"64bit": {
"url": "https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.26-win64-VC14.zip",
"hash": "F76DBFE3761434FEB537B41A5DC7C43F251EC6639EFB976AA9432A4436C7162F"
},
"32bit": {
"url": "https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.26-win32-VC14.zip",
"hash": "3EFAA1D031C881B1167A4D0CC1AE28BF1A10505761B9186E282522B67406D542"
}
},
"extract_dir": "Apache24",
"persist": [
"htdocs",
"conf"
],
"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": "
# 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": "https://www.apachelounge.com/download/",
"re": "Apache ([\\d.]+) Win32"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://www.apachelounge.com/download/VC14/binaries/httpd-$version-win64-VC14.zip"
},
"32bit": {
"url": "https://www.apachelounge.com/download/VC14/binaries/httpd-$version-win32-VC14.zip"
}
},
"hash": {
"url": "$url.txt",
"find": "SHA256-Checksum for: (?:$basename):\\s+([a-fA-F0-9]{64})"
}
}
}