diff --git a/molecules/sabayon-x86-xfceforensic.spec b/molecules/sabayon-x86-xfceforensic.spec new file mode 100644 index 0000000..2a66fa4 --- /dev/null +++ b/molecules/sabayon-x86-xfceforensic.spec @@ -0,0 +1,173 @@ +# Sabayon Linux 5 x86 GNOME Molecule remaster spec file +# The aim of this spec file is to add arbitrary applications & misc stuff +# to an already built ISO image via scripting (providing hooks that call +# user-defined scripts). +# squashfs, mkisofs needed + +# Define an alternative execution strategy, in this case, the value must be +# "iso_remaster" +execution_strategy: iso_remaster + +# Release string +release_string: Sabayon Linux + +# File to write release string +release_file: /etc/sabayon-edition + +# Release Version +release_version: 7 + +# Release Version string description +release_desc: x86 Xfceforensic + +# pre chroot command, example, for 32bit chroots on 64bit system, you always +# have to append "linux32" this is useful for inner_chroot_script +prechroot: linux32 + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_DAILY_x86_Xfce.iso + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and before inner_chroot_script) +outer_chroot_script: /sabayon/scripts/remaster_pre.sh + +# Inner chroot script command, to be executed inside destination chroot before packing it +# - kmerge.sh - setup kernel bins +# inner_chroot_script: + +# Execute repositories update here, in a more fault-tolerant flavor +inner_chroot_script: /sabayon/scripts/remaster_generic_inner_chroot_script.sh + +# Inner chroot script command, to be executed inside destination chroot after +# packages installation and removal +inner_chroot_script_after: /sabayon/scripts/remaster_generic_inner_chroot_script_after.sh xfceforensic + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and AFTER inner_chroot_script) +outer_chroot_script_after: /sabayon/scripts/xfce_remaster_post.sh + +# Used to umount /proc and unbind packages dir +error_script: /sabayon/scripts/remaster_error_script.sh + +# Extra mkisofs parameters, perhaps something to include/use your bootloader +extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat + +# Pre-ISO building script. Hook to be able to copy kernel images in place, for example +# pre_iso_script: /sabayon/scripts/cdroot.py + +# Post-ISO building script, called after ISO image generation. +post_iso_script: /sabayon/scripts/generic_post_iso_script.sh + +# Destination directory for the ISO image path (MANDATORY) +destination_iso_directory: /sabayon/iso + +# Destination ISO image name, call whatever you want.iso, not mandatory +destination_iso_image_name: Sabayon_Linux_Xfceforensic_7_x86.iso + +# Output iso image title +iso_title: Sabayon_Linux_Forensic_x86_Xfce + +# Alternative ISO file mount command (default is: mount -o loop -t iso9660) +# iso_mounter: + +# Alternative ISO umounter command (default is: umount) +# iso_umounter: + +# Alternative squashfs file mount command (default is: mount -o loop -t squashfs) +# squash_mounter: + +# Alternative ISO squashfs umount command (default is: umount) +# squash_umounter: + +# Merge directory with destination LiveCD root +# merge_livecd_root: /put/more/files/onto/CD/root + +# List of packages that would be removed from chrooted system (comma separated) +# List of packages that would be removed from chrooted system (comma separated) +packages_to_remove: app-dicts/aspell-de, + app-dicts/aspell-fr, + app-dicts/aspell-it, + app-dicts/aspell-nl, + app-dicts/aspell-pl, + app-dicts/myspell-de, + app-dicts/myspell-es, + app-dicts/myspell-fr, + app-dicts/myspell-it, + app-dicts/myspell-nl, + app-misc/sabayon-music, + mail-client/mailx, + mail-client/mailx-support, + net-p2p/transmission-base, + net-p2p/transmission-gtk+, + www-client/midori, + x11-wm/fluxbox, + x11-terms/xterm, + media-gfx/shotwell, + net-firewall/ufw, + net-firewall/ufw-frontends, + games-misc/cowsay, + app-editors/gedit +# Custom shell call to packages removal (default is: equo remove) +# custom_packages_remove_cmd: + +# List of packages that would be added from chrooted system (comma separated) +packages_to_add: app-admin/testdisk, + app-antivirus/clamav, + app-antivirus/clamtk, + app-forensics/magicrescue, + app-forensics/cmospwd, + app-forensics/rkhunter, + app-forensics/sleuthkit, + app-forensics/autopsy, + app-forensics/mac-robber, + app-forensics/aide, + app-forensics/rdd, + app-crypt/chntpw, + app-crypt/fcrackzip, + app-crypt/johntheripper, + app-crypt/gifshuffle, + app-crypt/pdfcrack, + app-misc/screen, + dev-util/geany, + dev-util/geany-plugins, + gnome-extra/nm-applet, + net-analyzer/traceroute, + net-libs/libnet, + net-libs/netwib, + net-misc/knock, + media-fonts/droid, + media-gfx/picasa, + media-sound/pavucontrol, + media-video/vlc, + net-analyzer/nmap, + net-analyzer/netcat6, + net-irc/irssi, + net-analyzer/wireshark, + net-analyzer/tcpdump, + sys-apps/mlocate, + sys-fs/extundelete, + www-client/chromium, + x11-terms/terminator, + x11-misc/pcmanfm, + x11-wm/awesome, + xfce-extra/thunar-volman, + xfce-extra/tumbler + +# Custom shell call to packages add (default is: equo install) +# custom_packages_add_cmd: + +# Custom command for updating repositories (default is: equo update) +# repositories_update_cmd: + +# Determine whether repositories update should be run (if packages_to_add is set) +# (default is: no), values are: yes, no. +execute_repositories_update: no + +# Directories to remove completely (comma separated) +# paths_to_remove: + +# Directories to empty (comma separated) +# paths_to_empty: + +# Build Menu +pre_iso_script: /sabayon/scripts/xfceforensic_pre_iso_script.sh diff --git a/scripts/xfce_remaster_post.sh b/scripts/xfce_remaster_post.sh new file mode 100755 index 0000000..75f3475 --- /dev/null +++ b/scripts/xfce_remaster_post.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# execute parent script +/sabayon/scripts/remaster_post.sh + +GFORENSIC_DIR="/sabayon/remaster/gforensic" +# setup skel and background +cp "${GFORENSIC_DIR}"/usr/share/backgrounds/sabayon-forensic.png "${CHROOT_DIR}/usr/share/backgrounds/sabayonlinux.png" +cp "${GFORENSIC_DIR}"/usr/share/backgrounds/sabayon-forensic.jpg "${CHROOT_DIR}/usr/share/backgrounds/sabayonlinux.jpg" +cp "${GFORENSIC_DIR}"/usr/share/backgrounds/sabayon-forensic.jpg "${CHROOT_DIR}/usr/share/themes/Adwaita/backgrounds/stripes.jpg" +cp "${GFORENSIC_DIR}"/usr/share/backgrounds/kgdm.jpg ${CHROOT_DIR}/usr/share/backgrounds/kgdm.jpg +cp "${GFORENSIC_DIR}"/files/org.freedesktop.udisks.policy "${CHROOT_DIR}/usr/share/polkit-1/actions/org.freedesktop.udisks.policy" +cp "${GFORENSIC_DIR}"/files/xorg.conf.kjs "${CHROOT_DIR}/etc/X11/xorg.conf.kjs" +cp "${GFORENSIC_DIR}"/files/xsettings.xml "${CHROOT_DIR}/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" +cp "${GFORENSIC_DIR}"/files/xfce4-panel.xml "${CHROOT_DIR}/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml" +cp "${GFORENSIC_DIR}"/files/helpers.rc "${CHROOT_DIR}/etc/skel/.config/xfce4/helpers.rc" +cp "${GFORENSIC_DIR}"/files/rc.lua "${CHROOT_DIR}/etc/xdg/awesome/rc.lua" +cp -r "${GFORENSIC_DIR}"/files/OSDark "${CHROOT_DIR}/usr/share/icons/" +cp -r "${GFORENSIC_DIR}"/files/NewSlickness-round "${CHROOT_DIR}/usr/share/themes/" +# cp "${GFORENSIC_DIR}"/etc/skel/.gconf/desktop/gnome/interface/%gconf.xml "${CHROOT_DIR}/etc/skel/.gconf/desktop/gnome/interface/%gconf.xml" +# cp "${GFORENSIC_DIR}"/etc/skel/.gconf/apps/nautilus/preferences/%gconf.xml "${CHROOT_DIR}/etc/skel/.gconf/apps/nautilus/preferences/%gconf.xml"