summaryrefslogtreecommitdiff
path: root/comms/efax-gtk
diff options
context:
space:
mode:
authoradam <adam>2005-03-30 13:49:28 +0000
committeradam <adam>2005-03-30 13:49:28 +0000
commitf4b34ad8428ab4a9e1237468e20ccc7cbcfbce3e (patch)
treeeba0653bd5fa8b03ee9d4351e71a6c27989a3ae4 /comms/efax-gtk
parente1095d15d1102b88142011f3aaed475b22868ee2 (diff)
downloadpkgsrc-f4b34ad8428ab4a9e1237468e20ccc7cbcfbce3e.tar.gz
Changes 2.2.15:
Fix bug where the Trash folder is dragged in the fax lists (fax_list_manager.cpp). Greek translation added (the Hellenic Linux Users Group translation team). Italian translation updated (Luca De Rugeriis). Adjust image sizes for toolbar buttons in GTK+2.4 or higher (fax_list.cpp, file_list.cpp and socket_list.cpp). Provision to ensure synchronisation of memory where necessary in multi-processor systems (efax_controller.h and efax_controller.cpp).
Diffstat (limited to 'comms/efax-gtk')
-rw-r--r--comms/efax-gtk/Makefile49
-rw-r--r--comms/efax-gtk/PLIST14
-rw-r--r--comms/efax-gtk/distinfo17
-rw-r--r--comms/efax-gtk/patches/patch-aa57
-rw-r--r--comms/efax-gtk/patches/patch-ab62
-rw-r--r--comms/efax-gtk/patches/patch-ac81
-rw-r--r--comms/efax-gtk/patches/patch-ad38
7 files changed, 148 insertions, 170 deletions
diff --git a/comms/efax-gtk/Makefile b/comms/efax-gtk/Makefile
index 2d9df574dd4..fc17a09ede1 100644
--- a/comms/efax-gtk/Makefile
+++ b/comms/efax-gtk/Makefile
@@ -1,39 +1,30 @@
-# $NetBSD: Makefile,v 1.16 2004/12/29 15:42:37 minskim Exp $
+# $NetBSD: Makefile,v 1.17 2005/03/30 13:49:28 adam Exp $
-DISTNAME= efax-gtk-1.0.1b.src
-PKGNAME= efax-gtk-1.0.1b
-PKGREVISION= 6
-CATEGORIES= comms
-MASTER_SITES= http://www.cvine.freeserve.co.uk/efax-gtk/
-EXTRACT_SUFX= .tgz
+DISTNAME= efax-gtk-2.2.15.src
+PKGNAME= efax-gtk-2.2.15
+CATEGORIES= comms
+MASTER_SITES= http://www.cvine.freeserve.co.uk/efax-gtk/
+EXTRACT_SUFX= .tgz
-MAINTAINER= tech-pkg@NetBSD.org
-HOMEPAGE= http://www.cvine.freeserve.co.uk/efax-gtk/
-COMMENT= GTK frontend for efax
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.cvine.freeserve.co.uk/efax-gtk/
+COMMENT= GTK frontend for efax
-DEPENDS+= efax>=0.9:../../comms/efax
+DEPENDS+= efax>=0.9:../../comms/efax
-WRKSRC= ${WRKDIR}/efax-gtk
-GNU_CONFIGURE= YES
-USE_BUILDLINK3= YES
-USE_PKGINSTALL= YES
-
-CONFIGURE_ARGS+= --with-spooldir=${VARBASE}/spool/efax
+WRKSRC= ${WRKDIR}/${PKGNAME}
+USE_BUILDLINK3= yes
+USE_PKGINSTALL= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --with-spooldir=${VARBASE}/spool/efax
-EGDIR= ${PREFIX}/share/examples/efax-gtk
+EGDIR= ${PREFIX}/share/examples
CONF_FILES= ${EGDIR}/efax-gtkrc ${PKG_SYSCONFDIR}/efax-gtkrc
-BUILD_TARGET= efax-gtk
-
-post-extract:
- ${GZIP_CMD} -d ${WRKSRC}/efax-gtk.1.gz
-
-pre-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/efax-gtk
-
-.include "../../devel/libsigc++10/buildlink3.mk"
-.include "../../x11/gtk/buildlink3.mk"
-.include "../../x11/gtk--/buildlink3.mk"
+.include "../../devel/libsigc++2/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../x11/gtkmm24/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/comms/efax-gtk/PLIST b/comms/efax-gtk/PLIST
index a3ecb18782c..a19ebf0161a 100644
--- a/comms/efax-gtk/PLIST
+++ b/comms/efax-gtk/PLIST
@@ -1,6 +1,12 @@
-@comment $NetBSD: PLIST,v 1.2 2002/12/25 13:18:24 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.3 2005/03/30 13:49:28 adam Exp $
bin/efax-gtk
-bin/efax-gtk-send
man/man1/efax-gtk.1
-share/examples/efax-gtk/efax-gtkrc
-@dirrm share/examples/efax-gtk
+share/applications/efax-gtk.desktop
+share/examples/efax-gtkrc
+${PKGLOCALEDIR}/locale/bg/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/el/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/en_GB/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/he/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/it/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/efax-gtk.mo
+${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/efax-gtk.mo
diff --git a/comms/efax-gtk/distinfo b/comms/efax-gtk/distinfo
index 6035b6ee039..a0d9f5f6029 100644
--- a/comms/efax-gtk/distinfo
+++ b/comms/efax-gtk/distinfo
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.5 2005/02/23 16:05:29 agc Exp $
+$NetBSD: distinfo,v 1.6 2005/03/30 13:49:28 adam Exp $
-SHA1 (efax-gtk-1.0.1b.src.tgz) = 74b92928239ec810ae1691205c96dd179f059e87
-RMD160 (efax-gtk-1.0.1b.src.tgz) = 589f1bb151d23d4cb5fe9a9dca187ad22833eda0
-Size (efax-gtk-1.0.1b.src.tgz) = 110544 bytes
-SHA1 (patch-aa) = f6963b4adb7f65e63f386f0c60dded7f6236323b
-SHA1 (patch-ab) = d8bc963880c06a86f9562defed1185301cc84ad0
-SHA1 (patch-ac) = 00e80cf93f1122627f8b88bb6ebe49a3bbc6de51
-SHA1 (patch-ad) = 9fe7a1e26dae9653909f33b7f98324b9afa3ada9
-SHA1 (patch-ae) = ce594dbd2cbf67efca9109b0e3c38cbed7e48a21
+SHA1 (efax-gtk-2.2.15.src.tgz) = 119ff4f08c3dd2e7c9238310dda62f4d33bea7de
+RMD160 (efax-gtk-2.2.15.src.tgz) = e0531c813a3e1eb4dd893f3bba1a273d9d5dc13f
+Size (efax-gtk-2.2.15.src.tgz) = 708848 bytes
+SHA1 (patch-aa) = cb333234fecc9777f0667508086fb23303e3accf
+SHA1 (patch-ab) = 9c5bfb781e39955a5fa25d72424c3cd0b7cb4eaf
+SHA1 (patch-ac) = dc991277bbcecd44c166bff0880e136fc7443337
+SHA1 (patch-ad) = 615bee9838f29b03ad5f81afd7dc4ed5e648ca62
diff --git a/comms/efax-gtk/patches/patch-aa b/comms/efax-gtk/patches/patch-aa
index 8461715d2ee..b95276d618b 100644
--- a/comms/efax-gtk/patches/patch-aa
+++ b/comms/efax-gtk/patches/patch-aa
@@ -1,38 +1,29 @@
-$NetBSD: patch-aa,v 1.3 2003/11/14 11:18:57 wiz Exp $
+$NetBSD: patch-aa,v 1.4 2005/03/30 13:49:28 adam Exp $
---- Makefile.presets.orig Sat Apr 6 13:07:24 2002
-+++ Makefile.presets
-@@ -5,7 +5,7 @@
- # produced by using automake
+--- Makefile.in.orig 2005-02-26 14:41:26.000000000 +0000
++++ Makefile.in
+@@ -141,7 +141,7 @@ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
- OUTPUT_OPTION = -o $@
--COMPILE_OPTION = -c $*.cpp
-+COMPILE_OPTION = -DRCDIR=\"$(RCDIR)\" -c $*.cpp
- FAX_TARGETS = main.o pipes.o mainwindow.o dialogs.o efax_controller.o fax_list.o addressbook.o settings.o settings_help.o
+-SUBDIRS = src efax po efax-gtk-faxfilter
++SUBDIRS = src po efax-gtk-faxfilter
+ desktopdir = $(datadir)/applications
-@@ -40,18 +40,12 @@ settings_help.o: settings_help.cpp setti
- $(CC) $(CXXFLAGS) $(COMPILE_OPTION) $(OUTPUT_OPTION)
+@@ -265,12 +265,12 @@ uninstall-desktopDATA:
+ sysconfDATA_INSTALL = $(INSTALL_DATA)
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(datadir)/examples
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
+- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
++ echo " $(sysconfDATA_INSTALL) $$d$$p $(datadir)/examples/$$f"; \
++ $(sysconfDATA_INSTALL) $$d$$p $(datadir)/examples/$$f; \
+ done
- install: efax-gtk
-- $(INSTALL) -d $(BINDIR)
-- $(INSTALL) -d $(RCDIR)
-- $(INSTALL) -d $(MANDIR)/man1
-- $(INSTALL) -m644 -oroot -groot efax-gtk efax-gtk-send $(BINDIR)/
-- chmod +x $(BINDIR)/efax-gtk
-- chmod +x $(BINDIR)/efax-gtk-send
-- $(INSTALL) -m644 -oroot -groot efax-gtkrc $(RCDIR)/
-- $(INSTALL) -m644 -oroot -groot efax-gtk.1.gz $(MANDIR)/man1/
-- $(INSTALL) -d $(SPOOLDIR)
-- chgrp lp $(SPOOLDIR)
-- $(INSTALL) -m644 -oroot -groot efax-gtk-faxfilter $(SPOOLDIR)/
-- chmod +x $(SPOOLDIR)/efax-gtk-faxfilter
-+ $(BSD_INSTALL_PROGRAM) efax-gtk $(BINDIR)/
-+ $(BSD_INSTALL_SCRIPT) efax-gtk-send $(BINDIR)/
-+ $(BSD_INSTALL_DATA) efax-gtkrc $(DATADIR)/examples/efax-gtk/
-+ $(BSD_INSTALL_MAN) efax-gtk.1 $(MANDIR)/man1/
-+ $(BSD_INSTALL_DATA_DIR) $(SPOOLDIR)
-+ $(BSD_INSTALL_SCRIPT) efax-gtk-faxfilter $(SPOOLDIR)/
-
- clean:
- rm -f *.o
+ uninstall-sysconfDATA:
diff --git a/comms/efax-gtk/patches/patch-ab b/comms/efax-gtk/patches/patch-ab
index ada89c68481..0bb6597da0e 100644
--- a/comms/efax-gtk/patches/patch-ab
+++ b/comms/efax-gtk/patches/patch-ab
@@ -1,32 +1,44 @@
-$NetBSD: patch-ab,v 1.2 2002/12/25 13:18:25 jmmv Exp $
+$NetBSD: patch-ab,v 1.3 2005/03/30 13:49:28 adam Exp $
---- main.cpp.orig Sat Apr 6 13:07:24 2002
-+++ main.cpp
-@@ -106,7 +106,7 @@ string configure_prog(bool reread) {
+--- src/efax_controller.cpp.orig 2005-03-30 15:38:46.000000000 +0000
++++ src/efax_controller.cpp
+@@ -234,8 +234,8 @@ std::pair<const char*, char* const*> Efa
- if (!prog_config.found_rcfile) {
+ *temp_pp = 0;
-- rcfile = "/usr/local/etc/";
-+ rcfile = RCDIR "/";
- rcfile += RC_FILE;
+- char* prog_name = new char[std::strlen("efax-0.9a") + 1];
+- std::strcpy(prog_name, "efax-0.9a");
++ char* prog_name = new char[std::strlen("efax") + 1];
++ std::strcpy(prog_name, "efax");
- #ifdef HAVE_IOS_NOCREATE
-@@ -123,7 +123,7 @@ string configure_prog(bool reread) {
+ return std::pair<const char*, char* const*>(prog_name, exec_parms);
+ }
+@@ -290,7 +290,7 @@ void EfaxController::sendfax_slot(void)
- if (!prog_config.found_rcfile) {
+ // if we reached this point, then the execvp() call must have failed
+ // report error and exit - uses _exit() and not exit()
+- write_error("Can't find the efax-0.9a program - please check your installation\n"
++ write_error("Can't find the efax program - please check your installation\n"
+ "and the PATH environmental variable\n");
+ _exit(EXEC_ERROR);
+ } // end of child process
+@@ -634,8 +634,8 @@ std::pair<const char*, char* const*> Efa
+
+ *temp_pp = 0;
-- rcfile = "/etc/";
-+ rcfile = RCDIR "/";
- rcfile += RC_FILE;
+- char* prog_name = new char[std::strlen("efax-0.9a") + 1];
+- std::strcpy(prog_name, "efax-0.9a");
++ char* prog_name = new char[std::strlen("efax") + 1];
++ std::strcpy(prog_name, "efax");
+
+ return std::pair<const char*, char* const*>(prog_name, exec_parms);
+ }
+@@ -742,7 +742,7 @@ void EfaxController::receive(State mode)
- #ifdef HAVE_IOS_NOCREATE
-@@ -139,8 +139,7 @@ string configure_prog(bool reread) {
- }
-
- if (!prog_config.found_rcfile) {
-- return_val = "Can't find or open file /etc/" RC_FILE ",\n"
-- "/usr/local/etc/" RC_FILE;
-+ return_val = "Can't find or open file " RCDIR "/" RC_FILE;
- if (!prog_config.homedir.empty()) {
- return_val += " or ";
- return_val += prog_config.homedir + "/." RC_FILE;
+ // if we reached this point, then the execvp() call must have failed
+ // report the error and end this process - use _exit() and not exit()
+- write_error("Can't find the efax-0.9a program - please check your installation\n"
++ write_error("Can't find the efax program - please check your installation\n"
+ "and the PATH environmental variable\n");
+ _exit(EXEC_ERROR);
+ } // end of child process
diff --git a/comms/efax-gtk/patches/patch-ac b/comms/efax-gtk/patches/patch-ac
index 267d7e15e16..7c57dcbce9f 100644
--- a/comms/efax-gtk/patches/patch-ac
+++ b/comms/efax-gtk/patches/patch-ac
@@ -1,49 +1,42 @@
-$NetBSD: patch-ac,v 1.2 2002/12/25 13:18:25 jmmv Exp $
+$NetBSD: patch-ac,v 1.3 2005/03/30 13:49:28 adam Exp $
---- settings.cpp.orig Sat Apr 6 13:07:24 2002
-+++ settings.cpp
-@@ -1040,13 +1040,11 @@ void SettingsDialog::read_config(bool se
- if (!get_rcfile_path(search_localfile)) {
- string message;
- if (search_localfile) {
-- message = "Can't find or open file /etc/" RC_FILE ",\n"
-- "/usr/local/etc/" RC_FILE " or ";
-+ message = "Can't find or open file " RCDIR "/" RC_FILE " or ";
- message += prog_config.homedir + "/." RC_FILE "\n";
- }
- else {
-- message = "Can't find or open file /etc/" RC_FILE "\n"
-- "or /usr/local/etc/" RC_FILE;
-+ message = "Can't find or open file " RCDIR "/" RC_FILE;
- message += prog_config.homedir + "/." RC_FILE "\n";
- }
- write_error(message.c_str());
-@@ -1172,8 +1170,7 @@ void SettingsDialog::read_config(bool se
- }
+--- src/fax_list.cpp.orig 2005-03-30 15:43:12.000000000 +0000
++++ src/fax_list.cpp
+@@ -533,7 +533,7 @@ std::pair<const char*, char* const*> Fax
+ std::vector<std::string> efix_parms;
+ std::string temp;
+
+- efix_parms.push_back("efix-0.9a");
++ efix_parms.push_back("efix");
+ // shut up efix (comment out next line and uncomment following one if errors to be reported)
+ efix_parms.push_back("-v");
+ //efix_parms.push_back("-ve");
+@@ -679,8 +679,8 @@ std::pair<const char*, char* const*> Fax
+
+ *temp_pp = 0;
+
+- char* prog_name = new char[std::strlen("efix-0.9a") + 1];
+- std::strcpy(prog_name, "efix-0.9a");
++ char* prog_name = new char[std::strlen("efix") + 1];
++ std::strcpy(prog_name, "efix");
- void SettingsDialog::get_reset_settings_prompt(void) {
-- PromptDialog* dialog_p = new PromptDialog("Enter settings from /etc/efax-gtkrc or\n"
-- "/usr/local/etc/efax-gtkrc?",
-+ PromptDialog* dialog_p = new PromptDialog("Enter settings from " RCDIR "/efax-gtkrc?",
- "Reset settings", standard_size, *this);
- if (!dialog_p) {
- cerr << "Memory allocation error in SettingsDialog::get_reset_settings_prompt()" << endl;
-@@ -1248,17 +1245,11 @@ bool SettingsDialog::get_rcfile_path(boo
+ return std::pair<const char*, char* const*>(prog_name, exec_parms);
+ }
+@@ -886,7 +886,7 @@ void FaxListDialog::print_fax_thread(voi
- if (!found_rcfile) {
+ // if we reached this point, then the execvp() call must have failed
+ // report error and then end process - use _exit(), not exit()
+- write_error("Can't find the efix-0.9a program - please check your installation\n"
++ write_error("Can't find the efix program - please check your installation\n"
+ "and the PATH environmental variable\n");
+ _exit(0);
+ }
+@@ -1004,7 +1004,7 @@ void FaxListDialog::view_fax_thread(void
-- rcfile = "/usr/local/etc/";
-+ rcfile = RCDIR "/";
- rcfile += RC_FILE;
- if (!access(rcfile.c_str(), F_OK)) found_rcfile = true;
+ // if we reached this point, then the execvp() call must have failed
+ // report error and then end process - use _exit(), not exit()
+- write_error("Can't find the efix-0.9a program - please check your installation\n"
++ write_error("Can't find the efix program - please check your installation\n"
+ "and the PATH environmental variable\n");
+ _exit(0);
}
-
-- if (!found_rcfile) {
--
-- rcfile = "/etc/";
-- rcfile += RC_FILE;
-- if (!access(rcfile.c_str(), F_OK)) found_rcfile = true;
-- }
- if (!found_rcfile) rcfile = "";
- return found_rcfile;
- }
diff --git a/comms/efax-gtk/patches/patch-ad b/comms/efax-gtk/patches/patch-ad
index 97c0cd6dd2f..4f09fd33a04 100644
--- a/comms/efax-gtk/patches/patch-ad
+++ b/comms/efax-gtk/patches/patch-ad
@@ -1,27 +1,13 @@
-$NetBSD: patch-ad,v 1.1 2002/12/25 13:18:25 jmmv Exp $
+$NetBSD: patch-ad,v 1.2 2005/03/30 13:49:28 adam Exp $
---- helpfile.h.orig Sat Apr 6 13:07:24 2002
-+++ helpfile.h
-@@ -135,10 +135,10 @@ const char helpfile_msg[] =
- "--------\n"
- "\n"
- "The program settings can be changed by manually editing the efax-gtk\n"
--"configuration file comprising $HOME/.efax-gtkrc,\n"
--"/usr/local/etc/efax-gtkrc or /etc/efax-gtkrc. The file is searched\n"
-+"configuration file comprising $HOME/.efax-gtkrc or\n"
-+RCDIR "/efax-gtkrc. The file is searched\n"
- "for in that order, so $HOME/.efax-gtkrc takes precedence over the\n"
--"other two.\n"
-+"other one.\n"
- "\n"
- "The configuration file can also be set by using the Settings dialog\n"
- "launched from the `File/Settings' pull down menu item. The settings\n"
-@@ -147,7 +147,7 @@ const char helpfile_msg[] =
- "revert to the global settings, this can be done either by deleting the\n"
- "$HOME/.efax-gtkrc file, or by pressing the `Reset' button in the\n"
- "Settings dialog, which will reload the Settings dialog from\n"
--"/etc/efax-gtkrc or /usr/local/etc/efax-gtkrc.\n"
-+RCDIR "/efax-gtkrc.\n"
- "\n"
- "Help can be obtained when filling out the Settings dialog by holding\n"
- "the mouse over the relevant help (?) button, which will bring up a\n"
+--- src/main.cpp.orig 2005-03-30 15:44:28.000000000 +0000
++++ src/main.cpp
+@@ -429,7 +429,7 @@ Glib::ustring configure_prog(bool reread
+
+ // we have finished reading the configuration file
+ // now enter parameters common to send and receive of faxes
+- prog_config.parms.push_back("efax-0.9a");
++ prog_config.parms.push_back("efax");
+
+ prog_config.parms.push_back("-vew"); // stderr -- errors and warnings
+