move to new buildsystem and do devel xmlconfig
This commit is contained in:
parent
83b4e5a42a
commit
3b0be5f87b
@ -1 +0,0 @@
|
||||
This dir should contain custom Innunet config.XML
|
@ -28,6 +28,25 @@ set $INST_architecture$ = GetProductProperty("install_architecture","system spec
|
||||
|
||||
Set $LogDir$ = "%SystemDrive%\tmp"
|
||||
|
||||
DevVar $agent_scansettings_clamav_devInit$
|
||||
DevVar $agent_scansettings_clamav_enable$
|
||||
DevVar $agent_scansettings_clamav_updater_enable$
|
||||
DevVar $agent_scansettings_clamav_options_ondemand_scanarchives$
|
||||
DevVar $agent_scansettings_clamav_options_ondemand_scanpacked$
|
||||
DevVar $agent_scansettings_tetra_options_ondemand_scanarchives$
|
||||
DevVar $agent_scansettings_tetra_options_ondemand_scanpacked$
|
||||
|
||||
|
||||
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
||||
; and adds the following variables:
|
||||
; from builder-product.cfg : all variables definded by attribute WINST[index]
|
||||
; from builder-product.cfg : VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE
|
||||
; from opsi-builder.cfg : CREATOR_TAG CREATOR_NAME CREATOR_EMAIL
|
||||
; auto generated winst-variables
|
||||
; $IconFile$: path to product picture
|
||||
;
|
||||
@@BUILDER_VARIABLES@@
|
||||
|
||||
; ----------------------------------------------------------------
|
||||
; - Please edit the following values -
|
||||
; ----------------------------------------------------------------
|
||||
@ -43,6 +62,34 @@ Set $LicenseRequired$ = "false"
|
||||
Set $LicensePool$ = "p_" + $ProductId$
|
||||
; ----------------------------------------------------------------
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_devInit$ = GetProductProperty("agent_scansettings_clamav_devInit", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_enable$ = GetProductProperty("agent_scansettings_clamav_enable", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_updater_enable$ = GetProductProperty("agent_scansettings_clamav_updater_enable", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_options_ondemand_scanarchives$ = GetProductProperty("agent_scansettings_clamav_options_ondemand_scanarchives", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_options_ondemand_scanpacked$ = GetProductProperty("agent_scansettings_clamav_options_ondemand_scanpacked", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_tetra_options_ondemand_scanarchives$ = GetProductProperty("agent_scansettings_tetra_options_ondemand_scanarchives", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_tetra_options_ondemand_scanpacked$ = GetProductProperty("agent_scansettings_tetra_options_ondemand_scanpacked", "1")
|
||||
|
||||
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
||||
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
|
||||
isFatalError
|
||||
@ -74,6 +121,34 @@ else
|
||||
Registry_install /32Bit
|
||||
comment "Create shortcuts"
|
||||
LinkFolder_install
|
||||
if ($agent_scansettings_clamav_devInit$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_devInit_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_enable$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_enable_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_updater_enable$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_updater_enable_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_options_ondemand_scanarchives$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_options_ondemand_scanarchives_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_options_ondemand_scanpacked$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_options_ondemand_scanpacked_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_tetra_options_ondemand_scanarchives$ = "1")
|
||||
Dosbatch_agent_scansettings_tetra_options_ondemand_scanarchives_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_tetra_options_ondemand_scanpacked$ = "1")
|
||||
Dosbatch_agent_scansettings_tetra_options_ondemand_scanpacked_32
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||||
@ -91,17 +166,68 @@ else
|
||||
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_devInit_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/defInit" -v $agent_scansettings_clamav_devInit$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_enable_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/enable" -v $agent_scansettings_clamav_enable$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_updater_enable_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/updater/enable" -v $agent_scansettings_clamav_updater_enable$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_updater_enable_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/updater/enable" -v $agent_scansettings_clamav_updater_enable$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_options_ondemand_scanarchives_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/options/ondemand/scanarchives" -v $agent_scansettings_clamav_options_ondemand_scanarchives$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_options_ondemand_scanpacked_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/options/ondemand/scanpacked" -v $agent_scansettings_clamav_options_ondemand_scanpacked$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_tetra_options_ondemand_scanarchives_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/tetra/options/ondemand/scanarchives" -v $agent_scansettings_tetra_options_ondemand_scanarchives$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_tetra_options_ondemand_scanpacked_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/tetra/options/ondemand/scanpacked" -v $agent_scansettings_tetra_options_ondemand_scanpacked$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
;/config/agent/scansettings/ethos/enable
|
||||
;/config/agent/scansettings/spero/enable
|
||||
;/config/agent/scansettings/action/malware
|
||||
;/config/agent/scansettings/action/suspicious
|
||||
;/config/agent/driver/protmode/active
|
||||
;/config/agent/driver/protmode/file
|
||||
;/config/agent/driver/protmode/process
|
||||
;/config/agent/cloud/upload/enabled
|
||||
;/config/ui/notification/verbose
|
||||
;/config/ui/notification/gaming
|
||||
;/config/ui/notification/cloud
|
||||
;/config/ui/banner/currentfile
|
||||
;/config/ui/banner/lastmod
|
||||
;/config/updater/lastupdatechecked
|
||||
|
||||
|
||||
[Winbatch_install_32]
|
||||
; Choose one of the following examples as basis for your installation
|
||||
; You can use $LicenseKey$ var to pass a license key to the installer
|
||||
;
|
||||
; === Nullsoft Scriptable Install System ================================================================
|
||||
"%ScriptPath%\X86FILE" /S
|
||||
"$Install32Exe$" /S
|
||||
|
||||
[Files_install_32]
|
||||
; Example of recursively copying some files into the installation directory:
|
||||
;
|
||||
copy -s "%ScriptPath%\custom\*.*" "$InstallDir32$"
|
||||
;copy -s "%ScriptPath%\custom\*.*" "$InstallDir32$"
|
||||
|
||||
[Winbatch_install_64]
|
||||
; Choose one of the following examples as basis for your installation
|
||||
@ -109,12 +235,12 @@ copy -s "%ScriptPath%\custom\*.*" "$InstallDir32$"
|
||||
;
|
||||
; === MSI package =======================================================================================
|
||||
; You may use the parameter PIDKEY=$Licensekey$
|
||||
"%ScriptPath%\AMD64FILE" /S
|
||||
"$Install64Exe$" /S
|
||||
|
||||
[Files_install_64]
|
||||
; Example of recursively copying some files into the installation directory:
|
||||
;
|
||||
copy -s "%ScriptPath%\custom\*.*" "$InstallDir64$"
|
||||
;copy -s "%ScriptPath%\custom\*.*" "$InstallDir64$"
|
||||
|
||||
[Registry_install]
|
||||
; Example of setting some values of an registry key:
|
||||
|
@ -26,6 +26,16 @@ set $INST_architecture$ = GetProductProperty("install_architecture","system spec
|
||||
|
||||
Set $LogDir$ = "%SystemDrive%\tmp"
|
||||
|
||||
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
||||
; and adds the following variables:
|
||||
; from builder-product.cfg : all variables definded by attribute WINST[index]
|
||||
; from builder-product.cfg : VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE
|
||||
; from opsi-builder.cfg : CREATOR_TAG CREATOR_NAME CREATOR_EMAIL
|
||||
; auto generated winst-variables
|
||||
; $IconFile$: path to product picture
|
||||
;
|
||||
@@BUILDER_VARIABLES@@
|
||||
|
||||
; ----------------------------------------------------------------
|
||||
; - Please edit the following values -
|
||||
; ----------------------------------------------------------------
|
||||
|
@ -1 +0,0 @@
|
||||
287b317a3e4da4092bee4d17d33136104e45c010 /usr/portage/distfiles/ClamAV-Brought-into-Immunet-s-Cloud-2.jpg
|
1
IMPLogo_full_aspect_medium.jpg.sha1sum
Normal file
1
IMPLogo_full_aspect_medium.jpg.sha1sum
Normal file
@ -0,0 +1 @@
|
||||
708a8a4f0b2763c93c68059402e44f56537f7bf5 /home/mario/.opsi-dist-cache/immunet-3.0.5.7688//IMPLogo_full_aspect_medium.jpg
|
169
OPSI/control
169
OPSI/control
@ -35,3 +35,172 @@ action: setup
|
||||
requiredProduct: aio
|
||||
requiredStatus: installed
|
||||
requirementType: before
|
||||
|
||||
[ProductDependency]
|
||||
action: setup
|
||||
requiredProduct: xmlstarlet
|
||||
requiredStatus: installed
|
||||
requirementType: before
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_clamav_devInit
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Activate ClamAV Devs
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_clamav_enable
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Activate ClamAV
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_clamav_updater_enable
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Enable autoupdate of ClamAV
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_clamav_options_ondemand_scanarchives
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Clamav Scan Archives
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_clamav_options_ondemand_scanpacked
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: ClamAV Scan Packed
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_tetra_options_ondemand_scanarchives
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Tetra Scan Archives
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_tetra_options_ondemand_scanpacked
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Tetra Scan Packed
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_ethos_enable
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Activate Ethos Scan
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_spero_enable
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Activate Spero Scan
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_action_malware
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Enable Scan for Malware
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_scansettings_action_suspicious
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Enable Scan for Suspicious
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_driver_protmode_active
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Activate Protection
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_driver_protmode_file
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Activate File Protect
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_driver_protmode_process
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Activate Process Protect
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: agent_cloud_upload_enable
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Enable Upload to Cloud
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: ui_notification_verbose
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Enable Verbose Notification
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: ui_notification_gaming
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Enable Gaming Notification
|
||||
values: ["0", "1"]
|
||||
default: ["0"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: ui_notification_cloud
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: Enable Cloud Notification
|
||||
values: ["0", "1"]
|
||||
default: ["1"]
|
||||
|
||||
|
28
Testing.txt
Normal file
28
Testing.txt
Normal file
@ -0,0 +1,28 @@
|
||||
*** Qualitiymanagement/Testing procedure
|
||||
|
||||
- Product:
|
||||
- Name: productname
|
||||
- Version: xxx
|
||||
- Release: yyyy
|
||||
|
||||
- Environment
|
||||
- OS: Native windows XP-32Bit installation
|
||||
- Preinstalled packages: None (also no aio)
|
||||
- Files used while testing:
|
||||
File1: http://domain.de/file.ext
|
||||
|
||||
- Testing process:
|
||||
OPSI-action:
|
||||
- Installation (without dependencies like AIO/Firefox): ??
|
||||
Result:
|
||||
- File extensions related to program: ??
|
||||
- Start menu entry: ??
|
||||
- Starting/using program: viewer works, File1 is shown correctly: ??
|
||||
|
||||
OPSI-action:
|
||||
- Uninstall
|
||||
Result:
|
||||
- File extensions related to program: unrelated: ??
|
||||
- Start menu entry: none: ??
|
||||
|
||||
|
122
build.sh
122
build.sh
@ -1,122 +0,0 @@
|
||||
#!/bin/sh
|
||||
PN="immunet"
|
||||
VERSION="3.0.5.7688"
|
||||
UVERSION="3.0.5"
|
||||
RELEASE="4"
|
||||
PRIORITY="0"
|
||||
ADVICE=""
|
||||
TYPE="testing"
|
||||
# all downloads should not have any traling parameters like ?downlaodid=1234 .....(should rewrite in python)
|
||||
ICON="http://i1-news.softpedia-static.com/images/news2/ClamAV-Brought-into-Immunet-s-Cloud-2.jpg"
|
||||
X86="http://download.immunet.com/binaries/immunet/bin/protect-en-us-${VERSION}-32-tcp.exe"
|
||||
AMD64="http://download.immunet.com/binaries/immunet/bin/protect-en-us-${VERSION}-64-tcp.exe"
|
||||
ICONFILE=${ICON##*/}
|
||||
X86FILE=${X86##*/}
|
||||
AMD64FILE=${AMD64##*/}
|
||||
|
||||
if [ -e /var/tmp/opsi/upload/$TYPE/${PN}_${VERSION}-${RELEASE}.opsi ]
|
||||
then
|
||||
echo "package ${PN}_${VERSION}-${RELEASE}.opsi already generated"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OUT=$(mktemp -d /tmp/output.XXXXXXXXXX) || { echo "Failed to create temp dir"; exit 1; }
|
||||
mkdir $OUT/$PN
|
||||
cp -Rv OPSI CLIENT_DATA $OUT/$PN
|
||||
unix2dos $OUT/$PN/CLIENT_DATA/*
|
||||
|
||||
if [ -e /usr/portage/distfiles/$ICONFILE ]
|
||||
then
|
||||
if [ -e $ICONFILE.sha1sum ]
|
||||
then
|
||||
SHA1SUM=`cat $ICONFILE.sha1sum`
|
||||
CHECKSUM=`sha1sum /usr/portage/distfiles/$ICONFILE`
|
||||
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
||||
then
|
||||
convert -colorspace rgb /usr/portage/distfiles/$ICONFILE -transparent white -background transparent -resize 160x160\> \
|
||||
-size 160x160 xc:transparent +swap -gravity center -composite $OUT/$PN/CLIENT_DATA/$PN.png
|
||||
else
|
||||
echo "The checksums do not match."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "You need to create the checksums with: sha1sum /usr/portage/distfiles/$ICONFILE > $ICONFILE.sha1sum"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Downloading file"
|
||||
wget -P /usr/portage/distfiles/ $ICON
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -e /usr/portage/distfiles/$X86FILE ]
|
||||
then
|
||||
if [ -e $X86FILE.sha1sum ]
|
||||
then
|
||||
SHA1SUM=`cat $X86FILE.sha1sum`
|
||||
CHECKSUM=`sha1sum /usr/portage/distfiles/$X86FILE`
|
||||
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
||||
then
|
||||
cp /usr/portage/distfiles/$X86FILE $OUT/$PN/CLIENT_DATA
|
||||
else
|
||||
echo "The checksums do not match."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "You need to create the checksums with: sha1sum /usr/portage/distfiles/$X86FILE > $X86FILE.sha1sum"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Downloading file"
|
||||
wget -P /usr/portage/distfiles/ $X86
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -e /usr/portage/distfiles/$AMD64FILE ]
|
||||
then
|
||||
if [ -e $AMD64FILE.sha1sum ]
|
||||
then
|
||||
SHA1SUM=`cat $AMD64FILE.sha1sum`
|
||||
CHECKSUM=`sha1sum /usr/portage/distfiles/$AMD64FILE`
|
||||
if [ "$CHECKSUM" = "$SHA1SUM" ]
|
||||
then
|
||||
cp /usr/portage/distfiles/$AMD64FILE $OUT/$PN/CLIENT_DATA
|
||||
else
|
||||
echo "The checksums do not match."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "You need to create the checksums with: sha1sum /usr/portage/distfiles/$AMD64FILE > $AMD64FILE.sha1sum"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Downloading file"
|
||||
wget -P /usr/portage/distfiles/ $AMD64
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sed -e "s!VERSION!$VERSION!g" -e "s!RELEASE!$RELEASE!g" -e "s!PRIORITY!$PRIORITY!g" -e "s!ADVICE!$ADVICE!g" -i $OUT/$PN/OPSI/control
|
||||
sed -e "s!X86FILE!$X86FILE!g" -e "s!AMD64FILE!$AMD64FILE!g" -i $OUT/$PN/CLIENT_DATA/setup.ins
|
||||
sed -e "s!UVERSION!$UVERSION!g" -i $OUT/$PN/CLIENT_DATA/delsub.ins
|
||||
|
||||
if test -d ".git"; then
|
||||
git log --date-order --date=short | \
|
||||
sed -e '/^commit.*$/d' | \
|
||||
awk '/^Author/ {sub(/\\$/,""); getline t; print $0 t; next}; 1' | \
|
||||
sed -e 's/^Author: //g' | \
|
||||
sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' | \
|
||||
sed -e 's/^\(.*\) \(\)\t\(.*\)/\3 \1 \2/g' > $OUT/$PN/OPSI/changelog.txt
|
||||
else
|
||||
echo "No git repository present."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pushd $OUT
|
||||
opsi-makeproductfile -v $OUT/$PN
|
||||
popd
|
||||
|
||||
mkdir -p /var/tmp/opsi/upload/$TYPE/
|
||||
cp -afv $OUT/*.opsi /var/tmp/opsi/upload/$TYPE/
|
||||
|
||||
#rm -rf $OUT
|
||||
|
31
builder-product.cfg
Normal file
31
builder-product.cfg
Normal file
@ -0,0 +1,31 @@
|
||||
############################
|
||||
# Setup product information
|
||||
############################
|
||||
VENDOR="immunet.com"
|
||||
PN="immunet"
|
||||
VERSION="3.0.5.7688"
|
||||
RELEASE="3"
|
||||
PRIORITY="0"
|
||||
ADVICE=""
|
||||
|
||||
# TYPE - defines, if the install files are public or restricted.
|
||||
# Valid value: restricted | public
|
||||
TYPE="public"
|
||||
|
||||
|
||||
DL_FILE[0]="IMPLogo_full_aspect_medium.jpg"
|
||||
DL_SOURCE[0]="http://www.shareasale.com/images/IMPLogo_full_aspect_medium.jpg"
|
||||
|
||||
DL_FILE[1]="protect-en-us-${VERSION}-32-tcp.exe"
|
||||
DL_SOURCE[1]="http://download.immunet.com/binaries/immunet/bin/protect-en-us-${VERSION}-32-tcp.exe"
|
||||
DL_ARCH[1]="X86"
|
||||
DL_WINST_NAME[1]=itWESS
|
||||
|
||||
DL_FILE[2]="protect-en-us-${VERSION}-64-tcp.exe"
|
||||
DL_SOURCE[2]="http://download.immunet.com/binaries/immunet/bin/protect-en-us-${VERSION}-64-tcp.exe"
|
||||
DL_ARCH[2]="X86_64"
|
||||
DL_WINST_NAME[2]=itWESS64
|
||||
|
||||
# File array index for the image showing while installing the program
|
||||
ICON_DL_INDEX=0
|
||||
|
25
builder-targets-cb.sh
Normal file
25
builder-targets-cb.sh
Normal file
@ -0,0 +1,25 @@
|
||||
##############################################################################
|
||||
# This optional file "builder-targets-cb.sh" will be called by builder.sh
|
||||
#
|
||||
# The targets will be called from thde opsi-builder using the following
|
||||
# order: config, prepare, retrieve, create, package, publish, commit, cleanup
|
||||
# You can overwrite the target functions in builder-targets-cb.sh
|
||||
#
|
||||
# You can define callback functions. The functions are called from
|
||||
# opsi-builder within processing a target
|
||||
# cb_package_makeproductfile
|
||||
#
|
||||
# You can use every variable defined in any configuration file or by
|
||||
# the defined builder script itself. Also, calling the predefined
|
||||
# targets builder_<targetname> is possible.
|
||||
#
|
||||
# Abstract:
|
||||
# target order: config, prepare, retrieve, create, package, publish, commit, cleanup
|
||||
# callbacks: <none>
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
function cleanup() {
|
||||
echo "Cleanup"
|
||||
builder_cleanup
|
||||
}
|
113
local.xml
Normal file
113
local.xml
Normal file
@ -0,0 +1,113 @@
|
||||
<config>
|
||||
<exclusions>
|
||||
<info>
|
||||
<item>256|2|1|0|CSIDL_SYSTEM\CatRoot2</item>
|
||||
<item>256|2|1|0|CSIDL_WINDOWS\Prefetch</item>
|
||||
<item>256|2|1|0|CSIDL_BASEDIR</item>
|
||||
<item>256|2|1|0|CSIDL_APPDATA\Avira\AntiVir Desktop\TEMP</item>
|
||||
<item>256|2|1|0|CSIDL_LOCAL_APPDATA\Avira\AntiVir Desktop\TEMP</item>
|
||||
<item>256|2|1|0|CSIDL_PROGRAM_FILES\Avira\AntiVir Desktop\TEMP</item>
|
||||
<item>256|2|1|0|CSIDL_PROGRAM_FILES\AVAST Software</item>
|
||||
<item>256|2|1|0|CSIDL_WINDOWS\Temp\_avast5_</item>
|
||||
<item>256|2|1|0|CSIDL_WINDOWS\Temp\_avast_</item>
|
||||
<item>256|2|1|0|CSIDL_COMMON_APPDATA\Kaspersky Lab\AVP8\Data</item>
|
||||
</info>
|
||||
</exclusions>
|
||||
<agent>
|
||||
<directory>
|
||||
<base>C:\Programme\Immunet</base>
|
||||
</directory>
|
||||
<uuid>583c81d3-6245-4663-a43a-0101c90a0889</uuid>
|
||||
<client_pubkey><![CDATA[-----BEGIN PUBLIC KEY-----
|
||||
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANCuPrxwWDzKkCd0PYXWejNm2FNlzH9x
|
||||
wLwvyuwQr+MEc/wVrjkh5KGGdxiSlM2SEX4mNdlHpQGKXg0JXT6yQc8CAwEAAQ==
|
||||
-----END PUBLIC KEY-----
|
||||
]]></client_pubkey>
|
||||
<client_prvkey><![CDATA[-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIBOwIBAAJBANCuPrxwWDzKkCd0PYXWejNm2FNlzH9xwLwvyuwQr+MEc/wVrjkh
|
||||
5KGGdxiSlM2SEX4mNdlHpQGKXg0JXT6yQc8CAwEAAQJBALsR2M+YbqFgfUXBIH3g
|
||||
PP/jTD3G3kHJOZv5xBFHDEWW0wek0632aJtigHx/GlF21cJsSRBowdbXVE48bbrR
|
||||
2RECIQD3GokiBaAuLW2nLqPXL+ia/9H1JdOrxAvYhdxHXJGrDQIhANgxlBkDVJNn
|
||||
Ma0jE/MhrcnxGqQMOUTccKjwRAyj3HlLAiBm9K1yeXmWA+OOJsapIBMAkdo/FDWv
|
||||
eY2d95giO5WN+QIgHTledp8foKlTar8SJEyKLIEeA8zvNOLDi+KmoDrKQ88CIQCV
|
||||
6i05YQkWklFt7DvCA9n5vbpMndDpXa0uNZrVMCaS0Q==
|
||||
-----END RSA PRIVATE KEY-----
|
||||
]]></client_prvkey>
|
||||
<initialscan>0</initialscan>
|
||||
<agent_registered>1</agent_registered>
|
||||
<engine>
|
||||
<clamav>
|
||||
<lastupdate>1329292914</lastupdate>
|
||||
<lastupdatechecked>1329297819</lastupdatechecked>
|
||||
</clamav>
|
||||
</engine>
|
||||
<scansettings>
|
||||
<clamav>
|
||||
<defInit>1</defInit>
|
||||
<enable>1</enable>
|
||||
<updater>
|
||||
<enable>1</enable>
|
||||
</updater>
|
||||
<options>
|
||||
<ondemand>
|
||||
<scanarchives>0</scanarchives>
|
||||
<scanpacked>0</scanpacked>
|
||||
</ondemand>
|
||||
</options>
|
||||
</clamav>
|
||||
<tetra>
|
||||
<options>
|
||||
<ondemand>
|
||||
<scanarchives>0</scanarchives>
|
||||
<scanpacked>0</scanpacked>
|
||||
</ondemand>
|
||||
</options>
|
||||
</tetra>
|
||||
<ethos>
|
||||
<enable>1</enable>
|
||||
</ethos>
|
||||
<spero>
|
||||
<enable>1</enable>
|
||||
</spero>
|
||||
<action>
|
||||
<malware>1</malware>
|
||||
<suspicious>1</suspicious>
|
||||
</action>
|
||||
</scansettings>
|
||||
<driver>
|
||||
<protmode>
|
||||
<active>1</active>
|
||||
<file>1</file>
|
||||
<process>1</process>
|
||||
</protmode>
|
||||
</driver>
|
||||
<cloud>
|
||||
<upload>
|
||||
<enabled>0</enabled>
|
||||
</upload>
|
||||
</cloud>
|
||||
</agent>
|
||||
<ui>
|
||||
<notification>
|
||||
<feedlist>
|
||||
<feed0>
|
||||
<lastmod>Tue, 07 Jun 2011 20:30:04 GMT</lastmod>
|
||||
<hash>cab4f2b07feb88ead811596959cb9682</hash>
|
||||
</feed0>
|
||||
<feed1>
|
||||
<lastmod>Tue, 08 Feb 2011 16:53:51 GMT</lastmod>
|
||||
</feed1>
|
||||
</feedlist>
|
||||
<verbose>0</verbose>
|
||||
<gaming>0</gaming>
|
||||
<cloud>0</cloud>
|
||||
</notification>
|
||||
<banner>
|
||||
<currentfile>C:\Dokumente und Einstellungen\All Users\Immunet\banner.e2a10156d49939370f5f43556fc81b14.dll</currentfile>
|
||||
<lastmod>Thu, 14 Jul 2011 20:33:03 GMT</lastmod>
|
||||
</banner>
|
||||
</ui>
|
||||
<updater>
|
||||
<lastupdatechecked>1329297819</lastupdatechecked>
|
||||
</updater>
|
||||
</config>
|
Loading…
Reference in New Issue
Block a user