#! /bin/sh # CORRECTION: Probably the version numbers for libjpeg-turbo and # wxWidgets need a change in later Debian versions or on non-Debian systems. WXVERS="3.0" LJTVERS="62" # Ensure to run the script as root if [ "X$LOGNAME" != "Xroot" ] then echo 'ERROR: This script must be run as root!' exit 1 fi # Make sure system is up to date apt-get -y update apt-get -y upgrade # Installing everything needed to build a kernel should cover # most development tools # You should activate (uncomment) the following line only if necessary. # apt-get -y build-dep kernel # Install developer tools and DK tools library dependencies P="aptitude build-essential autoconf automake autotools-dev" P="$P dh-make debhelper" P="$P devscripts fakeroot file gfortran git gnupg fp-compiler" P="$P lintian patch patchutils pbuilder perl python" P="$P quilt xutils-dev make gcc g++" P="$P zlib1g-dev libbz2-dev libssl-dev libdb-dev libmysqlclient-dev" P="$P libpng-dev libjpeg-dev libopenjpeg-dev libtiff-dev" P="$P libjpeg${LJTVERS}-turbo-dev libsnmp-dev" P="$P wx${WXVERS}-headers" P="$P libwxgtk${WXVERS}-dev" P="$P libwxbase${WXVERS}-dev" P="$P libwxsvg-dev" apt-get install $P # Finally write hint to switch back to unprivileged user echo '' echo 'Remember to switch back to an unprivileged user to build the DEB file.' echo ''