From 8091cfe1f8ed44676312e381a07ce0c2cae3b69e Mon Sep 17 00:00:00 2001 From: adamw Date: Thu, 29 Dec 2005 18:47:25 +0000 Subject: Add seahorse, and train it to look for gedit as gedit-2.10, as it seems to have dropped since gedit-2.12 looked for gedit-2.12. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5326 df743ca5-7f9a-e211-a948-0013205c9059 --- security/seahorse/Makefile | 77 +++++++++++++++ security/seahorse/distinfo | 3 + .../seahorse/files/patch-agent_seahorse-agent-io.c | 32 ++++++ .../seahorse/files/patch-agent_seahorse-agent.c | 40 ++++++++ .../files/patch-libseahorse_seahorse-key-store.c | 22 +++++ .../patch-libseahorse_seahorse-server-source.c | 15 +++ .../files/patch-src_seahorse-generate-druid.c | 13 +++ security/seahorse/pkg-descr | 8 ++ security/seahorse/pkg-plist | 109 +++++++++++++++++++++ 9 files changed, 319 insertions(+) create mode 100644 security/seahorse/Makefile create mode 100644 security/seahorse/distinfo create mode 100644 security/seahorse/files/patch-agent_seahorse-agent-io.c create mode 100644 security/seahorse/files/patch-agent_seahorse-agent.c create mode 100644 security/seahorse/files/patch-libseahorse_seahorse-key-store.c create mode 100644 security/seahorse/files/patch-libseahorse_seahorse-server-source.c create mode 100644 security/seahorse/files/patch-src_seahorse-generate-druid.c create mode 100644 security/seahorse/pkg-descr create mode 100644 security/seahorse/pkg-plist (limited to 'security/seahorse') diff --git a/security/seahorse/Makefile b/security/seahorse/Makefile new file mode 100644 index 000000000..ffad895e6 --- /dev/null +++ b/security/seahorse/Makefile @@ -0,0 +1,77 @@ +# New ports collection makefile for: Seahorse +# Date created: 08 March 2000 +# Whom: Dave McKay +# +# $FreeBSD: ports/security/seahorse/Makefile,v 1.47 2005/11/15 06:51:04 ade Exp $ +# $MCom: ports/security/seahorse/Makefile,v 1.8 2005/10/14 20:39:58 adamw Exp $ +# + +PORTNAME= seahorse +PORTVERSION= 0.8 +PORTREVISION= 3 +CATEGORIES= security +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR=sources/${PORTNAME}/0.8 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= A front end for GnuPG + +BUILD_DEPENDS= gpg:${PORTSDIR}/security/gnupg +RUN_DEPENDS= ${BUILD_DEPENDS} +LIB_DEPENDS= gpgme.15:${PORTSDIR}/security/gpgme + +USE_BZIP2= yes +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GNOME= gnomehack intlhack gnomeprefix libgnomeui +USE_AUTOTOOLS= libtool:15 +INSTALLS_OMF= yes +INSTALLS_SHLIB= 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 \ + NAUTILUS "Enable the Nautilus component" on \ + LDAP "Enable LDAP support" on \ + HKP "Enable HKP keyserver interface" on + +.include + +.if defined(WITH_GEDIT) +BUILD_DEPENDS+= gedit:${PORTSDIR}/editors/gedit +RUN_DEPENDS+= gedit:${PORTSDIR}/editors/gedit +PLIST_SUB+= GEDIT="" +GCONF_SCHEMAS+= seahorse-gedit.schemas +.else +PLIST_SUB+= GEDIT="@comment " +CONFIGURE_ARGS+=--disable-gedit +.endif + +.if defined(WITH_NAUTILUS) +USE_GNOME+= nautilus2 +PLIST_SUB+= NAUTILUS="" +.else +PLIST_SUB+= NAUTILUS="@comment " +CONFIGURE_ARGS+=--disable-nautilus +.endif + +.if !defined(WITHOUT_LDAP) +USE_OPENLDAP= yes +.else +CONFIGURE_ARGS+=--disable-ldap +.endif + +.if !defined(WITHOUT_HKP) +LIB_DEPENDS+= soup-2.2.8:${PORTSDIR}/devel/libsoup +.else +CONFIGURE_ARGS+=--disable-hkp +.endif + +post-install: + -@update-desktop-database + +.include diff --git a/security/seahorse/distinfo b/security/seahorse/distinfo new file mode 100644 index 000000000..c9ee38c21 --- /dev/null +++ b/security/seahorse/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/seahorse-0.8.tar.bz2) = b8c4878cdcbf57e9885583672934772c +SHA256 (gnome2/seahorse-0.8.tar.bz2) = 797a3f22ca135e5def00a872ef9aed07475f753fae76dbddb401011178cd4d17 +SIZE (gnome2/seahorse-0.8.tar.bz2) = 946453 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..4ecd84940 --- /dev/null +++ b/security/seahorse/files/patch-agent_seahorse-agent-io.c @@ -0,0 +1,32 @@ +--- agent/seahorse-agent-io.c.orig Sun Aug 28 15:52:02 2005 ++++ agent/seahorse-agent-io.c Fri Oct 7 21:51:25 2005 +@@ -412,12 +412,18 @@ io_handler (GIOChannel *source, GIOCondi + 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); +@@ -434,7 +440,7 @@ io_handler (GIOChannel *source, GIOCondi + g_free (string); + } + +- if (cn && condition & G_IO_HUP) { ++ else if (cn && 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..25531909e --- /dev/null +++ b/security/seahorse/files/patch-agent_seahorse-agent.c @@ -0,0 +1,40 @@ +--- agent/seahorse-agent.c.orig Thu May 19 00:15:36 2005 ++++ agent/seahorse-agent.c Thu Jul 28 01:32:39 2005 +@@ -273,18 +273,18 @@ main (int argc, char **argv) + const char *sockname; + GnomeProgram *program = NULL; + +- secmem_init (65536); +- + /* We need to drop privileges completely for security */ + #if defined(HAVE_SETRESUID) && defined(HAVE_SETRESGID) + + /* Not in header files for all OSs, even where present */ + int setresuid(uid_t ruid, uid_t euid, uid_t suid); + int setresgid(gid_t rgid, gid_t egid, gid_t sgid); ++ secmem_init (65536); + + if (setresuid (getuid (), getuid (), getuid ()) == -1 || + setresgid (getgid (), getgid (), getgid ()) == -1) + #else ++ secmem_init (65536); + if (setuid (getuid ()) == -1 || setgid (getgid ()) == -1) + #endif + err (1, _("couldn't drop privileges properly")); +@@ -301,7 +301,6 @@ main (int argc, char **argv) + * All functions after this point have to print messages + * nicely and not just called exit() + */ +- daemonize (sockname); + + /* Handle some signals */ + signal (SIGINT, on_quit); +@@ -314,6 +313,8 @@ main (int argc, char **argv) + /* 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-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-server-source.c b/security/seahorse/files/patch-libseahorse_seahorse-server-source.c new file mode 100644 index 000000000..d7422de5e --- /dev/null +++ b/security/seahorse/files/patch-libseahorse_seahorse-server-source.c @@ -0,0 +1,15 @@ +--- libseahorse/seahorse-server-source.c.orig Fri Mar 11 22:17:43 2005 ++++ libseahorse/seahorse-server-source.c Fri Mar 11 22:17:55 2005 +@@ -518,11 +518,11 @@ + seahorse_server_source_get_state (SeahorseKeySource *src) + { + SeahorseServerSource *ssrc; ++ guint state = SEAHORSE_KEY_SOURCE_REMOTE; + + g_return_val_if_fail (SEAHORSE_IS_SERVER_SOURCE (src), 0); + ssrc = SEAHORSE_SERVER_SOURCE (src); + +- guint state = SEAHORSE_KEY_SOURCE_REMOTE; + if (!seahorse_operation_is_done (ssrc->priv->operation)) + state |= SEAHORSE_KEY_SOURCE_LOADING; + return state; 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..8c1d78624 --- /dev/null +++ b/security/seahorse/pkg-plist @@ -0,0 +1,109 @@ +bin/seahorse +bin/seahorse-agent +bin/seahorse-pgp-preferences +%%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 +%%NAUTILUS%%lib/nautilus/extensions-1.0/libnautilus-seahorse.so +share/gnome/applications/seahorse-pgp-preferences.desktop +share/gnome/applications/seahorse.desktop +share/gnome/applications/seahorse-pgp-encrypted.desktop +share/gnome/applications/seahorse-pgp-keys.desktop +share/gnome/applications/seahorse-pgp-signature.desktop +share/gnome/control-center-2.0/capplets/seahorse-pgp-preferences.desktop +@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true +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-key.png +share/gnome/pixmaps/seahorse-secret.png +share/gnome/pixmaps/seahorse.png +share/gnome/seahorse/glade/seahorse-add-keyserver.glade +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-expires.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-manager.ui +share/gnome/seahorse/glade/seahorse-key-properties.glade +share/gnome/seahorse/glade/seahorse-keyserver-results.glade +share/gnome/seahorse/glade/seahorse-keyserver-results.ui +share/gnome/seahorse/glade/seahorse-keyserver-search.glade +share/gnome/seahorse/glade/seahorse-keyserver-sync.glade +share/gnome/seahorse/glade/seahorse-multi-encrypt.glade +share/gnome/seahorse/glade/seahorse-passphrase.glade +share/gnome/seahorse/glade/seahorse-prefs.glade +share/gnome/seahorse/glade/seahorse-preferences.glade +share/gnome/seahorse/glade/seahorse-progress.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/gnome/seahorse/glade/seahorse-signer.glade +share/mime/packages/seahorse.xml +share/locale/az/LC_MESSAGES/seahorse.mo +share/locale/bg/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/nb/LC_MESSAGES/seahorse.mo +share/locale/ne/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/rw/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 +share/locale/zh_TW/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 %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true -- cgit v1.2.3