diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-01 09:56:57 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-10-01 09:56:57 +0800 |
commit | 830d294a5e2395223311fb8b9f6aa3e65ccf1443 (patch) | |
tree | 0c519f9bbe013e624265098ef62004bbf9b44907 | |
parent | cec492683cbabbebd5c6993f05aa12e4ba085ee6 (diff) | |
download | marcuscom-ports-830d294a5e2395223311fb8b9f6aa3e65ccf1443.tar marcuscom-ports-830d294a5e2395223311fb8b9f6aa3e65ccf1443.tar.gz marcuscom-ports-830d294a5e2395223311fb8b9f6aa3e65ccf1443.tar.bz2 marcuscom-ports-830d294a5e2395223311fb8b9f6aa3e65ccf1443.tar.lz marcuscom-ports-830d294a5e2395223311fb8b9f6aa3e65ccf1443.tar.xz marcuscom-ports-830d294a5e2395223311fb8b9f6aa3e65ccf1443.tar.zst marcuscom-ports-830d294a5e2395223311fb8b9f6aa3e65ccf1443.zip |
Gedit plugin doesn't build, disable until we get an update
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7446 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | security/seahorse/Makefile | 80 | ||||
-rw-r--r-- | security/seahorse/distinfo | 3 | ||||
-rw-r--r-- | security/seahorse/files/patch-agent_seahorse-agent-io.c | 32 | ||||
-rw-r--r-- | security/seahorse/files/patch-agent_seahorse-agent.c | 40 | ||||
-rw-r--r-- | security/seahorse/files/patch-libseahorse_seahorse-key-store.c | 22 | ||||
-rw-r--r-- | security/seahorse/files/patch-libseahorse_seahorse-server-source.c | 15 | ||||
-rw-r--r-- | security/seahorse/files/patch-src_seahorse-generate-druid.c | 13 | ||||
-rw-r--r-- | security/seahorse/pkg-descr | 8 | ||||
-rw-r--r-- | security/seahorse/pkg-plist | 114 |
9 files changed, 327 insertions, 0 deletions
diff --git a/security/seahorse/Makefile b/security/seahorse/Makefile new file mode 100644 index 000000000..8e1956fde --- /dev/null +++ b/security/seahorse/Makefile @@ -0,0 +1,80 @@ +# New ports collection makefile for: Seahorse +# Date created: 08 March 2000 +# Whom: Dave McKay <dave@mu.org> +# +# $FreeBSD$ +# $MCom: ports/security/seahorse/Makefile,v 1.16 2006/03/05 21:52:25 marcus Exp $ +# + +PORTNAME= seahorse +PORTVERSION= 0.8.2 +PORTREVISION= 1 +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.17:${PORTSDIR}/security/gpgme + +USE_LDCONFIG= yes +USE_BZIP2= yes +USE_GETTEXT= yes +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_GNOME= gnomehack intlhack gnomeprefix libgnomeui +GNU_CONFIGURE= yes +INSTALLS_OMF= yes +CONFIGURE_ARGS= --disable-gpg-check +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +GCONF_SCHEMAS= seahorse.schemas + +OPTIONS= NAUTILUS "Enable the Nautilus component" on \ + LDAP "Enable LDAP support" on \ + HKP "Enable HKP keyserver interface" on +# GEDIT "Enable GEdit plug-in support" on + +.include <bsd.port.pre.mk> + +# Gedit not working right now.. +WITHOUT_GEDIT= yes +.if !defined(WITHOUT_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(WITHOUT_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 <bsd.port.post.mk> diff --git a/security/seahorse/distinfo b/security/seahorse/distinfo new file mode 100644 index 000000000..13f59f87c --- /dev/null +++ b/security/seahorse/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/seahorse-0.8.2.tar.bz2) = 24d9a8c3564700d105847934020920bd +SHA256 (gnome2/seahorse-0.8.2.tar.bz2) = 350f1a1cc5010bb81f08c6c124a24f2560a9dffea16c8a5a62e9cdeebb03c68e +SIZE (gnome2/seahorse-0.8.2.tar.bz2) = 990284 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..8ee1d8349 --- /dev/null +++ b/security/seahorse/files/patch-agent_seahorse-agent.c @@ -0,0 +1,40 @@ +--- agent/seahorse-agent.c.orig Sun Aug 13 14:50:35 2006 ++++ agent/seahorse-agent.c Wed Aug 16 02:08:05 2006 +@@ -280,7 +280,6 @@ main (int argc, char **argv) + GnomeProgram *program = NULL; + GnomeClient *client = NULL; + +- secmem_init (65536); + + /* We need to drop privileges completely for security */ + #if defined(HAVE_SETRESUID) && defined(HAVE_SETRESGID) +@@ -288,10 +287,12 @@ main (int argc, char **argv) + /* 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")); +@@ -313,7 +314,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); +@@ -329,6 +329,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..5b17b6dc1 --- /dev/null +++ b/security/seahorse/pkg-plist @@ -0,0 +1,114 @@ +bin/seahorse +bin/seahorse-agent +bin/seahorse-pgp-preferences +%%GEDIT%%lib/gedit-2/plugins/libseahorse-pgp.a +%%GEDIT%%lib/gedit-2/plugins/libseahorse-pgp.la +%%GEDIT%%lib/gedit-2/plugins/libseahorse-pgp.so +%%GEDIT%%lib/gedit-2/plugins/seahorse-pgp.gedit-plugin +lib/libseahorse-internal.a +lib/libseahorse-internal.la +lib/libseahorse-internal.so +lib/libseahorse-internal.so.0 +%%NAUTILUS%%lib/nautilus/extensions-1.0/libnautilus-seahorse.a +%%NAUTILUS%%lib/nautilus/extensions-1.0/libnautilus-seahorse.la +%%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/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/vi/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 |