ScoopInstaller_Main/apache.json
2017-04-14 18:01:22 +02:00

53 lines
1.7 KiB
JSON

{
"homepage": "https://www.apachelounge.com",
"version": "2.4.25",
"license": "Apache 2.0",
"architecture": {
"64bit": {
"url": "https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.25-win64-VC14.zip",
"hash": "E03A43B53F00320DE27D9B7046F5E317D06268795592EF32353CE857D7AA4D76"
},
"32bit": {
"url": "https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.25-win32-VC14.zip",
"hash": "7773F8B02E367D4F7853292DC2B4FCB4085F509C85D9851030CC1F3C453FD4D2"
}
},
"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": "
# 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})"
}
}
}