Dennis Juhler Aagaard 2 éve
szülő
commit
98442c781b

+ 70 - 0
Firefox/Firefox.download.recipe

@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+    <key>Description</key>
+    <string>Download recipe for Firefox. Finds and downloads a Firefox release.
+Some useful values for RELEASE are: 'latest', 'esr-latest', 'beta-latest'.
+LOCALE controls the language localization to be downloded.
+Examples include 'en-US', 'de', 'sv-SE', and 'zh-TW'
+See the following URLs for more info:
+    http://ftp.mozilla.org/pub/firefox/releases/latest/README.txt
+    http://ftp.mozilla.org/pub/firefox/releases/latest-esr/README.txt
+    http://ftp.mozilla.org/pub/firefox/releases/latest-beta/README.txt</string>
+    <key>Identifier</key>
+    <string>de.md.download.firefox-rc-de</string>
+    <key>Input</key>
+    <dict>
+        <key>RELEASE</key>
+        <string>esr-latest</string>
+        <key>LOCALE</key>
+        <string>de</string>
+        <key>NAME</key>
+        <string>Firefox</string>
+        <key>DISABLE_CODE_SIGNATURE_VERIFICATION</key>
+        <false />
+    </dict>
+    <key>MinimumVersion</key>
+    <string>0.4.1</string>
+    <key>Process</key>
+    <array>
+        <dict>
+            <key>Arguments</key>
+            <dict>
+                <key>product_name</key>
+                <string>firefox</string>
+                <key>release</key>
+                <string>%RELEASE%</string>
+                <key>locale</key>
+                <string>%LOCALE%</string>
+            </dict>
+            <key>Processor</key>
+            <string>MozillaURLProvider</string>
+        </dict>
+        <dict>
+            <key>Arguments</key>
+            <dict>
+                <key>filename</key>
+                <string>%NAME%.dmg</string>
+            </dict>
+            <key>Processor</key>
+            <string>URLDownloader</string>
+        </dict>
+        <dict>
+            <key>Processor</key>
+            <string>EndOfCheckPhase</string>
+        </dict>
+        <dict>
+            <key>Processor</key>
+            <string>CodeSignatureVerifier</string>
+            <key>Arguments</key>
+            <dict>
+                <key>input_path</key>
+                <string>%pathname%/Firefox.app</string>
+                <key>requirement</key>
+                <string>anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "43AQ936H96"</string>
+            </dict>
+        </dict>
+    </array>
+</dict>
+</plist>

+ 64 - 0
Firefox/Firefox.munki.recipe

@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+    <key>Description</key>
+    <string>Downloads Firefox disk image and imports into Munki.
+Some useful values for RELEASE are: 'latest', 'esr-latest', 'beta-latest'.
+LOCALE controls the language localization to be downloded.
+Examples include 'en-US', 'de', 'sv-SE', and 'zh-TW'
+See the following URLs for more info:
+    http://ftp.mozilla.org/pub/firefox/releases/latest/README.txt
+    http://ftp.mozilla.org/pub/firefox/releases/latest-esr/README.txt
+    http://ftp.mozilla.org/pub/firefox/releases/latest-beta/README.txt</string>
+    <key>Identifier</key>
+    <string>com.github.autopkg.munki.firefox-rc-en_US</string>
+    <key>Input</key>
+    <dict>
+        <key>MUNKI_REPO_SUBDIR</key>
+        <string>apps/</string>
+        <key>MUNKI_CATEGORY</key>
+        <string>Internettools</string>
+        <key>NAME</key>
+        <string>Firefox</string>
+        <key>pkginfo</key>
+        <dict>
+            <key>catalogs</key>
+            <array>
+                <string>test</string>
+                <string>prod</string>
+            </array>
+            <key>description</key>
+            <string>Mozilla Firefox is a free and open source web browser.</string>
+            <key>display_name</key>
+            <string>Mozilla Firefox</string>
+            <key>name</key>
+            <string>%NAME%</string>
+			<key>category</key>
+			<string>%MUNKI_CATEGORY%</string>
+			<key>developer</key>
+			<string>Mozilla</string>
+            <key>unattended_install</key>
+            <true/>
+        </dict>
+    </dict>
+    <key>MinimumVersion</key>
+    <string>2.0</string>
+    <key>ParentRecipe</key>
+    <string>com.github.autopkg.download.firefox-rc-en_US</string>
+    <key>Process</key>
+    <array>
+        <dict>
+            <key>Arguments</key>
+            <dict>
+                <key>pkg_path</key>
+                <string>%pathname%</string>
+                <key>repo_subdirectory</key>
+                <string>%MUNKI_REPO_SUBDIR%</string>
+            </dict>
+            <key>Processor</key>
+            <string>MunkiImporter</string>
+        </dict>
+    </array>
+</dict>
+</plist>

+ 70 - 0
Firefox/FirefoxSignedPkg.munki.recipe

@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>Identifier</key>
+	<string>local.munki.FirefoxSignedPkg</string>
+	<key>Input</key>
+	<dict>
+		<key>LATEST_RELEASE</key>
+		<string>LATEST_FIREFOX_VERSION</string>
+		<key>LOCALE</key>
+		<string>de</string>
+		<key>MUNKI_REPO_SUBDIR</key>
+		<string>apps/firefox</string>
+		<key>NAME</key>
+		<string>Firefox</string>
+		<key>pkginfo</key>
+		<dict>
+			<key>blocking_applications</key>
+			<array>
+				<string>Firefox.app</string>
+			</array>
+			<key>catalogs</key>
+			<array>
+				<string>prod</string>
+			</array>
+			<key>category</key>
+			<string>Internettools</string>
+			<key>description</key>
+			<string>Mozilla Firefox ist ein kostenloser Webbrowser</string>
+			<key>display_name</key>
+			<string>Mozilla Firefox</string>
+			<key>minimum_os_version</key>
+			<string>10.9</string>
+			<key>name</key>
+			<string>%NAME%</string>
+			<key>unattended_install</key>
+			<true/>
+		</dict>
+	</dict>
+	<key>ParentRecipe</key>
+	<string>com.github.autopkg.munki.FirefoxSignedPkg</string>
+	<key>ParentRecipeTrustInfo</key>
+	<dict>
+		<key>non_core_processors</key>
+		<dict/>
+		<key>parent_recipes</key>
+		<dict>
+			<key>com.github.autopkg.download.FirefoxSignedPkg</key>
+			<dict>
+				<key>git_hash</key>
+				<string>b8ebd97b7fc92cc4a9dc382ccc2ff8090c1b8f21</string>
+				<key>path</key>
+				<string>/Users/Shared/GitRepos/com.github.autopkg.recipes/Mozilla/FirefoxSignedPkg.download.recipe</string>
+				<key>sha256_hash</key>
+				<string>63a854b014f941e7c6a24714eab91310ca0d40b91ab33e609724f24e918be53f</string>
+			</dict>
+			<key>com.github.autopkg.munki.FirefoxSignedPkg</key>
+			<dict>
+				<key>git_hash</key>
+				<string>b8ebd97b7fc92cc4a9dc382ccc2ff8090c1b8f21</string>
+				<key>path</key>
+				<string>/Users/Shared/GitRepos/com.github.autopkg.recipes/Mozilla/FirefoxSignedPkg.munki.recipe</string>
+				<key>sha256_hash</key>
+				<string>3bd2182198bf27c35b13ba84e4bf2dd551045e1eeee682270a5b28d976669985</string>
+			</dict>
+		</dict>
+	</dict>
+</dict>
+</plist>