Skip to content
Browse files

Commiting initial package sources: MozillaBuild and a template package.

  • Loading branch information...
0 parents commit f437a57e7627a649bf810d119e32123c62e11ee1 @bhearsum bhearsum committed
2 .hgignore
@@ -0,0 +1,2 @@
+\.exe$
+\.msi$
5 README
@@ -0,0 +1,5 @@
+This repository contains source directories that OPSI packages may be generated out of. Each directory should contain CLIENT_DATA/, OPSI/ directories, and optionally, SERVER_DATA/.
+
+When creating a new product you should make a copy of the newproduct-template directory, and edit those files appropriately.
+
+New packages REQUIRE review before being checked in.
30 mozillabuild/CLIENT_DATA/mozillabuild.au3
@@ -0,0 +1,30 @@
+Opt("WinWaitDelay",100)
+Opt("WinTitleMatchMode",4)
+Opt("WinDetectHiddenText",1)
+Opt("MouseCoordMode",0)
+Run($CmdLine[1])
+WinWait("Mozilla Build Setup: License Agreement","")
+If Not WinActive("Mozilla Build Setup: License Agreement","") Then WinActivate("Mozilla Build Setup: License Agreement","")
+WinWaitActive("Mozilla Build Setup: License Agreement","")
+MouseMove(388,257)
+MouseDown("left")
+MouseUp("left")
+WinWait("Mozilla Build Setup: Installation Folder","")
+If Not WinActive("Mozilla Build Setup: Installation Folder","") Then WinActivate("Mozilla Build Setup: Installation Folder","")
+WinWaitActive("Mozilla Build Setup: Installation Folder","")
+Send("{BACKSPACE}d{SHIFTDOWN};{SHIFTUP}\mozilla-build")
+MouseDown("left")
+MouseUp("left")
+WinWait("Mozilla Build Setup","This will delete")
+If Not WinActive("Mozilla Build Setup","This will delete") Then WinActivate("Mozilla Build Setup","This will delete")
+WinWaitActive("Mozilla Build Setup","This will delete")
+MouseMove(190,88)
+MouseDown("left")
+MouseUp("left")
+WinWait("Mozilla Build Setup: Completed","")
+If Not WinActive("Mozilla Build Setup: Completed","") Then WinActivate("Mozilla Build Setup: Completed","")
+WinWaitActive("Mozilla Build Setup: Completed","")
+MouseMove(362,258)
+MouseDown("left")
+MouseUp("left")
+
9 mozillabuild/CLIENT_DATA/mozillabuild.ins
@@ -0,0 +1,9 @@
+[Initial]
+Message=MozillaBuild 1.3 Installation
+StayOnTop=false
+
+[Aktionen]
+Winbatch_install_mozillabuild
+
+[Winbatch_install_mozillabuild]
+autoit3.exe %SCRIPTPATH%\mozillabuild.au3 %SCRIPTPATH%\MozillaBuildSetup-1.3.exe
26 mozillabuild/OPSI/control
@@ -0,0 +1,26 @@
+[Package]
+version: 1
+depends:
+incremental: False
+
+[Product]
+type: localboot
+; id is a very short name for the package.
+id: mozillabuild
+; name is a longer, more descript name.
+name: MozillaBuild
+description: MozillaBuild 1.3
+advice:
+; You should put the version number of the application here.
+; If this package isn't for installing an application it doesn't really matter.
+version: 1.3
+priority: 0
+licenseRequired: False
+productClasses:
+; Change this to something more sensible.
+setupScript: mozillabuild.ins
+; These are rarely used.
+uninstallScript:
+updateScript:
+alwaysScript:
+onceScript:
9 mozillabuild/OPSI/postinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# postinst script for template
+# This script executes after unpacking files from that archive and registering the product at the server.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory which contains the installed client data
+#
9 mozillabuild/OPSI/preinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# preinst script for template
+# This script executes before that package will be unpacked from its archive file.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory where client data will be installed
+#
6 newproduct-template/CLIENT_DATA/template.ins
@@ -0,0 +1,6 @@
+[Initial]
+Message=Template Product Install
+StayOnTop=false
+
+[Aktionen]
+; Do stuff here
26 newproduct-template/OPSI/control
@@ -0,0 +1,26 @@
+[Package]
+version: 1
+depends:
+incremental: False
+
+[Product]
+type: localboot
+; id is a very short name for the package.
+id: template
+; name is a longer, more descript name.
+name: Template Product
+description: Template Product
+advice:
+; You should put the version number of the application here.
+; If this package isn't for installing an application it doesn't really matter.
+version: 1.0
+priority: 0
+licenseRequired: False
+productClasses:
+; Change this to something more sensible.
+setupScript: template.ins
+; These are rarely used.
+uninstallScript:
+updateScript:
+alwaysScript:
+onceScript:
9 newproduct-template/OPSI/postinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# postinst script for template
+# This script executes after unpacking files from that archive and registering the product at the server.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory which contains the installed client data
+#
9 newproduct-template/OPSI/preinst
@@ -0,0 +1,9 @@
+#! /bin/sh
+#
+# preinst script for template
+# This script executes before that package will be unpacked from its archive file.
+#
+# The following environment variables can be used to obtain information about the current installation:
+# PRODUCT_ID: id of the current product
+# CLIENT_DATA_DIR: directory where client data will be installed
+#
26 sync-binaries
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+RSYNC_COMMAND="rsync --exclude=CVS -av"
+
+binarydir="../opsi-binaries"
+
+if [ ! -d $binarydir ]; then
+ echo "ERROR: $binarydir does not exist, bailing..."
+ exit 1
+fi
+
+for packagedir in `find . -type d -not -name .hg -not -name . -maxdepth 1`; do
+ echo
+ echo "****************************************"
+ echo "Processing $packagedir/"
+ echo "****************************************"
+ if [ ! -d $binarydir/$packagedir/ ]; then
+ echo "WARNING: No matching dir in $binarydir/, skipping..."
+ continue
+ fi
+ echo "Running $RSYNC_COMMAND $binarydir/$packagedir/ $packagedir/CLIENT_DATA/"
+ $RSYNC_COMMAND $binarydir/$packagedir/ $packagedir/CLIENT_DATA/
+ if [[ $? != 0 ]]; then
+ echo "ERROR: rsync failed for $packagedir/"
+ fi
+done

0 comments on commit f437a57

Please sign in to comment.
Something went wrong with that request. Please try again.