summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/seahorse/Makefile52
-rw-r--r--security/seahorse/distinfo2
-rw-r--r--security/seahorse/files/patch-agent_seahorse-agent-io.c32
-rw-r--r--security/seahorse/files/patch-agent_seahorse-agent.c19
-rw-r--r--security/seahorse/files/patch-libseahorse_seahorse-gpg-options.c11
-rw-r--r--security/seahorse/files/patch-libseahorse_seahorse-key-store.c22
-rw-r--r--security/seahorse/files/patch-libseahorse_seahorse-widget.c11
-rw-r--r--security/seahorse/files/patch-src_seahorse-generate-druid.c13
-rw-r--r--security/seahorse/pkg-descr8
-rw-r--r--security/seahorse/pkg-plist91
10 files changed, 261 insertions, 0 deletions
diff --git a/security/seahorse/Makefile b/security/seahorse/Makefile
new file mode 100644
index 000000000..e2d10f5f9
--- /dev/null
+++ b/security/seahorse/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: Seahorse
+# Date created: 08 March 2000
+# Whom: Dave McKay <dave@mu.org>
+#
+# $FreeBSD: ports/security/seahorse/Makefile,v 1.34 2005/02/01 21:26:59 marcus Exp $
+#
+
+PORTNAME= seahorse
+PORTVERSION= 0.7.5
+PORTREVISION= 1
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR=sources/${PORTNAME}/0.7
+DIST_SUBDIR= gnome2
+
+MAINTAINER= asa@agava.com
+COMMENT= A front end for GnuPG
+
+BUILD_DEPENDS= gpg:${PORTSDIR}/security/gnupg
+RUN_DEPENDS= ${BUILD_DEPENDS}
+LIB_DEPENDS= gpgme.14:${PORTSDIR}/security/gpgme
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GNOME= gnomehack intlhack gnomeprefix eel2
+USE_LIBTOOL_VER=15
+USE_REINPLACE= yes
+INSTALLS_OMF= yes
+CONFIGURE_ARGS= --disable-gpg-check
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+GCONF_SCHEMAS= seahorse.schemas
+
+OPTIONS= GEDIT "Enable the gedit plug-in" on
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GEDIT)
+BUILD_DEPENDS+= gedit:${PORTSDIR}/editors/gedit
+RUN_DEPENDS+= gedit:${PORTSDIR}/editors/gedit
+PLIST_SUB+= GEDIT=""
+post-patch:
+ @${REINPLACE_CMD} -e "s|gedit-2.8|gedit-2.10|g" \
+ ${WRKSRC}/configure
+.else
+PLIST_SUB+= GEDIT="@comment "
+CONFIGURE_ARGS+=--disable-gedit
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/seahorse/distinfo b/security/seahorse/distinfo
new file mode 100644
index 000000000..3659cf102
--- /dev/null
+++ b/security/seahorse/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnome2/seahorse-0.7.5.tar.bz2) = aa113297dbc5525a4853e73bedb9af45
+SIZE (gnome2/seahorse-0.7.5.tar.bz2) = 937238
diff --git a/security/seahorse/files/patch-agent_seahorse-agent-io.c b/security/seahorse/files/patch-agent_seahorse-agent-io.c
new file mode 100644
index 000000000..73f68960e
--- /dev/null
+++ b/security/seahorse/files/patch-agent_seahorse-agent-io.c
@@ -0,0 +1,32 @@
+--- agent/seahorse-agent-io.c.orig Fri Jan 28 15:52:18 2005
++++ agent/seahorse-agent-io.c Fri Jan 28 15:54:19 2005
+@@ -377,12 +377,18 @@
+ gsize length;
+ GError *err = NULL;
+ gboolean ret = TRUE;
++ GIOStatus status;
+
+ if (condition & G_IO_IN) {
+ /* Read 1 line from the io channel, including newline character */
+- g_io_channel_read_line (source, &string, &length, NULL, &err);
++ status = g_io_channel_read_line (source, &string, &length, NULL, &err);
+
+- if (err != NULL) {
++ if (status == G_IO_STATUS_EOF) {
++ free_conn (cn);
++ ret = FALSE;
++ }
++
++ else if (err != NULL) {
+ g_critical ("couldn't read from socket: %s", err->message);
+ g_clear_error (&err);
+ free_conn (cn);
+@@ -398,7 +404,7 @@
+ g_free (string);
+ }
+
+- if (condition & G_IO_HUP) {
++ else if (condition & G_IO_HUP) {
+ free_conn (cn);
+ ret = FALSE; /* removes watch */
+ }
diff --git a/security/seahorse/files/patch-agent_seahorse-agent.c b/security/seahorse/files/patch-agent_seahorse-agent.c
new file mode 100644
index 000000000..577649bbf
--- /dev/null
+++ b/security/seahorse/files/patch-agent_seahorse-agent.c
@@ -0,0 +1,19 @@
+--- agent/seahorse-agent.c.orig Mon Jan 31 11:14:02 2005
++++ agent/seahorse-agent.c Mon Jan 31 11:14:48 2005
+@@ -309,7 +309,6 @@
+ * All functions after this point have to print messages
+ * nicely and not just called exit()
+ */
+- daemonize (sockname);
+
+ /* Handle some signals */
+ signal (SIGINT, on_quit);
+@@ -322,6 +321,8 @@
+ /* Initialize our sub systems */
+ seahorse_agent_actions_init ();
+ seahorse_agent_cache_init ();
++
++ daemonize (sockname);
+
+ if (seahorse_agent_io_init () == -1)
+ return 1; /* message already printed */
diff --git a/security/seahorse/files/patch-libseahorse_seahorse-gpg-options.c b/security/seahorse/files/patch-libseahorse_seahorse-gpg-options.c
new file mode 100644
index 000000000..2eca53c2d
--- /dev/null
+++ b/security/seahorse/files/patch-libseahorse_seahorse-gpg-options.c
@@ -0,0 +1,11 @@
+--- libseahorse/seahorse-gpg-options.c.orig Wed Jan 26 12:11:42 2005
++++ libseahorse/seahorse-gpg-options.c Wed Jan 26 12:11:57 2005
+@@ -31,7 +31,7 @@
+ #include "seahorse-gpg-options.h"
+
+ #define GPG_CONF_HEADER "# FILE CREATED BY SEAHORSE\n\n"
+-#define GPG_VERSION_PREFIX "1.2."
++#define GPG_VERSION_PREFIX "1.4."
+
+ static gchar gpg_homedir[MAXPATHLEN];
+ static gboolean gpg_options_inited = FALSE;
diff --git a/security/seahorse/files/patch-libseahorse_seahorse-key-store.c b/security/seahorse/files/patch-libseahorse_seahorse-key-store.c
new file mode 100644
index 000000000..fc8b7af60
--- /dev/null
+++ b/security/seahorse/files/patch-libseahorse_seahorse-key-store.c
@@ -0,0 +1,22 @@
+--- libseahorse/seahorse-key-store.c.orig Wed Dec 22 15:18:27 2004
++++ libseahorse/seahorse-key-store.c Wed Dec 22 15:19:48 2004
+@@ -184,6 +184,8 @@
+ {
+ GObject* obj = G_OBJECT_CLASS (parent_class)->constructor (type, n_props, props);
+ SeahorseKeyStore* skstore = SEAHORSE_KEY_STORE (obj);
++ guint cols;
++ GType* types;
+
+ /* init private vars */
+ skstore->priv = g_new0 (SeahorseKeyStorePriv, 1);
+@@ -191,8 +193,8 @@
+ NULL, (GDestroyNotify)seahorse_key_row_free);
+
+ /* Setup the store */
+- guint cols = SEAHORSE_KEY_STORE_GET_CLASS (skstore)->n_columns;
+- GType* types = (GType*)SEAHORSE_KEY_STORE_GET_CLASS (skstore)->col_types;
++ cols = SEAHORSE_KEY_STORE_GET_CLASS (skstore)->n_columns;
++ types = (GType*)SEAHORSE_KEY_STORE_GET_CLASS (skstore)->col_types;
+ gtk_tree_store_set_column_types (GTK_TREE_STORE (obj), cols, types);
+
+ /* Setup the sort and filter */
diff --git a/security/seahorse/files/patch-libseahorse_seahorse-widget.c b/security/seahorse/files/patch-libseahorse_seahorse-widget.c
new file mode 100644
index 000000000..ee8063fb0
--- /dev/null
+++ b/security/seahorse/files/patch-libseahorse_seahorse-widget.c
@@ -0,0 +1,11 @@
+--- libseahorse/seahorse-widget.c.orig Mon Dec 13 23:49:49 2004
++++ libseahorse/seahorse-widget.c Mon Dec 13 23:49:57 2004
+@@ -197,7 +197,7 @@
+ {
+ //error check help
+ if (g_str_equal (swidget->name, "key-manager"))
+- gnome_help_display (PACKAGE, "toc", NULL);
++ gnome_help_display (PACKAGE, NULL, NULL);
+ else
+ gnome_help_display (PACKAGE, swidget->name, NULL);
+ }
diff --git a/security/seahorse/files/patch-src_seahorse-generate-druid.c b/security/seahorse/files/patch-src_seahorse-generate-druid.c
new file mode 100644
index 000000000..9e356ed1a
--- /dev/null
+++ b/security/seahorse/files/patch-src_seahorse-generate-druid.c
@@ -0,0 +1,13 @@
+--- src/seahorse-generate-druid.c.orig Wed Dec 22 15:22:02 2004
++++ src/seahorse-generate-druid.c Wed Dec 22 15:22:22 2004
+@@ -173,8 +173,9 @@
+ gboolean
+ on_druidpagestandard4_next (GnomeDruidPage *gnomedruidpage, GtkWidget *widget, SeahorseWidget *swidget)
+ {
++ GtkWidget *druidpage;
+ g_print("go to finish\n");
+- GtkWidget *druidpage = glade_xml_get_widget (swidget->xml, "druidpagefinish1");
++ druidpage = glade_xml_get_widget (swidget->xml, "druidpagefinish1");
+
+ gnome_druid_page_prepare (GNOME_DRUID_PAGE(druidpage));
+ gtk_widget_show (druidpage);
diff --git a/security/seahorse/pkg-descr b/security/seahorse/pkg-descr
new file mode 100644
index 000000000..ea4098271
--- /dev/null
+++ b/security/seahorse/pkg-descr
@@ -0,0 +1,8 @@
+Seahorse is a Gnome front end for GnuPG - the Gnu Privacy Guard program.
+
+It is a tool for secure communications and data storage.
+Data encryption and digital signature creation can easily
+be performed through a GUI and Key Management operations
+can easily be carried out through an intuitive interface.
+
+WWW: http://seahorse.sourceforge.net/
diff --git a/security/seahorse/pkg-plist b/security/seahorse/pkg-plist
new file mode 100644
index 000000000..9d09f8ba2
--- /dev/null
+++ b/security/seahorse/pkg-plist
@@ -0,0 +1,91 @@
+bin/seahorse
+bin/seahorse-agent
+bin/seahorse-pgp-preferences
+lib/bonobo/libseahorse-pgp-file-listener.so
+%%GEDIT%%lib/gedit-2/plugins/libseahorse-pgp.so
+%%GEDIT%%lib/gedit-2/plugins/seahorse-pgp.gedit-plugin
+lib/libseahorse-internal.a
+lib/libseahorse-internal.so
+lib/libseahorse-internal.so.0
+libdata/bonobo/servers/Seahorse_PGP_File_Listener.server
+share/gnome/applications/seahorse.desktop
+share/gnome/control-center-2.0/capplets/seahorse-pgp-preferences.desktop
+share/gnome/help/seahorse/C/figures/export.png
+share/gnome/help/seahorse/C/figures/file-manager.png
+share/gnome/help/seahorse/C/figures/generate.png
+share/gnome/help/seahorse/C/figures/import.png
+share/gnome/help/seahorse/C/figures/key-manager.png
+share/gnome/help/seahorse/C/figures/key-properties.png
+share/gnome/help/seahorse/C/figures/passphrase.png
+share/gnome/help/seahorse/C/figures/preferences.png
+share/gnome/help/seahorse/C/figures/recipients.png
+share/gnome/help/seahorse/C/figures/signature.png
+share/gnome/help/seahorse/C/figures/text-editor.png
+share/gnome/help/seahorse/C/legal.xml
+share/gnome/help/seahorse/C/seahorse.xml
+share/gnome/mime-info/seahorse.keys
+share/gnome/mime-info/seahorse.mime
+share/gnome/omf/seahorse/seahorse-C.omf
+share/gnome/pixmaps/seahorse.png
+share/gnome/seahorse/glade/seahorse-add-subkey.glade
+share/gnome/seahorse/glade/seahorse-add-uid.glade
+share/gnome/seahorse/glade/seahorse-agent-cache.glade
+share/gnome/seahorse/glade/seahorse-change-passphrase.glade
+share/gnome/seahorse/glade/seahorse-generate-adv.glade
+share/gnome/seahorse/glade/seahorse-generate-druid.glade
+share/gnome/seahorse/glade/seahorse-generate-select.glade
+share/gnome/seahorse/glade/seahorse-key-manager.glade
+share/gnome/seahorse/glade/seahorse-key-properties.glade
+share/gnome/seahorse/glade/seahorse-multi-encrypt.glade
+share/gnome/seahorse/glade/seahorse-passphrase.glade
+share/gnome/seahorse/glade/seahorse-pgp-preferences.glade
+share/gnome/seahorse/glade/seahorse-preferences.glade
+share/gnome/seahorse/glade/seahorse-recipients.glade
+share/gnome/seahorse/glade/seahorse-revoke.glade
+share/gnome/seahorse/glade/seahorse-sign.glade
+share/gnome/seahorse/glade/seahorse-signatures.glade
+share/mime/application/pgp-encrypted.xml
+share/mime/application/pgp-keys.xml
+share/mime/application/pgp-signature.xml
+share/mime/packages/seahorse.xml
+share/locale/az/LC_MESSAGES/seahorse.mo
+share/locale/ca/LC_MESSAGES/seahorse.mo
+share/locale/cs/LC_MESSAGES/seahorse.mo
+share/locale/da/LC_MESSAGES/seahorse.mo
+share/locale/de/LC_MESSAGES/seahorse.mo
+share/locale/en_CA/LC_MESSAGES/seahorse.mo
+share/locale/en_GB/LC_MESSAGES/seahorse.mo
+share/locale/es/LC_MESSAGES/seahorse.mo
+share/locale/eu/LC_MESSAGES/seahorse.mo
+share/locale/fi/LC_MESSAGES/seahorse.mo
+share/locale/fr/LC_MESSAGES/seahorse.mo
+share/locale/hr/LC_MESSAGES/seahorse.mo
+share/locale/hu/LC_MESSAGES/seahorse.mo
+share/locale/it/LC_MESSAGES/seahorse.mo
+share/locale/ja/LC_MESSAGES/seahorse.mo
+share/locale/ml/LC_MESSAGES/seahorse.mo
+share/locale/ms/LC_MESSAGES/seahorse.mo
+share/locale/nl/LC_MESSAGES/seahorse.mo
+share/locale/no/LC_MESSAGES/seahorse.mo
+share/locale/pa/LC_MESSAGES/seahorse.mo
+share/locale/pl/LC_MESSAGES/seahorse.mo
+share/locale/pt/LC_MESSAGES/seahorse.mo
+share/locale/pt_BR/LC_MESSAGES/seahorse.mo
+share/locale/ru/LC_MESSAGES/seahorse.mo
+share/locale/sk/LC_MESSAGES/seahorse.mo
+share/locale/sl/LC_MESSAGES/seahorse.mo
+share/locale/sq/LC_MESSAGES/seahorse.mo
+share/locale/sr/LC_MESSAGES/seahorse.mo
+share/locale/sr@Latn/LC_MESSAGES/seahorse.mo
+share/locale/sv/LC_MESSAGES/seahorse.mo
+share/locale/tr/LC_MESSAGES/seahorse.mo
+share/locale/uk/LC_MESSAGES/seahorse.mo
+share/locale/zh_CN/LC_MESSAGES/seahorse.mo
+@dirrm share/gnome/help/seahorse/C/figures
+@dirrm share/gnome/help/seahorse/C
+@dirrm share/gnome/help/seahorse
+@dirrm share/gnome/omf/seahorse
+@dirrm share/gnome/seahorse/glade
+@dirrm share/gnome/seahorse
+@exec update-mime-database %D/share/mime
+@unexec update-mime-database %D/share/mime