commit 8cdbc806d993ed115cbbf4714394e1b0ffe41013 Author: Mario Fetka Date: Tue Aug 13 11:44:57 2013 +0200 Intial commit diff --git a/OPSI/control b/OPSI/control new file mode 100644 index 0000000..31a452e --- /dev/null +++ b/OPSI/control @@ -0,0 +1,84 @@ +[Package] +version: 3 +depends: +incremental: False + +[Product] +type: netboot +id: dban +name: Darik's Boot and Nuke +description: wipe disks http://dban.org/ +advice: if you have problems with default=auto, please try "manual" run +version: 2.2.6 +priority: 0 +licenseRequired: False +productClasses: +setupScript: none +uninstallScript: +updateScript: +alwaysScript: +onceScript: +customScript: +pxeConfigTemplate: dban + +[ProductProperty] +type: unicode +name: default +multivalue: False +editable: False +description: pick auto, manual, debug, silent +values: ["auto", "debug", "manual", "silent"] +default: ["manual"] + +[ProductProperty] +type: unicode +name: method +multivalue: False +editable: True +description: dban nuke methods +values: ["dod3pass", "dod522022m", "dodshort", "gutmann", "ops2", "prng", "quick", "zero"] +default: ["dod522022m"] + +[ProductProperty] +type: unicode +name: rounds +multivalue: False +editable: True +description: How many times to run dban +values: ["1"] +default: ["1"] + +[ProductProperty] +type: unicode +name: libata.ignore_hpa +multivalue: False +editable: False +description: 1 mean 'yes' delete Host Protected Area, 0 means 'no' save Host Protected Area +values: ["0", "1"] +default: ["1"] + +[Changelog] +dban (2.2.6-3) testing; urgency=low + * Version 3 has added libata.ignore_hpa=1 to the dban script + + -- jim Thu, 27 Sep 2012 14:17:00 +0000 + +dban (2.2.6-2) stable; urgency=low + + * Version 2 has fixed parameter syntax in dban + + -- jim Tue, 25 Sep 2012 16:17:56 +0000 + +dban (2.2.6-1) testing; urgency=low + + * Initial package + + -- jim Fri, 07 Sep 2012 09:31:04 +0000 + + + + + + + + diff --git a/OPSI/postinst b/OPSI/postinst new file mode 100644 index 0000000..f0a8a32 --- /dev/null +++ b/OPSI/postinst @@ -0,0 +1,9 @@ +#! /bin/bash +# +# postinst script +# This script executes after unpacking files from that archive and registering the product at the depot. +# +# 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 +# diff --git a/OPSI/preinst b/OPSI/preinst new file mode 100644 index 0000000..34512e1 --- /dev/null +++ b/OPSI/preinst @@ -0,0 +1,9 @@ +#! /bin/bash +# +# preinst script +# 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 +# diff --git a/SERVER_DATA/tftpboot/linux/pxelinux.cfg/dban b/SERVER_DATA/tftpboot/linux/pxelinux.cfg/dban new file mode 100755 index 0000000..2466349 --- /dev/null +++ b/SERVER_DATA/tftpboot/linux/pxelinux.cfg/dban @@ -0,0 +1,17 @@ +default %default% + +label auto + kernel dban.bzi + append nuke="dwipe --autonuke --method %method% --rounds %rounds% dban libata.ignore_hpa=%libata.ignore_hpa%" + +label manual + kernel dban.bzi + append nuke="dwipe --method %method% --rounds %rounds% dban libata.ignore_hpa=%libata.ignore_hpa%" + +label debug + kernel dban.bzi + append nuke="dwipe --autonuke --method %method% --rounds %rounds% dban libata.ignore_hpa=%libata.ignore_hpa%" bebug + +label silent + kernel dban.bzi + append nuke="dwipe --autonuke --method %method% --rounds %rounds% dban libata.ignore_hpa=%libata.ignore_hpa%" silent diff --git a/Testing.txt b/Testing.txt new file mode 100644 index 0000000..d6b5e6c --- /dev/null +++ b/Testing.txt @@ -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: ?? + + diff --git a/builder-product.cfg b/builder-product.cfg new file mode 100644 index 0000000..768f655 --- /dev/null +++ b/builder-product.cfg @@ -0,0 +1,27 @@ +############################ +# Setup product information +############################ +VENDOR="dban.org" +PN="dban.dban" +NAME="Darik's Boot And Nuke" +DESCRIPTION="DBAN is a self-contained boot disk that automatically deletes the contents of any hard disk that it can detect. " +VERSION="2.2.7" +RELEASE="3" +PRIORITY="0" +ADVICE="" + +# TYPE - defines, if the install files are public or restricted. +# Valid value: restricted | public +TYPE="public" + +DL_FILE[0]="dban.png" +DL_SOURCE[0]="http://lockergnome.com/wp-content/uploads/2011/07/dban.png" + +DL_FILE[1]="dban-${VERSION}_i586.iso" +DL_SOURCE[1]="http://sourceforge.net/projects/dban/files/dban/dban-${VERSION}/dban-${VERSION}_i586.iso" +DL_ARCH[1]="X86" +DL_WINST_NAME[1]=Install + +# File array index for the image showing while installing the program +ICON_DL_INDEX=0 + diff --git a/builder-targets-cb.sh b/builder-targets-cb.sh new file mode 100644 index 0000000..56e3a01 --- /dev/null +++ b/builder-targets-cb.sh @@ -0,0 +1,43 @@ +############################################################################## +# 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_ is possible. +# +# Abstract: +# target order: config, prepare, retrieve, create, package, publish, commit, cleanup +# callbacks: +# +############################################################################## + +function cleanup() { + echo "Cleanup" + builder_cleanup +} + + +function create() { + echo "Create" + builder_create + + 7z x -o$INST_DIR/CLIENT_DATA/X86/ $INST_DIR/CLIENT_DATA/X86/${DL_FILE[1]} + + # move the Windows 8 dotnet 2 - 3.5 in place + mv -v $INST_DIR/CLIENT_DATA/X86/DBAN.BZI $INST_DIR/SERVER_DATA/tftpboot/linux/dban.bzi + + # change exec bit on the dban file + find $INST_DIR/SERVER_DATA -type d -print0 | xargs -0 chmod 755 -v + find $INST_DIR/SERVER_DATA -type f -print0 | xargs -0 chmod 755 -v + + # delete the temp directory + rm -rf $INST_DIR/CLIENT_DATA +} \ No newline at end of file diff --git a/dban-2.2.7_i586.iso.sha1sum b/dban-2.2.7_i586.iso.sha1sum new file mode 100644 index 0000000..1f81bb4 --- /dev/null +++ b/dban-2.2.7_i586.iso.sha1sum @@ -0,0 +1 @@ +1e710757ecc83e9532962053f86cd9618e7a1c75 /home/mario/.opsi-dist-cache/dban.dban-2.2.7/X86/dban-2.2.7_i586.iso diff --git a/dban.png.sha1sum b/dban.png.sha1sum new file mode 100644 index 0000000..7859daa --- /dev/null +++ b/dban.png.sha1sum @@ -0,0 +1 @@ +1100ce01b55f99d6401cf2d75d9bde0e93d7f5dd /home/mario/.opsi-dist-cache/dban.dban-2.2.7//dban.png