]> granicus.if.org Git - icinga2/commitdiff
Add spec file for Chocolatey
authorGunnar Beutner <gunnar@beutner.name>
Thu, 18 Jun 2015 09:42:33 +0000 (11:42 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Thu, 18 Jun 2015 09:42:33 +0000 (11:42 +0200)
fixes #8503

icinga2.nuspec [new file with mode: 0755]
tools/chocolateyInstall.ps1 [new file with mode: 0755]

diff --git a/icinga2.nuspec b/icinga2.nuspec
new file mode 100755 (executable)
index 0000000..da355c1
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<!-- Do not remove this test for UTF-8: if ??? doesn?t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->\r
+<!--package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"-->\r
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">\r
+  <metadata>\r
+    <!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->\r
+    <id>icinga2</id>\r
+    <title>Icinga2</title>\r
+    <version>2.3.5</version>\r
+    <authors>2015 - The Icinga Project</authors>\r
+    <owners>Martin Schuster</owners>\r
+    <summary>icinga2 - Monitoring Agent for Windows</summary>\r
+    <description>Icinga2, make the way for the next generation </description>\r
+    <projectUrl>http://www.icinga.org</projectUrl>\r
+    <tags>icinga2 agent monitoring</tags>\r
+    <licenseUrl>http://www.icinga.org/icinga/faq</licenseUrl>\r
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>\r
+    <iconUrl>https://www.icinga.org/wp-content/uploads/2015/05/icinga_icon_128x128.png</iconUrl>\r
+    <dependencies>\r
+      <dependency id="DotNet3.5" />\r
+    </dependencies>\r
+  </metadata>\r
+  <files>\r
+    <file src="tools\**" target="tools" />\r
+  </files>\r
+</package>\r
diff --git a/tools/chocolateyInstall.ps1 b/tools/chocolateyInstall.ps1
new file mode 100755 (executable)
index 0000000..4986b67
--- /dev/null
@@ -0,0 +1,7 @@
+$packageName = 'icinga2'\r
+$installerType = 'exe'\r
+$url = 'http://packages.icinga.org/windows/Icinga2-v2.3.5.exe'\r
+$silentArgs = '/S'\r
+$validExitCodes = @(0)\r
+\r
+Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" -validExitCodes $validExitCodes
\ No newline at end of file