#!/bin/sh #(c)2004 Barry Kauler, www.goosee.com/puppy #fourth script to create Puppy Linux image.gz PUPPYDIR="`pwd`" #/root/puppy SOURCESDIR="$PUPPYDIR/sources4" DESTDIR="$PUPPYDIR/rootfs-complete" FSSIZE=`cat $PUPPYDIR/rootfs-skeleton/root0/.etc/ramdisksize` echo "Files failed to strip:" > $SOURCESDIR/logstriperr.txt binstripfunc() { #param passed in is full path and filename, no wildchars allowed. #note, do not put quotes around the $1, fails if asterisks if [ ! -h $1 ];then #-h test if symbolic link. strip --strip-unneeded $1 > /dev/null 2>&1 if [ ! $? -eq 0 ];then echo "$1" >> $SOURCESDIR/logstriperr.txt fi fi } libstripfunc() { #param passed in is full path and filename, no wildchars allowed. #note, do not put quotes around the $1, fails if asterisks #WARNING: do not strip all symbols, as this script strips some #lib files at their source, in the host system. if [ ! -h $1 ];then #-h test if symbolic link. strip --strip-debug $1 > /dev/null 2>&1 if [ ! $? -eq 0 ];then echo "$1" >> $SOURCESDIR/logstriperr.txt fi fi } check_status() { /bin/echo -en "\\033[65G" if [ $1 -eq 0 ] then /bin/echo -en "\\033[1;32mdone" else /bin/echo -en "\\033[1;31mfailed" FLAGFAILED=1 fi /bin/echo -e "\\033[0;39m" } skip_key() { if [ "$FIRSTTIME" = "yes" ];then echo -n "Press ENTER to continue (and compile/install $1): " read mmm nnn="y" else echo -en "To compile/install $1, press \"y\", else \"ENTER\" to skip: " read nnn fi } echo echo -e "Would you like to cleanup sources4/ folder by running \"make clean\"" echo -e "or \"make distclean\" in all the packages? This will remove all the" echo "configuration and compiled files. You probably only want to do this" echo "if you want to make everything into a tarball for distribution, or" echo " you need to save space on the drive." echo -e "This script will cleanup then exit if you choose \"y\"." echo -ne "Press \"y\" to clean sources4/, anything else not to: " read mmm if [ "$mmm" = "y" ];then echo "Please wait..." #cd $PUPPYDIR/sources4/libdvdread-0.9.4 #...from host. cd $PUPPYDIR/sources4/a52dec-0.7.4 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/antiword-0.33 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/pptp-linux-1.3.1 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/gadsl-0.1 rm -f main.o &>/dev/null rm -f gadsl &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/grabc1.1 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/gtkfish-1.0.1 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/gtk-shell make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/gwget-0.5.2 make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/gyach-0.9.8 make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/samba-2.2.7/source make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/LinNeighborhood-0.6.5 make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/mad-0.14.2b make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/ogle-0.9.1 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/ogle_gui-0.9.1 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/gtail-0.5a make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/superscan make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/unzip-5.50 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/xcal-1.4 make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/xfprot-0.24b make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/xhippo-3.3 make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/xnetload-1.11.3 make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/xproc-src make clean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/xpuyopuyo-0.9.8 make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/xwhois-0.4.2 make distclean &>/dev/null rm -f log*.txt &>/dev/null cd $PUPPYDIR/sources4/zip-2.3 make -f unix/Makefile clean &>/dev/null rm -f log*.txt &>/dev/null sync echo "...cleaned sources4/ folder. Exiting script..." exit fi echo echo "Do you want to recompile everything in sources4/ folder and install" echo "into rootfs-complete/ folder?" echo "If you just press ENTER, you will asked about each package, whether" echo "you want to compile and install it." echo "IF THIS IS THE VERY FIRST TIME THAT YOU ARE RUNNING THIS SCRIPT," echo -e "YOU MUST TYPE \"y\" TO BUILD EVERYTHING!" echo echo -en "Type \"y\" for everything or just press ENTER only for no: " read nnn if [ "$nnn" ];then FIRSTTIME="yes" cd $PUPPYDIR fi echo skip_key libdvdread if [ "$nnn" ];then echo "Compiling and installing libdvdread..." cd $PUPPYDIR/sources4/libdvdread-0.9.4 #-type f finds real file, not a link... FNDFILE="`find /usr/lib -maxdepth 1 -mount -type f -name libdvdread.so* | head -n 1`" if [ "$FNDFILE" = "" ];then echo "...not in host, need to put code here to compile/install it." else echo "...already in host, and copied to Puppy by script createpuppy1." #-xtype f finds real file and link to a real file... FNDLFILE="`find /usr/lib -maxdepth 1 -mount -xtype f -name libdvdread.so | head -n 1`" if [ "$FNDLFILE" = "" ];then echo "Host install broken, needs libdvdread.so link..." ln -s $FNDFILE /usr/lib/libdvdread.so echo "...done" echo "Stupid Mandrake 9.2, also missing a header... fixing" mkdir /usr/include/dvdread &>/dev/null cp -f dvdread/*.h /usr/include/dvdread/ fi fi fi echo skip_key a52dec if [ "$nnn" ];then echo "Compiling and installing a52dec..." FNDFILE="`find /usr/lib -maxdepth 1 -mount -xtype f -name liba52.so* | head -n 1`" if [ "$FNDFILE" = "" ];then echo "...already in host, and copied to Puppy by script createpuppy1." else cd $PUPPYDIR/sources4/a52dec-0.7.4 make uninstall &>/dev/null make distclean &>/dev/null ./configure --enable-shared --disable-solaris-audio --disable-al-audio --disable-win --prefix=/usr --enable-oss --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt make install &>loginstall.txt sync cp -afv /usr/bin/a52dec $DESTDIR/usr/bin/;check_status $? cp -afv /usr/bin/extract_a52 $DESTDIR/usr/bin/;check_status $? cp -afv /usr/lib/liba52.so $DESTDIR/usr/lib/;check_status $? cp -afv /usr/lib/liba52.so.0 $DESTDIR/usr/lib/;check_status $? cp -afv /usr/lib/liba52.so.0.0.0 $DESTDIR/usr/lib/;check_status $? sync binstripfunc "$DESTDIR/usr/bin/a52dec" binstripfunc "$DESTDIR/usr/bin/extract_a52" libstripfunc "$DESTDIR/usr/lib/liba52.so.0.0.0" fi fi echo skip_key antiword if [ "$nnn" ];then echo "Compiling and installing antiword..." cd $PUPPYDIR/sources4/antiword-0.33 make clean &>/dev/null make all &>logbuild.txt sync cp -afv antiword $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/antiword" fi echo skip_key pptp-linux if [ "$nnn" ];then echo "Compiling and installing pptp-linux..." echo "Note, pptp is needed by the gadsl package." cd $PUPPYDIR/sources4/pptp-linux-1.3.1 make uninstall &>/dev/null make clean &>/dev/null make &>logbuild.txt make install &>loginstall.txt #installs pptp to /usr/sbin. sync cp -afv /usr/sbin/pptp $DESTDIR/usr/sbin/;check_status $? sync binstripfunc "$DESTDIR/usr/sbin/pptp" fi echo skip_key gadsl if [ "$nnn" ];then echo "Compiling and installing gadsl..." echo "Note, uses pptp." cd $PUPPYDIR/sources4/gadsl-0.1 rm -f main.o &>/dev/null rm -f gadsl &>/dev/null make all &>logbuild.txt sync cp -afv gadsl $DESTDIR/usr/sbin/;check_status $? sync binstripfunc "$DESTDIR/usr/sbin/gadsl" fi echo skip_key grabc if [ "$nnn" ];then echo "Compiling and installing grabc..." cd $PUPPYDIR/sources4/grabc1.1 make clean &>/dev/null make all &>logbuild.txt sync cp -afv grabc $DESTDIR/usr/sbin/;check_status $? sync binstripfunc "$DESTDIR/usr/sbin/grabc" fi echo skip_key gtkfish if [ "$nnn" ];then echo "Compiling and installing gtkfish..." cd $PUPPYDIR/sources4/gtkfish-1.0.1 make clean &>/dev/null make &>logbuild.txt sync cp -afv gtkfish $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/gtkfish" fi echo skip_key gtk-shell if [ "$nnn" ];then echo "Compiling and installing gtk-shell..." cd $PUPPYDIR/sources4/gtk-shell make clean &>/dev/null make &>logbuild.txt sync cp -afv gtk-shell $DESTDIR/usr/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/bin/gtk-shell" fi echo skip_key gwget if [ "$nnn" ];then echo "Compiling and installing gwget..." echo "Note, uses libghttp" cd $PUPPYDIR/sources4/gwget-0.5.2 make distclean &>/dev/null ./configure --disable-nls --host=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt sync cp -afv gwget $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/gwget" fi echo skip_key gyach if [ "$nnn" ];then echo "Compiling and installing gyach..." cd $PUPPYDIR/sources4/gyach-0.9.8 make distclean &>/dev/null ./configure --disable-gtk_v2 &>logconfig.txt make &>logbuild.txt sync cp -afv src/gyach $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/gyach" fi echo echo "The host will have samba, but compiling as need specific settings." skip_key samba if [ "$nnn" ];then echo "Compiling and installing samba..." echo "Note, uses -lpopt" cd $PUPPYDIR/sources4/samba-2.2.7/source make distclean &>/dev/null ./configure --disable-cups --with-ssl --with-smbmount --without-readline --localstatedir=/var --with-privatedir=/etc/samba/private --with-lockdir=/var/locks --with-piddir=/var/locks --with-configdir=/etc/samba --host=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt sync cp -afv bin/smbclient $DESTDIR/usr/sbin/;check_status $? cp -afv bin/smbmnt $DESTDIR/usr/sbin/;check_status $? cp -afv bin/smbmount $DESTDIR/usr/sbin/;check_status $? cp -afv bin/smbumount $DESTDIR/usr/sbin/;check_status $? cp -afv bin/nmblookup $DESTDIR/usr/sbin/;check_status $? sync binstripfunc "$DESTDIR/usr/sbin/smbclient" binstripfunc "$DESTDIR/usr/sbin/smbmnt" binstripfunc "$DESTDIR/usr/sbin/smbmount" binstripfunc "$DESTDIR/usr/sbin/smbumount" binstripfunc "$DESTDIR/usr/sbin/nmblookup" fi echo skip_key linneighborhood if [ "$nnn" ];then echo "Compiling and installing linneighborhood..." cd $PUPPYDIR/sources4/LinNeighborhood-0.6.5 make distclean &>/dev/null ./configure --disable-nls --localstatedir=/var --build=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt sync cp -afv src/LinNeighborhood $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/LinNeighborhood" fi echo echo "Mandrake 9.2 is a problem as libmad.so* is installed but not other parts" echo "of the package, namely madplay and libid3tag.so*" echo "So, have to compile here and overwrite host installation..." skip_key libmad if [ "$nnn" ];then echo "Compiling and installing libmad..." cd $PUPPYDIR/sources4/mad-0.14.2b make distclean &>/dev/null ./configure --enable-fpm=intel --enable-speed --without-esd --disable-debugging --enable-shared --without-esd --disable-nls --prefix=/usr --bindir=/usr/local/bin --sysconfdir=/etc --localstatedir=/var --host=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt if [ -f .libs/madplay ];then rm -f /usr/lib/libmad.* &>/dev/null rm -f /usr/lib/libid3tag.* &>/dev/null sync make install &>logconfig.txt sync #NO, madplay still plays noise in Mandrake!!!... (using mpg123, see createpuppy3) #rm -f $DESTDIR/usr/bin/mpg123 #rm -f $DESTDIR/usr/local/bin/madplay #sync #cp -afv /usr/local/bin/madplay $DESTDIR/usr/local/bin/;check_status $? #ln -s /usr/local/bin/madplay $DESTDIR/usr/bin/mpg123 cp -afv /usr/lib/libmad.so $DESTDIR/usr/lib/;check_status $? cp -afv /usr/lib/libmad.so.0 $DESTDIR/usr/lib/;check_status $? cp -afv /usr/lib/libmad.so.0.1.0 $DESTDIR/usr/lib/;check_status $? cp -afv /usr/lib/libid3tag.so $DESTDIR/usr/lib/;check_status $? cp -afv /usr/lib/libid3tag.so.0 $DESTDIR/usr/lib/;check_status $? cp -afv /usr/lib/libid3tag.so.0.1.0 $DESTDIR/usr/lib/;check_status $? sync #binstripfunc "$DESTDIR/usr/local/bin/madplay" libstripfunc "$DESTDIR/usr/lib/libmad.so.0.1.0" libstripfunc "$DESTDIR/usr/lib/libid3tag.so.0.1.0" else echo "...failed to compile.";check_status 1 fi fi echo echo "Note, ogle needs libmad, libid3tag, libdvdread, libdvdcss" skip_key ogle if [ "$nnn" ];then echo "Compiling and installing ogle..." cd $PUPPYDIR/sources4/ogle-0.9.1 make uninstall &>/dev/null make distclean &>/dev/null ./configure --disable-xv --disable-obsdaudio --disable-sunaudio --disable-alsa --disable-xf86vidmode --disable-xinerama --disable-altivec --enable-oss --localstatedir=/var --build=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt make install &>loginstall.txt sync echo "Filling rootfs-complete/usr/local/lib/ogle/..." cp -af /usr/local/lib/ogle/ogle_ac3_p $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/ogle_audio $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/ogle_cli $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/ogle_ctrl $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/ogle_mpeg_ps $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/ogle_mpeg_vs $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/ogle_nav $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/ogle_vout $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/libdvdcontrol.so $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/libdvdcontrol.so.9 $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/libdvdcontrol.so.9.1.0 $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/libmsgevents.so $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/libmsgevents.so.6 $DESTDIR/usr/local/lib/ogle/;check_status $? cp -af /usr/local/lib/ogle/libmsgevents.so.6.1.0 $DESTDIR/usr/local/lib/ogle/;check_status $? cp -afv /usr/local/bin/ogle $DESTDIR/usr/local/bin/;check_status $? cp -afv /usr/local/bin/ifo_dump $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_ac3_p" binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_audio" binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_cli" binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_ctrl" binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_mpeg_ps" binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_mpeg_vs" binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_nav" binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_vout" libstripfunc "$DESTDIR/usr/local/lib/ogle/libdvdcontrol.so.9.1.0" libstripfunc "$DESTDIR/usr/local/lib/ogle/libmsgevents.so.6.1.0" binstripfunc "$DESTDIR/usr/local/bin/ogle" binstripfunc "$DESTDIR/usr/local/bin/ifo_dump" fi echo echo "NOTE, ogle_gui NEEDS libglade0 DEVEL PACKAGE INSTALLED." skip_key ogle_gui if [ "$nnn" ];then echo "Compiling and installing ogle_gui..." cd $PUPPYDIR/sources4/ogle_gui-0.9.1 make uninstall &>/dev/null make distclean &>/dev/null ./configure --disable-nls --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt make install &>loginstall.txt sync #note, /usr/local/bin/ogle starts ogle. cp -afv /usr/local/lib/ogle/ogle_gui $DESTDIR/usr/local/lib/ogle/;check_status $? echo "ogle_gui needs libglade.so.0 to run..." REALGLADE="`readlink /usr/lib/libglade.so.0 2>/dev/null`" libstripfunc "$REALGLADE" #echo "ogle_gui needs libxml.so.1 to run..." #REALXML1="`readlink /usr/lib/libxml.so.1 2>/dev/null`" #libstripfunc "$REALXML1" #...its too big, hack, put link to libxml2.so instead... REALXML2="`readlink /usr/lib/libxml2.so 2>/dev/null`" ln -s $REALXML2 $DESTDIR/usr/lib/libxml.so.1 #...um, no ogle_gui uses libxml2, but something else in ogle uses libxml1. sync cp -afv /usr/lib/libglade.so.0 $DESTDIR/usr/lib/;check_status $? cp -afv $REALGLADE $DESTDIR/usr/lib/;check_status $? binstripfunc "$DESTDIR/usr/local/lib/ogle/ogle_gui" #cp -afv /usr/lib/libxml.so.1 $DESTDIR/usr/lib/;check_status $? #cp -afv $REALXML1 $DESTDIR/usr/lib/;check_status $? fi echo skip_key gtail if [ "$nnn" ];then echo "Compiling and installing gtail..." cd $PUPPYDIR/sources4/gtail-0.5a make clean &>/dev/null make distclean &>/dev/null ./configure --disable-nls --localstatedir=/var --host=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt sync cp -afv src/gtail $DESTDIR/usr/sbin/;check_status $? sync binstripfunc "$DESTDIR/usr/sbin/gtail" fi echo skip_key superscan if [ "$nnn" ];then echo "Compiling and installing superscan..." echo "Note, have hacked the source a bit, got files from sportal." cd $PUPPYDIR/sources4/superscan make distclean &>/dev/null ./configure --localstatedir=/var &>logconfig.txt make &>logbuild.txt sync cp -afv src/superscan $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/superscan" fi echo skip_key unzip if [ "$nnn" ];then echo "Compiling and installing unzip..." cd $PUPPYDIR/sources4/unzip-5.50 make clean &>/dev/null make -f unix/Makefile linux &>logbuild.txt sync cp -afv unzip $DESTDIR/usr/bin/;check_status $? cp -afv unzipsfx $DESTDIR/usr/bin/;check_status $? cp -afv funzip $DESTDIR/usr/bin/;check_status $? cp -afv unix/zipgrep $DESTDIR/usr/bin/;check_status $? #script. sync binstripfunc "$DESTDIR/usr/bin/unzip" binstripfunc "$DESTDIR/usr/bin/unzipsfx" binstripfunc "$DESTDIR/usr/bin/funzip" fi echo skip_key xcal if [ "$nnn" ];then echo "Compiling and installing xcal..." cd $PUPPYDIR/sources4/xcal-1.4 make distclean &>/dev/null xmkmf &>/dev/null make Makefiles &>/dev/null make derived &>/dev/null make depend &>/dev/null make &>logbuild.txt #error, but gets far enough! sync cp -afv xcal $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/xcal" fi echo skip_key xfprot if [ "$nnn" ];then echo "Compiling and installing xfprot..." cd $PUPPYDIR/sources4/xfprot-0.24b make clean &>/dev/null make &>logbuild.txt sync cp -afv xfprot-gtk $DESTDIR/usr/local/xfprot/;check_status $? sync binstripfunc "$DESTDIR/usr/local/xfprot/xfprot-gtk" fi echo skip_key xhippo if [ "$nnn" ];then echo "Compiling and installing xhippo..." echo "Note, uses libid3tag." cd $PUPPYDIR/sources4/xhippo-3.3 make distclean &>/dev/null ./configure --disable-nls --localstatedir=/var --build=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt sync cp -afv xhippo $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/xhippo" fi echo skip_key xnetload if [ "$nnn" ];then echo "Compiling and installing xnetload..." cd $PUPPYDIR/sources4/xnetload-1.11.3 make clean &>/dev/null make &>logbuild.txt sync cp -afv xnetload $DESTDIR/usr/sbin/;check_status $? sync binstripfunc "$DESTDIR/usr/sbin/xnetload" fi echo skip_key xproc if [ "$nnn" ];then echo "Compiling and installing xproc..." cd $PUPPYDIR/sources4/xproc-src echo "Note, lots of stuff edited." make clean &>/dev/null make &>logbuild.txt sync cp -afv xproc $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/xproc" fi echo skip_key xpuyopuyo if [ "$nnn" ];then echo "Compiling and installing xpuyopuyo..." cd $PUPPYDIR/sources4/xpuyopuyo-0.9.8 make distclean &>/dev/null FNDMIKMOD="`which libmikmod-conf 2>/dev/null`" if [ "$FNDMIKMOD" ];then mv $FNDMIKMOD ${FNDMIKMOD}_HIDE ./configure --without-gnome --with-x --localstatedir=/var --host=i486-pc-linux-gnu &>logconfig.txt mv ${FNDMIKMOD}_HIDE $FNDMIKMOD else ./configure --without-gnome --with-x --localstatedir=/var --host=i486-pc-linux-gnu &>logconfig.txt fi make &>logbuild.txt sync cp -afv xpuyopuyo $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/xpuyopuyo" fi echo skip_key xwhois if [ "$nnn" ];then echo "Compiling and installing xwhois..." cd $PUPPYDIR/sources4/xwhois-0.4.2 make distclean &>/dev/null ./configure --localstatedir=/var --host=i486-pc-linux-gnu &>logconfig.txt make &>logbuild.txt sync cp -afv src/xwhois $DESTDIR/usr/local/bin/;check_status $? sync binstripfunc "$DESTDIR/usr/local/bin/xwhois" fi echo skip_key zip if [ "$nnn" ];then echo "Compiling and installing zip..." cd $PUPPYDIR/sources4/zip-2.3 make -f unix/Makefile clean &>/dev/null make -f unix/Makefile generic_gcc &>logbuild.txt sync cp -afv zip $DESTDIR/usr/bin/;check_status $? cp -afv zipnote $DESTDIR/usr/bin/;check_status $? cp -afv zipsplit $DESTDIR/usr/bin/;check_status $? cp -afv zipcloak $DESTDIR/usr/bin/;check_status $? #script. sync binstripfunc "$DESTDIR/usr/bin/zip" binstripfunc "$DESTDIR/usr/bin/zipnote" binstripfunc "$DESTDIR/usr/bin/zipsplit" binstripfunc "$DESTDIR/usr/bin/zipcloak" fi echo echo "...finished script." ####END####