diff --git a/cbox-build.sh b/cbox-build.sh index b824694..88a9de1 100755 --- a/cbox-build.sh +++ b/cbox-build.sh @@ -21,49 +21,80 @@ # merge - apply the diff to the local copy # # final action: -# release - the same as "dfsbuild config iso" +# release - the same as "dfsbuild config harden iso" # # # problems of this script: # - has to run as root, because dfsbuild, config, iso, chroot, devel, # revert and release need root privileges +# - 'harden' is strangely integrated # # you may run this script with multiple arguments, e.g.: # cb-build.sh dfsbuild config iso qemu # # the action "release" does what it says :) # (all developer's features like sshd, writable templates and -# the test-suite are deactivated) +# the test-suite are deactivated, some packages get removed) # set -ue -# dfsbuild config -CONFIG="dfs.cbox.conf" +# the base directory of your local development files +ROOT_DIR=$(dirname "$0") + +# the template (default) configuration directory +DEFAULTCONF_DIR="$ROOT_DIR/etc-defaults.d" + +# your local configuration directory (existing files supersede the defaults) +LOCALCONF_DIR="$ROOT_DIR/etc-local.d" + # the build directory (will be ERASED without warning) -BUILDDIR="_builddir/cd1" +BUILDDIR="$ROOT_DIR/_builddir/cd1" + # image directory created by dfsbuild IMAGE_DIR_ORIG="$BUILDDIR/image" + # a working copy of the image directory IMAGE_DIR="$BUILDDIR/image-working" + # template directory for cryptobox specific configuration -TEMPLATE_DIR="cryptobox.conf.d" +TEMPLATE_DIR="cbox-tree.d" + # the iso image IMAGE_FILE="$BUILDDIR/cryptobox.iso" + +# dfsbuild config +CONFIG="dfs.cbox.conf" + # temporary directory TMP_DIR="/tmp/`basename $0`-$$" + +# the virtual harddisk image used for qemu HD_IMAGE="/tmp/`basename $0`-testplatte.img" -# mkisofs options (the option "-U" is not clean, but it prevents long filenames from getting mapped) + +# mkisofs options (the option "-U" is not clean, but it prevents long +# filenames from getting mapped) MKISOFS_OPTIONS="-allow-multidot -U -D -iso-level 3 -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 1 -boot-info-table -pad -R" + +# the chroot-wrapper within the cryptobox CHROOTSTART="/usr/lib/cryptobox/chroot-start.sh" + +# for burning a CD CDWRITER="0,0,0" -LOCALCONF_DIR=local.conf.d + # for development diffs and merges from a running cryptobox -SSH_CONFIG_FILE="$LOCALCONF_DIR/ssh-options" -SSH_HOST=cryptobox -REMOTE_COMMAND="/usr/lib/cryptobox/devel-features.sh" -CUSTOM_CONFIGURE_DIR=$LOCALCONF_DIR/custom-configure.d +SSH_CONFIG_FILE="$LOCALCONF_DIR/ssh_config" + +# extract the hostname of the cryptobox from the ssh_config file +SSH_HOST=$(grep "^Host " $SSH_CONFIG_FILE | head -1 | sed 's/^Host *\(.*\)$/\1/') + +# the script within the box, that does the development 'diff' +DEVEL_FEATURES_SCRIPT="/usr/lib/cryptobox/devel-features.sh" + +# local configuration directory - contains scripts to be executed after +# 'configure' +CUSTOM_CONFIGURE_DIR="$ROOT_DIR/configure-local.d" function run_dfsbuild() @@ -186,7 +217,7 @@ function upload2devel() echo "Copying local files to the cryptobox ... " if scp -F "$SSH_CONFIG_FILE" -rpq "$TMP_DIR/." cryptobox:/tmp/mirror then echo "Set the base for future diffs to current state ..." - ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND set_diff_base + ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $DEVEL_FEATURES_SCRIPT set_diff_base else echo 'ERROR: copying failed!' fi rm -rf "$TMP_DIR" @@ -199,13 +230,13 @@ function merge_from_devel() { check_ssh_defaults echo "Check for collisions ... (dry-run)" - if ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND diff | patch --dry-run -p1 -d "$TEMPLATE_DIR" + if ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $DEVEL_FEATURES_SCRIPT diff | patch --dry-run -p1 -d "$TEMPLATE_DIR" then echo echo "Applying diff ..." - ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND diff | patch -p1 -d "$TEMPLATE_DIR" + ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $DEVEL_FEATURES_SCRIPT diff | patch -p1 -d "$TEMPLATE_DIR" echo echo "Set the base for future diffs to current state ..." - ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND set_diff_base + ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $DEVEL_FEATURES_SCRIPT set_diff_base else echo "Merging will fail - do it manually!" fi } @@ -241,7 +272,7 @@ while [ $# -gt 0 ] diff ) # get a diff from a running development cryptobox check_ssh_defaults - ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND diff + ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $DEVEL_FEATURES_SCRIPT diff ;; merge ) merge_from_devel diff --git a/cryptobox.conf.d/etc/cryptobox/cryptobox.conf b/cbox-tree.d/etc/cryptobox/cryptobox.conf similarity index 100% rename from cryptobox.conf.d/etc/cryptobox/cryptobox.conf rename to cbox-tree.d/etc/cryptobox/cryptobox.conf diff --git a/cryptobox.conf.d/etc/cryptobox/openssl.cnf b/cbox-tree.d/etc/cryptobox/openssl.cnf similarity index 100% rename from cryptobox.conf.d/etc/cryptobox/openssl.cnf rename to cbox-tree.d/etc/cryptobox/openssl.cnf diff --git a/cryptobox.conf.d/etc/init.d/cb-devel-features.sh b/cbox-tree.d/etc/init.d/cb-devel-features.sh similarity index 100% rename from cryptobox.conf.d/etc/init.d/cb-devel-features.sh rename to cbox-tree.d/etc/init.d/cb-devel-features.sh diff --git a/cryptobox.conf.d/etc/init.d/cb-mount-config.sh b/cbox-tree.d/etc/init.d/cb-mount-config.sh similarity index 100% rename from cryptobox.conf.d/etc/init.d/cb-mount-config.sh rename to cbox-tree.d/etc/init.d/cb-mount-config.sh diff --git a/cryptobox.conf.d/etc/init.d/cb-network.sh b/cbox-tree.d/etc/init.d/cb-network.sh similarity index 100% rename from cryptobox.conf.d/etc/init.d/cb-network.sh rename to cbox-tree.d/etc/init.d/cb-network.sh diff --git a/cryptobox.conf.d/etc/init.d/cb-services.sh b/cbox-tree.d/etc/init.d/cb-services.sh similarity index 100% rename from cryptobox.conf.d/etc/init.d/cb-services.sh rename to cbox-tree.d/etc/init.d/cb-services.sh diff --git a/cryptobox.conf.d/etc/rc0.d/K10cb-devel-features b/cbox-tree.d/etc/rc0.d/K10cb-devel-features similarity index 100% rename from cryptobox.conf.d/etc/rc0.d/K10cb-devel-features rename to cbox-tree.d/etc/rc0.d/K10cb-devel-features diff --git a/cryptobox.conf.d/etc/rc0.d/K22cb-services b/cbox-tree.d/etc/rc0.d/K22cb-services similarity index 100% rename from cryptobox.conf.d/etc/rc0.d/K22cb-services rename to cbox-tree.d/etc/rc0.d/K22cb-services diff --git a/cryptobox.conf.d/etc/rc0.d/K34cb-network b/cbox-tree.d/etc/rc0.d/K34cb-network similarity index 100% rename from cryptobox.conf.d/etc/rc0.d/K34cb-network rename to cbox-tree.d/etc/rc0.d/K34cb-network diff --git a/cryptobox.conf.d/etc/rc0.d/K39cb-mount-config b/cbox-tree.d/etc/rc0.d/K39cb-mount-config similarity index 100% rename from cryptobox.conf.d/etc/rc0.d/K39cb-mount-config rename to cbox-tree.d/etc/rc0.d/K39cb-mount-config diff --git a/cryptobox.conf.d/etc/rc2.d/S98cb-services b/cbox-tree.d/etc/rc2.d/S98cb-services similarity index 100% rename from cryptobox.conf.d/etc/rc2.d/S98cb-services rename to cbox-tree.d/etc/rc2.d/S98cb-services diff --git a/cryptobox.conf.d/etc/rc2.d/S99cb-devel-features b/cbox-tree.d/etc/rc2.d/S99cb-devel-features similarity index 100% rename from cryptobox.conf.d/etc/rc2.d/S99cb-devel-features rename to cbox-tree.d/etc/rc2.d/S99cb-devel-features diff --git a/cryptobox.conf.d/etc/rc6.d/K10cb-devel-features b/cbox-tree.d/etc/rc6.d/K10cb-devel-features similarity index 100% rename from cryptobox.conf.d/etc/rc6.d/K10cb-devel-features rename to cbox-tree.d/etc/rc6.d/K10cb-devel-features diff --git a/cryptobox.conf.d/etc/rc6.d/K22cb-services b/cbox-tree.d/etc/rc6.d/K22cb-services similarity index 100% rename from cryptobox.conf.d/etc/rc6.d/K22cb-services rename to cbox-tree.d/etc/rc6.d/K22cb-services diff --git a/cryptobox.conf.d/etc/rc6.d/K34cb-network b/cbox-tree.d/etc/rc6.d/K34cb-network similarity index 100% rename from cryptobox.conf.d/etc/rc6.d/K34cb-network rename to cbox-tree.d/etc/rc6.d/K34cb-network diff --git a/cryptobox.conf.d/etc/rc6.d/K39cb-mount-config b/cbox-tree.d/etc/rc6.d/K39cb-mount-config similarity index 100% rename from cryptobox.conf.d/etc/rc6.d/K39cb-mount-config rename to cbox-tree.d/etc/rc6.d/K39cb-mount-config diff --git a/cryptobox.conf.d/etc/rcS.d/S22cb-mount-config b/cbox-tree.d/etc/rcS.d/S22cb-mount-config similarity index 100% rename from cryptobox.conf.d/etc/rcS.d/S22cb-mount-config rename to cbox-tree.d/etc/rcS.d/S22cb-mount-config diff --git a/cryptobox.conf.d/etc/rcS.d/S37cb-network b/cbox-tree.d/etc/rcS.d/S37cb-network similarity index 100% rename from cryptobox.conf.d/etc/rcS.d/S37cb-network rename to cbox-tree.d/etc/rcS.d/S37cb-network diff --git a/cryptobox.conf.d/etc/samba/smb.conf b/cbox-tree.d/etc/samba/smb.conf similarity index 100% rename from cryptobox.conf.d/etc/samba/smb.conf rename to cbox-tree.d/etc/samba/smb.conf diff --git a/cryptobox.conf.d/mnt/crypto/info.txt b/cbox-tree.d/mnt/crypto/info.txt similarity index 100% rename from cryptobox.conf.d/mnt/crypto/info.txt rename to cbox-tree.d/mnt/crypto/info.txt diff --git a/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh b/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh similarity index 100% rename from cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh rename to cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh diff --git a/cryptobox.conf.d/usr/lib/cryptobox/check_smb_idle.sh b/cbox-tree.d/usr/lib/cryptobox/check_smb_idle.sh similarity index 100% rename from cryptobox.conf.d/usr/lib/cryptobox/check_smb_idle.sh rename to cbox-tree.d/usr/lib/cryptobox/check_smb_idle.sh diff --git a/cryptobox.conf.d/usr/lib/cryptobox/chroot-start.sh b/cbox-tree.d/usr/lib/cryptobox/chroot-start.sh similarity index 100% rename from cryptobox.conf.d/usr/lib/cryptobox/chroot-start.sh rename to cbox-tree.d/usr/lib/cryptobox/chroot-start.sh diff --git a/cryptobox.conf.d/usr/lib/cryptobox/configure-cryptobox.sh b/cbox-tree.d/usr/lib/cryptobox/configure-cryptobox.sh similarity index 100% rename from cryptobox.conf.d/usr/lib/cryptobox/configure-cryptobox.sh rename to cbox-tree.d/usr/lib/cryptobox/configure-cryptobox.sh diff --git a/cryptobox.conf.d/usr/lib/cryptobox/devel-features.sh b/cbox-tree.d/usr/lib/cryptobox/devel-features.sh similarity index 100% rename from cryptobox.conf.d/usr/lib/cryptobox/devel-features.sh rename to cbox-tree.d/usr/lib/cryptobox/devel-features.sh diff --git a/cryptobox.conf.d/usr/lib/cryptobox/firewall.sh b/cbox-tree.d/usr/lib/cryptobox/firewall.sh similarity index 100% rename from cryptobox.conf.d/usr/lib/cryptobox/firewall.sh rename to cbox-tree.d/usr/lib/cryptobox/firewall.sh diff --git a/cryptobox.conf.d/usr/lib/cryptobox/make_stunnel_cert.sh b/cbox-tree.d/usr/lib/cryptobox/make_stunnel_cert.sh similarity index 100% rename from cryptobox.conf.d/usr/lib/cryptobox/make_stunnel_cert.sh rename to cbox-tree.d/usr/lib/cryptobox/make_stunnel_cert.sh diff --git a/cryptobox.conf.d/usr/lib/perl5/ClearSilver.pm b/cbox-tree.d/usr/lib/perl5/ClearSilver.pm similarity index 100% rename from cryptobox.conf.d/usr/lib/perl5/ClearSilver.pm rename to cbox-tree.d/usr/lib/perl5/ClearSilver.pm diff --git a/cryptobox.conf.d/usr/lib/perl5/auto/ClearSilver/.packlist b/cbox-tree.d/usr/lib/perl5/auto/ClearSilver/.packlist similarity index 100% rename from cryptobox.conf.d/usr/lib/perl5/auto/ClearSilver/.packlist rename to cbox-tree.d/usr/lib/perl5/auto/ClearSilver/.packlist diff --git a/cryptobox.conf.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.bs b/cbox-tree.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.bs similarity index 100% rename from cryptobox.conf.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.bs rename to cbox-tree.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.bs diff --git a/cryptobox.conf.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.so b/cbox-tree.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.so similarity index 100% rename from cryptobox.conf.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.so rename to cbox-tree.d/usr/lib/perl5/auto/ClearSilver/ClearSilver.so diff --git a/cryptobox.conf.d/usr/share/cryptobox/defaults/ip b/cbox-tree.d/usr/share/cryptobox/defaults/ip similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/defaults/ip rename to cbox-tree.d/usr/share/cryptobox/defaults/ip diff --git a/cryptobox.conf.d/usr/share/cryptobox/defaults/language b/cbox-tree.d/usr/share/cryptobox/defaults/language similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/defaults/language rename to cbox-tree.d/usr/share/cryptobox/defaults/language diff --git a/cryptobox.conf.d/usr/share/cryptobox/defaults/timeout b/cbox-tree.d/usr/share/cryptobox/defaults/timeout similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/defaults/timeout rename to cbox-tree.d/usr/share/cryptobox/defaults/timeout diff --git a/cryptobox.conf.d/usr/share/cryptobox/lang/de.hdf b/cbox-tree.d/usr/share/cryptobox/lang/de.hdf similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/lang/de.hdf rename to cbox-tree.d/usr/share/cryptobox/lang/de.hdf diff --git a/cryptobox.conf.d/usr/share/cryptobox/lang/en.hdf b/cbox-tree.d/usr/share/cryptobox/lang/en.hdf similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/lang/en.hdf rename to cbox-tree.d/usr/share/cryptobox/lang/en.hdf diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/config_form.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs rename to cbox-tree.d/usr/share/cryptobox/templates/config_form.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/doc.cs b/cbox-tree.d/usr/share/cryptobox/templates/doc.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/doc.cs rename to cbox-tree.d/usr/share/cryptobox/templates/doc.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/error.cs b/cbox-tree.d/usr/share/cryptobox/templates/error.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/error.cs rename to cbox-tree.d/usr/share/cryptobox/templates/error.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/footer.cs b/cbox-tree.d/usr/share/cryptobox/templates/footer.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/footer.cs rename to cbox-tree.d/usr/share/cryptobox/templates/footer.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/header.cs b/cbox-tree.d/usr/share/cryptobox/templates/header.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/header.cs rename to cbox-tree.d/usr/share/cryptobox/templates/header.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/init_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/init_form.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/init_form.cs rename to cbox-tree.d/usr/share/cryptobox/templates/init_form.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/intro.cs b/cbox-tree.d/usr/share/cryptobox/templates/intro.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/intro.cs rename to cbox-tree.d/usr/share/cryptobox/templates/intro.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/macros.cs b/cbox-tree.d/usr/share/cryptobox/templates/macros.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/macros.cs rename to cbox-tree.d/usr/share/cryptobox/templates/macros.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/main.cs b/cbox-tree.d/usr/share/cryptobox/templates/main.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/main.cs rename to cbox-tree.d/usr/share/cryptobox/templates/main.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/mount_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/mount_form.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/mount_form.cs rename to cbox-tree.d/usr/share/cryptobox/templates/mount_form.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/nav.cs b/cbox-tree.d/usr/share/cryptobox/templates/nav.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/nav.cs rename to cbox-tree.d/usr/share/cryptobox/templates/nav.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/show_log.cs b/cbox-tree.d/usr/share/cryptobox/templates/show_log.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/show_log.cs rename to cbox-tree.d/usr/share/cryptobox/templates/show_log.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/shutdown_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/shutdown_form.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/shutdown_form.cs rename to cbox-tree.d/usr/share/cryptobox/templates/shutdown_form.cs diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/umount_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/umount_form.cs similarity index 100% rename from cryptobox.conf.d/usr/share/cryptobox/templates/umount_form.cs rename to cbox-tree.d/usr/share/cryptobox/templates/umount_form.cs diff --git a/cryptobox.conf.d/usr/share/doc/cryptobox/html/CryptoBox.html b/cbox-tree.d/usr/share/doc/cryptobox/html/CryptoBox.html similarity index 100% rename from cryptobox.conf.d/usr/share/doc/cryptobox/html/CryptoBox.html rename to cbox-tree.d/usr/share/doc/cryptobox/html/CryptoBox.html diff --git a/cryptobox.conf.d/usr/share/doc/cryptobox/html/CryptoBoxDev.html b/cbox-tree.d/usr/share/doc/cryptobox/html/CryptoBoxDev.html similarity index 100% rename from cryptobox.conf.d/usr/share/doc/cryptobox/html/CryptoBoxDev.html rename to cbox-tree.d/usr/share/doc/cryptobox/html/CryptoBoxDev.html diff --git a/cryptobox.conf.d/var/www/cgi-bin/cryptobox.pl b/cbox-tree.d/var/www/cgi-bin/cryptobox.pl similarity index 100% rename from cryptobox.conf.d/var/www/cgi-bin/cryptobox.pl rename to cbox-tree.d/var/www/cgi-bin/cryptobox.pl diff --git a/cryptobox.conf.d/var/www/cryptobox b/cbox-tree.d/var/www/cryptobox similarity index 100% rename from cryptobox.conf.d/var/www/cryptobox rename to cbox-tree.d/var/www/cryptobox diff --git a/cryptobox.conf.d/var/www/cryptobox.css b/cbox-tree.d/var/www/cryptobox.css similarity index 100% rename from cryptobox.conf.d/var/www/cryptobox.css rename to cbox-tree.d/var/www/cryptobox.css diff --git a/cryptobox.conf.d/var/www/errors/err404.html b/cbox-tree.d/var/www/errors/err404.html similarity index 100% rename from cryptobox.conf.d/var/www/errors/err404.html rename to cbox-tree.d/var/www/errors/err404.html diff --git a/cryptobox.conf.d/var/www/img/backg.gif b/cbox-tree.d/var/www/img/backg.gif similarity index 100% rename from cryptobox.conf.d/var/www/img/backg.gif rename to cbox-tree.d/var/www/img/backg.gif diff --git a/cryptobox.conf.d/var/www/img/evil_small.png b/cbox-tree.d/var/www/img/evil_small.png similarity index 100% rename from cryptobox.conf.d/var/www/img/evil_small.png rename to cbox-tree.d/var/www/img/evil_small.png diff --git a/cryptobox.conf.d/var/www/img/evil_test.png b/cbox-tree.d/var/www/img/evil_test.png similarity index 100% rename from cryptobox.conf.d/var/www/img/evil_test.png rename to cbox-tree.d/var/www/img/evil_test.png diff --git a/cryptobox.conf.d/var/www/img/list.gif b/cbox-tree.d/var/www/img/list.gif similarity index 100% rename from cryptobox.conf.d/var/www/img/list.gif rename to cbox-tree.d/var/www/img/list.gif diff --git a/cryptobox.conf.d/var/www/index.html b/cbox-tree.d/var/www/index.html similarity index 100% rename from cryptobox.conf.d/var/www/index.html rename to cbox-tree.d/var/www/index.html diff --git a/dfs.cbox.conf b/defaults.conf.d/dfs.cbox.conf similarity index 100% rename from dfs.cbox.conf rename to defaults.conf.d/dfs.cbox.conf diff --git a/defaults.conf.d/qemu-ifup.default b/defaults.conf.d/qemu-ifup similarity index 100% rename from defaults.conf.d/qemu-ifup.default rename to defaults.conf.d/qemu-ifup diff --git a/defaults.conf.d/ssh-options.default b/defaults.conf.d/ssh_config similarity index 100% rename from defaults.conf.d/ssh-options.default rename to defaults.conf.d/ssh_config diff --git a/defaults.conf.d/userdocexport.sh b/tools/userdocexport.sh similarity index 100% rename from defaults.conf.d/userdocexport.sh rename to tools/userdocexport.sh