# GFAX
# ====
# I include the latest stable and development releases below. If you use
# recent versions of mono, gnome, etc., you'll probably want to go with
# the development version.
# As I write this, I am unable to build either version with mono 1.0.10 and
# Gtk# 1.0.10 and 2.4.0 installed.
cd
test -f installed/gfax-0.7.3-1.tar.gz && mv installed/gfax-0.7.3-1.tar.gz .
test ! -f gfax-0.7.3-1.tar.gz &&
wget http://gfax.cowlug.org/gfax-0.7.3-1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gfax-*" -exec rm -r {} \;
tar xzvf ~/gfax-0.7.3-1.tar.gz
mv gfax gfax-0.7.3-1
cd gfax-0.7.3-1
test $UID = 0 && chown -R root:root .
# Fix detection of the version of gnomeprint that you have installed. Without
# the '-' the configure test finds two files (if you have libgnomeprint and
# libgnomeprintui installed) which screws up the test.
cat configure.in | sed 's/grep libgnomeprint/grep libgnomeprint-/' \
> configure.in.new
test -s configure.in.new &&
( mv -f configure.in configure.in.orig
mv -f configure.in.new configure.in )
autoreconf -f -i
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/gfax-*.tar.*
mv gfax-0.7.3-1.tar.gz installed/
# /usr/share/pixmaps/gfax.png can be used as a desktop icon
# Because I use KDE, I guess, I have to run gfax like so:
# gconftool-2 --spawn ; gfax
# Install/update the XML::Parser perl module:
su -c "perl -MCPAN -e shell"
o conf make_install_arg UNINST=1
o conf prerequisites_policy follow
install Bundle::CPAN
install XML::Parser
exit
cd
test -f installed/gfax-074-devel-051223.tar.gz &&
mv installed/gfax-074-devel-051223.tar.gz .
test ! -f gfax-074-devel-051223.tar.gz &&
wget http://gfax.cowlug.org/gfax-074-devel-051223.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gfax-*" -exec rm -r {} \;
tar xzvf ~/gfax-074-devel-051223.tar.gz
cd gfax-0.7.4
test $UID = 0 && chown -R root:root .
# Patch it to fix detection of the version of libgnomeprint that you have
# installed. As it is now, it will fine libgnomeprint and libgnomeprintui,
# which screws up the test. This will look for libgnomeprint-2.2, so if
# you have libgnomeprint-2.0 installed, either fix the patch or see what
# the other version does above.
wget -nc http://englanders.cc/pub/linux/patches/gfax-074-lgp.patch &&
patch -p0 < gfax-074-lgp.patch
autoreconf -f -i