Package: bodhibuilder
Priority: optional
Section: main
-Maintainer: Jeff Hoogland, Stace Fauske & Charles van de Beek
-Architecture: all
-Version: 2.2.7
+Maintainer: Jeff Hoogland, Stace Fauske & Charles van de Beek, Serene Team
+Architecture: amd64
+Version: 2.3
Depends: memtest86+, coreutils, dialog, mkisofs, dpkg-dev | genisoimage, findutils, bash, passwd, sed, squashfs-tools, casper, rsync, mount, eject, libdebian-installer4, os-prober, ubiquity-frontend-debconf, user-setup, discover | discover1, laptop-detect, syslinux, syslinux-utils, util-linux, python, python-glade2, python-vte, plymouth-x11, menu, xorriso, mokutil, sbsigntool, dnsutils , cifs-utils , syslinux-common , localechooser-data , libvte-common , libvte9 , libefivar1 , isolinux
Conflicts: remastersys, remastersys-gtk
Provides: remastersys, remastersys-gtk
Description: Scripts used for building Bodhi Linux ISO images
A set of scripts based on remastersys to build bodhi ISO images
-
\ No newline at end of file
+++ /dev/null
-#!/bin/bash
-#
-
-# Install bodhibuilder into a system
-# This script needs to be run as root!
-#
-# Create the correct permissions and ownership
-# Distribute the files to the correct locations
-#
-
-
-
-###
-# Do some checks to see if we're running this script correctly.
-# must be root to run:
-if [ "$(whoami)" != "root" ]; then
- echo "Need to be root or run with sudo. Exiting."
- exit 1
-fi
-
-# must be in bodhibuilder directory:
-if [ ! "`echo $PWD | rev | cut -d/ -f1 | rev`" = "bodhibuilder" ] ; then
- echo " Not in the correct directory. Exiting."
- exit 0
-fi
-
-# must have certain files within the current path:
-if [ -f ./etc/bodhibuilder.conf -a -f ./usr/bin/bodhibuilder ] ; then
- continue=1
-else
- continue=0
-fi
-
-if [ "$continue" = 0 ] ; then
- echo " Cannot find bodhibuilder files. Exiting."
- exit 0
-fi
-
-# should have matching uid and gid, if not, issue a warning:
-bbuserid=`ls -n ./usr/bin/bodhibuilder | awk '{print $3}'`
-bbgroupid=`ls -n ./usr/bin/bodhibuilder | awk '{print $4}'`
-
-bcuserid=`ls -n ./etc/bodhibuilder.conf | awk '{print $3}'`
-bcgroupid=`ls -n ./etc/bodhibuilder.conf | awk '{print $4}'`
-
-if [ "${bbuserid}" != "${bbgroupid}" ] ; then
- echo " User and Group ID's don't match for file:"
- echo " ./usr/bin/bodhibuilder"
- echo -n " <cr> to continue or <ctrl+C> to cancel."
- read redy
-fi
-if [ "${bcuserid}" != "${bcgroupid}" ] ; then
- echo " User and Group ID's don't match for file:"
- echo " ./etc/bodhibuilder.conf"
- echo -n " <cr> to continue or <ctrl+C> to cancel."
- read redy
-fi
-
-
-
- # Feedback
- echo " Running installation for a 64-bit system."
-
- # Check for needed commands
- echo " Checking for dependencies and required commands:"
- commands="memtest86+ coreutils dialog mkisofs genisoimage archdetect awk sed apt-get rsync cpio gunzip gzip lzma mksquashfs unsquashfs isohybrid xorriso dpkg-dev"
- for c in $commands ; do
- cmdcheck1="`which ${c}`"
- echo -n " ${c}"
- if [ ! "$cmdcheck1" ] ; then
- cmdcheck2="`dpkg-query -W -f='${Status}\n' ${c}`"
- if [ ! "$cmdcheck2" = "install ok installed" ] ; then
- echo " -- Missing package."
- echo " -- Install package containing --> $c"
- echo " -- Exiting."
- exit 0
- fi
- fi
- done
- echo ""
-
-
- ###
- # Create correct permissions
- chmod -R 755 ./*
- chmod 644 ./etc/bodhibuilder/grub.png # needs to change to root ownership
- chmod 644 ./etc/bodhibuilder/isolinux/splash.png
- chmod 644 ./etc/bodhibuilder/isolinux/isolinux.bin
- chmod 644 ./etc/bodhibuilder/isolinux/isohdpfx.bin
- chmod 664 ./etc/bodhibuilder/plymouth/bodhibuilder-theme/*
- chmod 755 ./etc/bodhibuilder/plymouth/bodhibuilder-theme/bodhibuilder.png etc/bodhibuilder/plymouth/bodhibuilder-theme/progress_bar.png
- chmod 700 ./usr/share/bodhibuilder-gtk ./usr/share/doc/bodhibuilder-gtk
-
- # Change ownership on some files
- chown root:root ./etc/bodhibuilder/grub.png ./etc/bodhibuilder ./etc/init.d/bodhibuilder-firstboot
-
-
- ###
- # Distribute files to correct location
- #
- # /etc/ files:
- if [ -f /etc/bodhibuilder.conf ] ; then
- echo ""
- echo " Bodhibuilder Configuration file found."
- echo " Overwrite your current '/etc/bodhibuilder.conf' with the default file?"
- cp -pi ./etc/bodhibuilder.conf /etc/
- echo ""
- else
- cp -pi ./etc/bodhibuilder.conf /etc/
- fi
-
- rm -r /etc/bodhibuilder/
- cp -rp ./etc/bodhibuilder /etc/
- cp -p ./etc/init.d/bodhibuilder-firstboot /etc/init.d/bodhibuilder-firstboot
-
- # /usr/ files:
- cp -p ./usr/bin/* /usr/bin/
- rm -r /usr/share/bodhibuilder-gtk/
- cp -rp ./usr/share/bodhibuilder-gtk/ /usr/share/
-
- # docs
- cp -rp ./usr/share/doc/* /usr/share/doc/
-
- # icons
- if [ -d /usr/share/icons/hicolor ] ; then
- cp -p ./usr/share/icons/hicolor/128x128/apps/* /usr/share/icons/hicolor/128x128/apps/
- cp -p ./usr/share/icons/hicolor/16x16/apps/* /usr/share/icons/hicolor/16x16/apps/
- cp -p ./usr/share/icons/hicolor/22x22/apps/* /usr/share/icons/hicolor/22x22/apps/
- cp -p ./usr/share/icons/hicolor/24x24/apps/* /usr/share/icons/hicolor/24x24/apps/
- cp -p ./usr/share/icons/hicolor/32x32/apps/* /usr/share/icons/hicolor/32x32/apps/
- cp -p ./usr/share/icons/hicolor/48x48/apps/* /usr/share/icons/hicolor/48x48/apps/
- cp -p ./usr/share/icons/hicolor/64x64/apps/* /usr/share/icons/hicolor/64x64/apps/
- else
- mkdir /usr/share/icons/hicolor/
- cp -r ./usr/share/icons/hicolor/* usr/share/icons/hicolor/
- fi
-
- # locale
- if [ -d /usr/share/locale/bg/LC_MESSAGES/ ] ; then
- cp -p ./usr/share/locale/bg/LC_MESSAGES/bodhibuilder-gtk.mo /usr/share/locale/bg/LC_MESSAGES/
- else
- mkdir -p /usr/share/locale/bg/LC_MESSAGES/
- cp -p ./usr/share/locale/bg/LC_MESSAGES/bodhibuilder-gtk.mo /usr/share/locale/bg/LC_MESSAGES/
- fi
- if [ -d /usr/share/locale/en/LC_MESSAGES/ ] ; then
- cp -p ./usr/share/locale/en/LC_MESSAGES/bodhibuilder-gtk.mo /usr/share/locale/en/LC_MESSAGES/
- else
- mkdir -p /usr/share/locale/en/LC_MESSAGES/
- cp -p ./usr/share/locale/en/LC_MESSAGES/bodhibuilder-gtk.mo /usr/share/locale/en/LC_MESSAGES/
- fi
- if [ -d /usr/share/locale/zh_TW/LC_MESSAGES/ ] ; then
- cp -p ./usr/share/locale/zh_TW/LC_MESSAGES/bodhibuilder-gtk.mo /usr/share/locale/zh_TW/LC_MESSAGES/
- else
- mkdir -p /usr/share/locale/zh_TW/LC_MESSAGES/
- cp -p ./usr/share/locale/zh_TW/LC_MESSAGES/bodhibuilder-gtk.mo /usr/share/locale/zh_TW/LC_MESSAGES/
- fi
-
- # man pages
- cp -p ./usr/share/man/man1/* /usr/share/man/man1/
-
- # pixmaps
- cp -p ./usr/share/pixmaps/bodhibuilder-gtk.png /usr/share/pixmaps/
-
- # create link bb to bodhibuilder
- ln -sf /usr/bin/bodhibuilder /usr/bin/bb
-
- echo " INSTALLED"
- echo ""
- echo " Edit the file '/etc/bodhibuilder.conf' to customize."
- echo ""
+++ /dev/null
-#!/bin/bash
-#
-
-# used to update the version number throughout the necessary files in bodhibuilder
-# usr/share/bodhibuilder-gtk/bodhibuilder-gtk.py:APP_VERSION = "2.1.0"
-# etc/bodhibuilder/bodhibuilder.version:BODHIBUILDERVERSION="2.1.0"
-# DEBIAN/control:Version: 2.1.0
-#
-
-currversion=`cat ./etc/bodhibuilder/bodhibuilder.version | cut -d\" -f2`
-
-if [ ! "${1}" ] ; then # just echo out the version number
- echo ""
- echo " Current bodhibuilder version is : ${currversion}"
- echo ""
- echo " Example to change version :"
- echo " sudo ./version-update.sh 2.2.nn"
- echo ""
-else # change version number throughout files
- echo ""
- echo "usr/share/bodhibuilder-gtk/bodhibuilder-gtk.py"
- grep 'APP_VERSION = \".*\"$' ./usr/share/bodhibuilder-gtk/bodhibuilder-gtk.py
- echo " changed to"
- sed -i "s/APP_VERSION = \".*\"$/APP_VERSION = \"${1}\"/" ./usr/share/bodhibuilder-gtk/bodhibuilder-gtk.py
- grep 'APP_VERSION = \".*\"$' ./usr/share/bodhibuilder-gtk/bodhibuilder-gtk.py
-
- echo ""
- echo "etc/bodhibuilder/bodhibuilder.version"
- grep 'BODHIBUILDERVERSION=\".*\"$' ./etc/bodhibuilder/bodhibuilder.version
- echo " changed to"
- sed -i "s/BODHIBUILDERVERSION=\".*\"$/BODHIBUILDERVERSION=\"${1}\"/" ./etc/bodhibuilder/bodhibuilder.version
- grep 'BODHIBUILDERVERSION=\".*\"$' ./etc/bodhibuilder/bodhibuilder.version
-
- echo ""
- echo "DEBIAN/control"
- grep 'Version:.*$' ./DEBIAN/control
- echo " changed to"
- sed -i "s/Version:.*$/Version: ${1}/" ./DEBIAN/control
- grep 'Version:.*$' ./DEBIAN/control
-
- currversion=`cat ./etc/bodhibuilder/bodhibuilder.version | cut -d\" -f2`
- echo ""
- echo " NEW bodhibuilder version is : ${currversion}"
-fi
-
-exit 0