<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <options hostArchitectures="i386" customize="never"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	if (system.compareVersions(system.version.ProductVersion, '10.7') &lt; 0 || system.compareVersions(system.version.ProductVersion, '10.8') >= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_0', '10.7');
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function VolumeCheck(prefix) {
	if (system.env.OS_INSTALL == 1) return true;
	var hasOS = system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist");
	if (!hasOS || system.compareVersions(my.target.systemVersion.ProductVersion, '10.7.5') &lt; 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_2', '10.7.5');
		my.result.type = 'Fatal';
		return false;
	}
	if (!hasOS || system.compareVersions(my.target.systemVersion.ProductVersion, '10.7.5') > 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_3', '10.7.5');
		my.result.type = 'Fatal';
		return false;
	}
	my.result.message = system.localizedString('ERROR_4');
	if (!PlistCheck0(my.target.mountpoint) || !PlistCheck1(my.target.mountpoint)) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function PlistCheck0(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductBuildVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '11G1999') > 0) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '11G56') &lt; 0) {
		return false;
	}
	return true;
}
function PlistCheck1(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductBuildVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '11G63') > 0) {
		return false;
	}
	return true;
}
function PlistCheck2(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductBuildVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '11G63') >= 0) {
		return false;
	}
	return true;
}
function PlistCheck3(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/ServerVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductBuildVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '11G56') != 0) {
		return false;
	}
	return true;
}
function FileCheck4(prefix) {
	if (system.files.fileExistsAtPath(prefix + '/System/Library/CoreServices/ServerVersion.plist') == 1) {
		return true;
	}
	return false;
}
</script>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline ui="SoftwareUpdate">
        <line choice="su"/>
    </choices-outline>
    <choices-outline>
        <line choice="su"/>
    </choices-outline>
    <choice id="su" title="SU_TITLE" versStr="SU_VERS" description="SU_DESCRIPTION" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="Mac OS X 10.7.5 Supplemental Update" start_selected="true" visible="PlistCheck0('/') &amp;&amp; PlistCheck2('/')">
        <pkg-ref id="MacOSXUpd10.7.5Supp" auth="Root" packageIdentifier="com.apple.pkg.update.os.10.7.5.supplemental" onConclusion="RequireRestart">MacOSXUpd10.7.5Supp.pkg</pkg-ref>
        <pkg-ref id="MacOSXSrvrUpd10.7.5Supp" auth="Root" packageIdentifier="com.apple.pkg.update.osserver.10.7.5.supplemental" onConclusion="RequireRestart" active="PlistCheck3('/') &amp;&amp; FileCheck4('/')">MacOSXSrvrUpd10.7.5Supp.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie uzupełniające systemu Mac OS X 10.7.5";
"SU_VERS" = "1.0";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich i serwerów";
"SU_DESCRIPTION" = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Style-Type" content="text/css">
		<title></title>
		<style type="text/css">
			body { font: 11px "Lucida Grande"; }
		</style>
	</head>
	<body>
		<p>Uaktualnienie uzupełniające systemu Mac OS X 10.7.5 jest zalecane dla wszystkich użytkowników systemu Mac OS X Lion (10.7.5) i zawiera następujące poprawki:</p>
        <ul>
       	    <li>Rozwiązuje problem, który mógł znacznie wydłużać czas trwania archiwizacji w Time Machine.</li>
	    <li>Usuwa problem, który uniemożliwiał uruchomienie niektórych aplikacji podpisanych identyfikatorem autora (Developer ID).</li>
	</ul>
	</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='MacOSXSrvrUpd10.7.5Supp' installKBytes='74' version='1.0.0.0.1.1306847324'/>
	<pkg-ref id='MacOSXUpd10.7.5Supp' installKBytes='2720' version='1.0.0.0.1.1306847324'/>
</installer-gui-script>