From 2a7a82094d50b75380b9858eae5eb41ed169378d Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 19 Mar 2009 22:52:58 +0100 Subject: Initial import of gfax 0.7.7 --- data/Makefile.am | 54 ++ data/cups-gfax | 32 + data/gfax.desktop.in | 10 + data/gfax.schemas.in | 286 +++++++++ data/gfax.spec | 95 +++ data/icons/16x16/Makefile.am | 8 + data/icons/16x16/gfax.png | Bin 0 -> 29726 bytes data/icons/48x48/Makefile.am | 9 + data/icons/48x48/gfax.png | Bin 0 -> 2547 bytes data/icons/Makefile.am | 16 + data/icons/scalable/Makefile.am | 8 + data/icons/scalable/gfax.svg | 1248 +++++++++++++++++++++++++++++++++++++++ 12 files changed, 1766 insertions(+) create mode 100644 data/Makefile.am create mode 100755 data/cups-gfax create mode 100644 data/gfax.desktop.in create mode 100644 data/gfax.schemas.in create mode 100644 data/gfax.spec create mode 100644 data/icons/16x16/Makefile.am create mode 100644 data/icons/16x16/gfax.png create mode 100644 data/icons/48x48/Makefile.am create mode 100644 data/icons/48x48/gfax.png create mode 100644 data/icons/Makefile.am create mode 100644 data/icons/scalable/Makefile.am create mode 100644 data/icons/scalable/gfax.svg (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..e782b80 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,54 @@ +SUBDIRS = icons + +desktop_in_files=gfax.desktop.in +desktop_files=$(desktop_in_files:.desktop.in=.desktop) +@INTLTOOL_DESKTOP_RULE@ + +Applicationsdir = $(datadir)/applications +Applications_DATA = $(desktop_files) + +schemas_in_files = gfax.schemas.in +schemasdir = $(GCONF_SCHEMA_FILE_DIR) +schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) + +@INTLTOOL_SCHEMAS_RULE@ + +if GCONF_SCHEMAS_INSTALL +install-data-local: + if test -z "$(DESTDIR)" ; then \ + for p in $(schemas_DATA) ; do \ + GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \ + done \ + fi +else +install-data-local: +endif + +cups-gfax: +backenddir = /usr/lib/cups/backend +backend_EXEC = cups-gfax + +backend_availabledir = /usr/lib/cups/backend-available +backend_available_EXEC = cups-gfax + +install-exec-hook: + $(INSTALL_PROGRAM) $(backend_EXEC) $(backenddir) + $(INSTALL_PROGRAM) $(backend_available_EXEC) $(backend_availabledir) + lpadmin -p Gfax_Facsimile_Printer -v cups-gfax:/ -E + +uninstall-local: + rm -f $(backenddir)/$(backend_EXEC) + rm -f $(backend_availabledir)/$(backend_available_EXEC) + lpadmin -x Gfax_Facsimile_Printer + +EXTRA_DIST = \ + $(backend_EXEC) \ + $(backend_available_EXEC) \ + $(desktop_in_files) \ + $(desktop_files) \ + $(schemas_in_files) \ + $(schemas_DATA) + +DISTCLEANFILES = \ + $(desktop_files) \ + $(schemas_DATA) diff --git a/data/cups-gfax b/data/cups-gfax new file mode 100755 index 0000000..59165fe --- /dev/null +++ b/data/cups-gfax @@ -0,0 +1,32 @@ +#!/bin/bash +# GFAX - Gnome fax application +# Copyright (C) 2003 - 2008 George A. Farris +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Library General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +if [ $# == 0 ] ; then + echo "file cups-gfax:/ \"Unknown\" \"Gfax Facsimile Printer\"" + exit 0 +fi + +RNAME=G$$ +# don't change this spool directory, gfax uses it. +mkdir -p /var/spool/gfax/$2 +chmod 777 /var/spool/gfax/$2 +SPOOL_DIR=/var/spool/gfax/$2 +cp $6 $SPOOL_DIR/D.$RNAME +chmod 666 $SPOOL_DIR/D.$RNAME + +exit 0 diff --git a/data/gfax.desktop.in b/data/gfax.desktop.in new file mode 100644 index 0000000..d8b5d96 --- /dev/null +++ b/data/gfax.desktop.in @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +_Name=Gfax Facsimile Program +_Comment=Send and Receive Facsimiles +Exec=gfax +Icon=gfax +StartupNotify=true +Terminal=false +Type=Application +Categories=GNOME;GTK;Office; diff --git a/data/gfax.schemas.in b/data/gfax.schemas.in new file mode 100644 index 0000000..1f88f78 --- /dev/null +++ b/data/gfax.schemas.in @@ -0,0 +1,286 @@ + + + + /schemas/apps/gfax/general/refresh_queue_interval + /apps/gfax/general/refresh_queue_interval + gfax + int + + 30 + + + /schemas/apps/gfax/general/run_setup_at_start + /apps/gfax/general/run_setup_at_start + gfax + bool + + true + + + /schemas/apps/gfax/general/log_enabled + /apps/gfax/general/log_enabled + gfax + bool + + false + + + /schemas/apps/gfax/general/refresh_queue_enabled + /apps/gfax/general/refresh_queue_enabled + gfax + bool + + false + + + /schemas/apps/gfax/general/send_now + /apps/gfax/general/send_now + gfax + bool + + true + + + /schemas/apps/gfax/general/email_notify + /apps/gfax/general/email_notify + gfax + bool + + true + + + /schemas/apps/gfax/general/cover_page + /apps/gfax/general/cover_page + gfax + bool + + false + + + /schemas/apps/gfax/general/hi_resolution + /apps/gfax/general/hi_resolution + gfax + bool + + true + + + /schemas/apps/gfax/general/faxtracing + /apps/gfax/general/faxtracing + gfax + bool + + false + + + + /schemas/apps/gfax/general/phone_prefix + /apps/gfax/general/phone_prefix + gfax + string + + none + + + /schemas/apps/gfax/general/fax_number + /apps/gfax/general/fax_number + gfax + string + + + + + /schemas/apps/gfax/general/email_address + /apps/gfax/general/email_address + gfax + string + + + + + /schemas/apps/gfax/general/transmit_agent + /apps/gfax/general/transmit_agent + gfax + string + + hylafax + + + /schemas/apps/gfax/general/fax_viewer + /apps/gfax/general/fax_viewer + gfax + string + + evince + + + /schemas/apps/gfax/transport/hylafax/hostname + /apps/gfax/transport/hylafax/hostname + gfax + string + + localhost + + + /schemas/apps/gfax/transport/hylafax/port + /apps/gfax/transport/hylafax/port + gfax + string + + 4559 + + + /schemas/apps/gfax/transport/hylafax/username + /apps/gfax/transport/hylafax/username + gfax + string + + + + + /schemas/apps/gfax/transport/hylafax/password + /apps/gfax/transport/hylafax/password + gfax + string + + + + + + + + /schemas/apps/gfax/transport/efax/efax_modem_device + /apps/gfax/transport/efax/efax_modem_device + gfax + string + ttyS0 + + Modem Device + The serial port the modem is connected too. Typical values are ttyS0, cua0 or modem. + + + + /schemas/apps/gfax/transport/efax/efax_modem_init + /apps/gfax/transport/efax/efax_modem_init + gfax + string + + Modem initialization string + The initialization code that is sent to the modem. + + + + + /schemas/apps/gfax/transport/efax/efax_modem_fcinit + /apps/gfax/transport/efax/efax_modem_fcinit + gfax + string + + + + + /schemas/apps/gfax/transport/efax/efax_modem_reset + /apps/gfax/transport/efax/efax_modem_reset + gfax + string + + Modem reset string + The reset code that resets the modem to a power up state. The -Kz code works with most modems. + + -kZ + + + /schemas/apps/gfax/transport/efax/efax_modem_speaker_mode + /apps/gfax/transport/efax/efax_modem_speaker_mode + gfax + int + 1 + + 0:never, 1:until carrier, 2:always, 3:on receive only + + + + /schemas/apps/gfax/transport/efax/efax_modem_speaker_volume + /apps/gfax/transport/efax/efax_modem_speaker_volume + gfax + int + 0 + + 0:very low, 1:low, 2:medium, 3:high + + + + /schemas/apps/gfax/transport/efax/efax_modem_class + /apps/gfax/transport/efax/efax_modem_class + gfax + string + + Not currently used. + + auto + + + /schemas/apps/gfax/transport/efax/efax_modem_capabilities + /apps/gfax/transport/efax/efax_modem_capabilities + gfax + string + + Not currently used. + + + + + /schemas/apps/gfax/transport/efax/efax_lockfile + /apps/gfax/transport/efax/efax_lockfile + gfax + string + + The name of the lock file according to your system's conventions. If you're running Linux you shouldn't have to touch this. + + /var/lock/LCK.. + + + /schemas/apps/gfax/transport/efax/efax_page_header + /apps/gfax/transport/efax/efax_page_header + gfax + string + + + + + + /schemas/apps/gfax/transport/efax/efax_retries + /apps/gfax/transport/efax/efax_retries + gfax + int + + 10 + + + /schemas/apps/gfax/transport/efax/efax_next_jobid + /apps/gfax/transport/efax/efax_next_jobid + gfax + int + + 0 + + + /schemas/apps/gfax/transport/efax/efax_papersize + /apps/gfax/transport/efax/efax_papersize + gfax + string + + letter + + + /schemas/apps/gfax/transport/efax/efax_debug_messages + /apps/gfax/transport/efax/efax_debug_messages + gfax + string + + c + + + + + diff --git a/data/gfax.spec b/data/gfax.spec new file mode 100644 index 0000000..3530a15 --- /dev/null +++ b/data/gfax.spec @@ -0,0 +1,95 @@ +# created by RPM Builder for Anjuta, v0.1.2 +# http://arpmbuilder.sourceforge.net +# Thu Dec 11 20:34:57 2003 + +%define gfax 0.7.5 +#%define anjuta_plugindir /usr/lib/anjuta +%define _prefix /usr + +Summary: Gnome facsimile software +Name: gfax +Version: 0.7.5 +Release: 1 +Vendor: George Farris (george@gmsys.com> +Packager: George Farris (george@gmsys.com> +Group: Office +License: GPL +Source0: %{name}-%{version}.tar.gz +Url: http://gfax.cowlug.org +BuildRoot: /var/tmp/gfax +BuildArch: noarch +Requires: mono >= 1.0, gtk-sharp >= 1.0, efax >= .9 +# Buildrequires: (none) +# Conflicts: (none) +# Provides: (none) +Obsoletes: gfax + +%description +Gfax is a popup tool for easily sending +facsimilies by printing to a fax printer. + +%prep +%setup -q + +%build +[ ! -f Makefile ] || make clean +make schema +make + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/etc/gconf/schemas +mkdir -p $RPM_BUILD_ROOT/usr/bin +mkdir -p $RPM_BUILD_ROOT/usr/lib/gfax +mkdir -p $RPM_BUILD_ROOT/usr/share/gfax +mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps +mkdir -p $RPM_BUILD_ROOT/usr/share/applications +mkdir -p $RPM_BUILD_ROOT/var/spool/gfax + +install -m 644 data/gfax.schema $RPM_BUILD_ROOT/etc/gconf/schemas/gfax.schemas +install -m 755 src/gfax.exe $RPM_BUILD_ROOT/usr/lib/gfax/gfax.exe +install -m 755 gfax $RPM_BUILD_ROOT/usr/bin/gfax +install -m 755 gfaxlpr $RPM_BUILD_ROOT/usr/bin/gfaxlpr +install -m 644 pixmaps/gfax.png $RPM_BUILD_ROOT/usr/share/pixmaps/gfax.png +install -m 644 data/gfax.desktop $RPM_BUILD_ROOT/usr/share/applications/gfax.desktop +install -m 755 scripts/printer-setup.sh $RPM_BUILD_ROOT/usr/share/gfax/printer-setup.sh +install -m 644 data/fax-g3.profile $RPM_BUILD_ROOT/usr/share/gfax/fax-g3.profile +install -m 644 data/GFAX.xml $RPM_BUILD_ROOT/usr/share/gfax/GFAX.xml +install -m 644 data/GNOME-GFAX-PS.xml $RPM_BUILD_ROOT/usr/share/gfax/GNOME-GFAX-PS.xml + +chmod 777 $RPM_BUILD_ROOT/var/spool/gfax + +#[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +for doc in AUTHORS COPYING README INSTALL NEWS TODO ChangeLog; do + rm -f $RPM_BUILD_ROOT%{_prefix}/doc/gfax/$doc; +done; + +rm -f $RPM_BUILD_ROOT%{gfax}; + +%clean +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%post +export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` +gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gfax.schemas > /dev/null +killall -HUP gconfd-2 +# run the printer install +%{_datadir}/gfax/printer-setup.sh --install + +%preun +%{_datadir}/gfax/printer-setup.sh --remove + +%files +%defattr(-,root,root) +%config %{_sysconfdir}/gconf/schemas/*.schemas +%{_libdir}/gfax/gfax.exe +%{_bindir}/gfax +%{_bindir}/gfaxlpr +%{_datadir}/applications/*.desktop +%{_datadir}/pixmaps/* +%{_datadir}/gfax/* +%defattr(-, root, root, 0777) +%{_localstatedir}/spool/gfax/ + +%doc AUTHORS COPYING ChangeLog README INSTALL NEWS TODO diff --git a/data/icons/16x16/Makefile.am b/data/icons/16x16/Makefile.am new file mode 100644 index 0000000..1e7e42b --- /dev/null +++ b/data/icons/16x16/Makefile.am @@ -0,0 +1,8 @@ +icondir = $(datadir)/icons/hicolor/16x16/apps +icon_DATA = gfax.png + +EXTRA_DIST = \ + $(icon_DATA) + +clean-local : + rm -f *~ diff --git a/data/icons/16x16/gfax.png b/data/icons/16x16/gfax.png new file mode 100644 index 0000000..e0cb102 Binary files /dev/null and b/data/icons/16x16/gfax.png differ diff --git a/data/icons/48x48/Makefile.am b/data/icons/48x48/Makefile.am new file mode 100644 index 0000000..db441f6 --- /dev/null +++ b/data/icons/48x48/Makefile.am @@ -0,0 +1,9 @@ +icondir = $(datadir)/icons/hicolor/48x48/apps +icon_DATA = \ + gfax.png + +EXTRA_DIST = \ + $(icon_DATA) + +clean-local : + rm -f *~ diff --git a/data/icons/48x48/gfax.png b/data/icons/48x48/gfax.png new file mode 100644 index 0000000..49c3db3 Binary files /dev/null and b/data/icons/48x48/gfax.png differ diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am new file mode 100644 index 0000000..714218d --- /dev/null +++ b/data/icons/Makefile.am @@ -0,0 +1,16 @@ + +SUBDIRS = 16x16 48x48 scalable + +gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor + +install-data-hook: + @-if test -z "$(DESTDIR)"; then \ + echo "Updating Gtk icon cache."; \ + $(gtk_update_icon_cache); \ + else \ + echo "*** Icon cache not updated. After install, run this:"; \ + echo "*** $(gtk_update_icon_cache)"; \ + fi + +clean-local : + rm -f *~ diff --git a/data/icons/scalable/Makefile.am b/data/icons/scalable/Makefile.am new file mode 100644 index 0000000..6e73d64 --- /dev/null +++ b/data/icons/scalable/Makefile.am @@ -0,0 +1,8 @@ +icondir = $(datadir)/icons/hicolor/scalable/apps +icon_DATA = gfax.svg + +EXTRA_DIST = \ + $(icon_DATA) + +clean-local : + rm -f *~ diff --git a/data/icons/scalable/gfax.svg b/data/icons/scalable/gfax.svg new file mode 100644 index 0000000..8d1804a --- /dev/null +++ b/data/icons/scalable/gfax.svg @@ -0,0 +1,1248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Fax Device + + + Martin Szulecki + + + + http://sukimashita.com + + + fax + print + hylafax + gfax + efax + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.1-32-gdbae