[26566] trunk/dports/x11

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 28 06:09:10 PDT 2007


Revision: 26566
          http://trac.macosforge.org/projects/macports/changeset/26566
Author:   afb at macports.org
Date:     2007-06-28 06:09:10 -0700 (Thu, 28 Jun 2007)

Log Message:
-----------
library for GTK+ su/sudo

Added Paths:
-----------
    trunk/dports/x11/libgksu12/
    trunk/dports/x11/libgksu12/Portfile
    trunk/dports/x11/libgksu12/files/
    trunk/dports/x11/libgksu12/files/patch-libgksu.diff

Added: trunk/dports/x11/libgksu12/Portfile
===================================================================
--- trunk/dports/x11/libgksu12/Portfile	                        (rev 0)
+++ trunk/dports/x11/libgksu12/Portfile	2007-06-28 13:09:10 UTC (rev 26566)
@@ -0,0 +1,34 @@
+# $Id$
+
+PortSystem		1.0
+
+name			libgksu12
+version			1.3.7
+platforms		darwin
+categories		x11 devel
+maintainers		nomaintainer at macports.org
+description		Simple API for su and sudo
+long_description \
+	LibGKSu is a library from the gksu program that provides a simple API for \
+	using su and sudo in programs that need to execute tasks as other users. \
+	It provides X authentication facilities for running programs in a X session.
+
+homepage		http://www.nongnu.org/gksu/
+master_sites		http://people.debian.org/~kov/gksu/old_stuff/libgksu1.2/
+distname		libgksu1.2-${version}
+checksums		md5 9ee0808e8e24254cfc9f834a55093d06
+
+depends_lib		port:gtk2
+depends_build		port:pkgconfig
+
+patchfiles		patch-libgksu.diff
+
+configure.args		--infodir=${prefix}/share/info \
+			--mandir=${prefix}/share/man \
+			--disable-gtk-doc
+
+variant docs {
+	depends_build-append port:gtk-doc
+	configure.args-delete --disable-gtk-doc
+	configure.args-append --enable-gtk-doc
+}


Property changes on: trunk/dports/x11/libgksu12/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/x11/libgksu12/files/patch-libgksu.diff
===================================================================
--- trunk/dports/x11/libgksu12/files/patch-libgksu.diff	                        (rev 0)
+++ trunk/dports/x11/libgksu12/files/patch-libgksu.diff	2007-06-28 13:09:10 UTC (rev 26566)
@@ -0,0 +1,69 @@
+--- libgksu/Makefile.am.orig	2005-08-03 04:41:59.000000000 +0200
++++ libgksu/Makefile.am	2007-06-18 01:27:45.000000000 +0200
+@@ -9,7 +9,7 @@
+ # major -> breaks backward compatibility (changes to existing ABI)
+ # minor -> keeps compatibility (additions to the API)
+ # micro -> no change to the API/ABI
+-libgksu1_2_la_LDFLAGS = -version-info 0:5:0 -Wl,--version-script=libgksu.ver -Wl,-O1 `pkg-config --libs glib-2.0 gobject-2.0` -lutil
++libgksu1_2_la_LDFLAGS = -version-info 0:5:0 `pkg-config --libs glib-2.0 gobject-2.0`
+ 
+ noinst_HEADERS = defines.h
+ 
+--- libgksu/Makefile.in.orig	2005-11-24 01:41:03.000000000 +0100
++++ libgksu/Makefile.in	2007-06-18 01:27:45.000000000 +0200
+@@ -179,7 +179,7 @@
+ # major -> breaks backward compatibility (changes to existing ABI)
+ # minor -> keeps compatibility (additions to the API)
+ # micro -> no change to the API/ABI
+-libgksu1_2_la_LDFLAGS = -version-info 0:5:0 -Wl,--version-script=libgksu.ver -Wl,-O1 `pkg-config --libs glib-2.0 gobject-2.0` -lutil
++libgksu1_2_la_LDFLAGS = -version-info 0:5:0 `pkg-config --libs glib-2.0 gobject-2.0`
+ 
+ noinst_HEADERS = defines.h
+ 
+--- libgksu/gksu-context.c.orig	2005-11-18 01:18:02.000000000 +0100
++++ libgksu/gksu-context.c	2007-06-18 01:40:33.000000000 +0200
+@@ -23,7 +23,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <fcntl.h>
+-#include <pty.h>
++#include <util.h>
+ #include <pwd.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+@@ -633,7 +633,7 @@
+     {
+       gchar **cmd = g_malloc (sizeof(gchar*)*7);
+ 
+-      cmd[i] = g_strdup ("/bin/su"); i++;
++      cmd[i] = g_strdup ("/usr/bin/su"); i++;
+       if (context->login_shell)
+ 	{
+ 	  cmd[i] = g_strdup ("-"); i++;
+@@ -654,7 +654,7 @@
+       if (execv (cmd[0], cmd) == -1)
+ 	{
+ 	  fprintf (stderr, 
+-		   _("Unable to run /bin/su: %s"),
++		   _("Unable to run /usr/bin/su: %s"),
+ 		   strerror(errno));
+ 
+ 	  for (i = 0 ; cmd[i] != NULL ; i++)
+@@ -791,7 +791,7 @@
+     {
+       gchar **cmd = g_malloc (sizeof(gchar*)*7);
+ 
+-      cmd[i] = g_strdup ("/bin/su"); i++;
++      cmd[i] = g_strdup ("/usr/bin/su"); i++;
+       if (context->login_shell)
+ 	{
+ 	  cmd[i] = g_strdup ("-"); i++;
+@@ -813,7 +813,7 @@
+       if (execv (cmd[0], cmd) == -1)
+ 	{
+ 	  fprintf (stderr, 
+-		   _("Unable to run /bin/su: %s"),
++		   _("Unable to run /usr/bin/su: %s"),
+ 		   strerror(errno));
+ 	}
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070628/76431b3a/attachment.html


More information about the macports-changes mailing list