[Midnightbsd-cvs] mports [21360] trunk/sysutils: add gksu

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Apr 5 17:41:12 EDT 2016


Revision: 21360
          http://svnweb.midnightbsd.org/mports/?rev=21360
Author:   laffer1
Date:     2016-04-05 17:41:10 -0400 (Tue, 05 Apr 2016)
Log Message:
-----------
add gksu

Modified Paths:
--------------
    trunk/sysutils/Makefile

Added Paths:
-----------
    trunk/sysutils/gksu/
    trunk/sysutils/gksu/Makefile
    trunk/sysutils/gksu/distinfo
    trunk/sysutils/gksu/pkg-descr
    trunk/sysutils/gksu/pkg-plist
    trunk/sysutils/libgksu/
    trunk/sysutils/libgksu/Makefile
    trunk/sysutils/libgksu/distinfo
    trunk/sysutils/libgksu/files/
    trunk/sysutils/libgksu/files/patch-Makefile.in
    trunk/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c
    trunk/sysutils/libgksu/files/patch-libgksu_libgksu.c
    trunk/sysutils/libgksu/pkg-descr
    trunk/sysutils/libgksu/pkg-plist

Modified: trunk/sysutils/Makefile
===================================================================
--- trunk/sysutils/Makefile	2016-04-03 17:55:15 UTC (rev 21359)
+++ trunk/sysutils/Makefile	2016-04-05 21:41:10 UTC (rev 21360)
@@ -43,6 +43,7 @@
 SUBDIR += gag
 SUBDIR += garcon
 SUBDIR += gconf-editor
+SUBDIR += gksu
 SUBDIR += gnome-control-center
 SUBDIR += gnome-mount
 SUBDIR += gnome-power-manager
@@ -57,6 +58,7 @@
 SUBDIR += libcdio
 SUBDIR += libcdio-paranoia
 SUBDIR += libchk
+SUBDIR += libgksu
 SUBDIR += libsunacl
 SUBDIR += linux-f10-procps
 SUBDIR += lmmon

Added: trunk/sysutils/gksu/Makefile
===================================================================
--- trunk/sysutils/gksu/Makefile	                        (rev 0)
+++ trunk/sysutils/gksu/Makefile	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,30 @@
+# Created by: Jesse van den Kieboom <troplosti at orcaweb.cjb.net>
+# $FreeBSD: head/sysutils/gksu/Makefile 390408 2015-06-23 14:12:34Z amdmi3 $
+# $MidnightBSD$
+
+PORTNAME=	gksu
+PORTVERSION=	2.0.2
+CATEGORIES=	sysutils
+MASTER_SITES=	http://people.debian.org/~kov/gksu/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Graphical frontend to su
+LICENSE=	gpl2
+
+LIB_DEPENDS=	libgksu2.so:${PORTSDIR}/sysutils/libgksu \
+		libnautilus-extension.so:${PORTSDIR}/x11-fm/nautilus \
+		libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring
+
+USES=		gettext-tools gmake libtool pathfix pkgconfig
+USE_GNOME=	gconf2 gnomeprefix gtk20 intlhack
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+INSTALL_TARGET=	install-strip
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|glib/gkeyfile.h|glib.h|g' \
+		${WRKSRC}/nautilus-gksu/libnautilus-gksu.c
+
+.include <bsd.port.mk>


Property changes on: trunk/sysutils/gksu/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/gksu/distinfo
===================================================================
--- trunk/sysutils/gksu/distinfo	                        (rev 0)
+++ trunk/sysutils/gksu/distinfo	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,2 @@
+SHA256 (gksu-2.0.2.tar.gz) = a1de3dca039d88c195fcdc9516379439a1d699750417f1e655aa2101a955ee5a
+SIZE (gksu-2.0.2.tar.gz) = 468121


Property changes on: trunk/sysutils/gksu/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/gksu/pkg-descr
===================================================================
--- trunk/sysutils/gksu/pkg-descr	                        (rev 0)
+++ trunk/sysutils/gksu/pkg-descr	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,6 @@
+gksu is a Gtk+ frontend to /bin/su. It supports login shells and preserving
+environment when acting as a su frontend. It is useful to menu items or other
+graphical programs that need to ask a user's password to run another program
+as another user.
+
+WWW: http://www.gnu.org/non-gnu/gksu/


Property changes on: trunk/sysutils/gksu/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/gksu/pkg-plist
===================================================================
--- trunk/sysutils/gksu/pkg-plist	                        (rev 0)
+++ trunk/sysutils/gksu/pkg-plist	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,10 @@
+bin/gksu
+bin/gksudo
+lib/nautilus/extensions-2.0/libnautilus-gksu.so
+lib/nautilus/extensions-2.0/libnautilus-gksu.a
+man/man1/gksu.1.gz
+man/man1/gksudo.1.gz
+share/applications/gksu.desktop
+share/pixmaps/gksu-icon.png
+share/pixmaps/gksu-root-terminal.png
+share/gksu/gksu-migrate-conf.sh


Property changes on: trunk/sysutils/gksu/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/libgksu/Makefile
===================================================================
--- trunk/sysutils/libgksu/Makefile	                        (rev 0)
+++ trunk/sysutils/libgksu/Makefile	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,41 @@
+# Created by: Jesse van den Kieboom <troplosti at orcaweb.cjb.net>
+# $FreeBSD: head/sysutils/libgksu/Makefile 393444 2015-08-02 20:23:55Z kwm $
+# $MidnightBSD$
+
+PORTNAME=	libgksu
+PORTVERSION=	2.0.12
+CATEGORIES=	sysutils
+MASTER_SITES=	http://people.debian.org/~kov/gksu/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Library providing su and sudo functionality
+
+LICENSE=	lgpl
+
+LIB_DEPENDS=	libgtop-2.0.so:${PORTSDIR}/devel/libgtop \
+		libglade-2.0.so:${PORTSDIR}/devel/libglade2 \
+		libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring \
+		libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification
+RUN_DEPENDS=	xauth:${PORTSDIR}/x11/xauth
+# sudo is part of base system
+
+USES=		gettext gmake libtool pathfix pkgconfig
+USE_GNOME=	glib20 gconf2 intltool
+USE_LDCONFIG=	yes
+USE_XORG=	x11
+CONFIGURE_ARGS=	--enable-gtk-doc=no
+GNU_CONFIGURE=	yes
+GCONF_SCHEMAS=	gksu.schemas
+INSTALL_TARGET=	install-strip
+
+post-patch:
+	@${REINPLACE_CMD} '/AM_CFLAGS/s/-g -O2//' \
+		${WRKSRC}/gksu-properties/Makefile.in \
+		${WRKSRC}/libgksu/Makefile.in \
+		${WRKSRC}/libgksuui/Makefile.in
+	@${REINPLACE_CMD} '/^test_gksu_LDFLAGS =/s/glib-2.0/gtk+-2.0/' \
+		${WRKSRC}/libgksu/Makefile.in
+	@${REINPLACE_CMD} '/^libgksuui1_0_la_LIBADD =/s/$$/ -lX11/' \
+		${WRKSRC}/libgksuui/Makefile.in
+
+.include <bsd.port.mk>


Property changes on: trunk/sysutils/libgksu/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/libgksu/distinfo
===================================================================
--- trunk/sysutils/libgksu/distinfo	                        (rev 0)
+++ trunk/sysutils/libgksu/distinfo	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,2 @@
+SHA256 (libgksu-2.0.12.tar.gz) = 22f9cfc3627dcb6774b9aff66c6ea6554f3b34b82bbfa2467b821e67874c3faf
+SIZE (libgksu-2.0.12.tar.gz) = 477903


Property changes on: trunk/sysutils/libgksu/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/libgksu/files/patch-Makefile.in
===================================================================
--- trunk/sysutils/libgksu/files/patch-Makefile.in	                        (rev 0)
+++ trunk/sysutils/libgksu/files/patch-Makefile.in	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,19 @@
+--- Makefile.in.o	2011-04-13 15:10:53.221097086 +0000
++++ Makefile.in	2011-04-13 15:11:33.181096740 +0000
+@@ -747,11 +747,11 @@
+ @INTLTOOL_SCHEMAS_RULE@
+ 
+ @GCONF_SCHEMAS_INSTALL_TRUE at install-data-local:
+- at GCONF_SCHEMAS_INSTALL_TRUE@        if test -z "$(DESTDIR)" ; then \
+- at GCONF_SCHEMAS_INSTALL_TRUE@          for p in $(schemas_DATA) ; do \
+- at GCONF_SCHEMAS_INSTALL_TRUE@            GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \
+- at GCONF_SCHEMAS_INSTALL_TRUE@          done \
+- at GCONF_SCHEMAS_INSTALL_TRUE@        fi
++ at GCONF_SCHEMAS_INSTALL_TRUE@	if test -z "$(DESTDIR)" ; then \
++ at GCONF_SCHEMAS_INSTALL_TRUE@		for p in $(schemas_DATA) ; do \
++ at GCONF_SCHEMAS_INSTALL_TRUE@		GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \
++ at GCONF_SCHEMAS_INSTALL_TRUE@		done \
++ at GCONF_SCHEMAS_INSTALL_TRUE@	fi
+ @GCONF_SCHEMAS_INSTALL_FALSE at install-data-local:
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.


Property changes on: trunk/sysutils/libgksu/files/patch-Makefile.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c
===================================================================
--- trunk/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c	                        (rev 0)
+++ trunk/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,21 @@
+--- libgksu/gksu-run-helper.c.o	2011-04-12 16:47:38.000000000 +0000
++++ libgksu/gksu-run-helper.c	2011-04-12 16:49:14.000000000 +0000
+@@ -110,6 +110,7 @@
+       return 1;
+     }
+ 
++  sleep(2);
+   fprintf (stderr, "gksu: waiting\n");
+ 
+   xauth_file = g_strdup_printf ("%s/.Xauthority",
+@@ -159,8 +160,8 @@
+     /* find out where the xauth binary is located */
+     if (g_file_test ("/usr/bin/xauth", G_FILE_TEST_IS_EXECUTABLE))
+       xauth_bin = "/usr/bin/xauth";
+-    else if (g_file_test ("/usr/X11R6/bin/xauth", G_FILE_TEST_IS_EXECUTABLE))
+-      xauth_bin = "/usr/X11R6/bin/xauth";
++    else if (g_file_test ("/usr/local/bin/xauth", G_FILE_TEST_IS_EXECUTABLE))
++      xauth_bin = "/usr/local/bin/xauth";
+     else
+       {
+ 	fprintf (stderr,


Property changes on: trunk/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/libgksu/files/patch-libgksu_libgksu.c
===================================================================
--- trunk/sysutils/libgksu/files/patch-libgksu_libgksu.c	                        (rev 0)
+++ trunk/sysutils/libgksu/files/patch-libgksu_libgksu.c	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,75 @@
+--- libgksu/libgksu.c.orig	2009-03-04 18:53:02.000000000 +0000
++++ libgksu/libgksu.c	2011-04-12 16:45:53.000000000 +0000
+@@ -23,13 +23,15 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <fcntl.h>
+-#include <pty.h>
+ #include <pwd.h>
++#include <sys/ioctl.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <sys/stat.h>
+ #include <sys/select.h>
+ #include <errno.h>
++#include <termios.h>
++#include <libutil.h>
+ 
+ #include <glibtop.h>
+ #include <glibtop/procstate.h>
+@@ -1089,8 +1091,8 @@
+   gchar *xauth = g_new0 (gchar, 256);
+ 
+   /* find out where the xauth binary is located */
+-  if (g_file_test ("/usr/bin/xauth", G_FILE_TEST_IS_EXECUTABLE))
+-    xauth_bin = "/usr/bin/xauth";
++  if (g_file_test ("/usr/local/bin/xauth", G_FILE_TEST_IS_EXECUTABLE))
++    xauth_bin = "/usr/local/bin/xauth";
+   else if (g_file_test ("/usr/X11R6/bin/xauth", G_FILE_TEST_IS_EXECUTABLE))
+     xauth_bin = "/usr/X11R6/bin/xauth";
+   else
+@@ -1976,7 +1978,7 @@
+       gchar **cmd = g_malloc (sizeof(gchar*)*7);
+ 
+       setsid();   // make us session leader
+-      cmd[i] = g_strdup ("/bin/su"); i++;
++      cmd[i] = g_strdup ("/usr/bin/su"); i++;
+       if (context->login_shell)
+ 	{
+ 	  cmd[i] = g_strdup ("-"); i++;
+@@ -1998,7 +2000,7 @@
+       if (execv (cmd[0], cmd) == -1)
+ 	{
+ 	  fprintf (stderr,
+-		   "Unable to run /bin/su: %s",
++		   "Unable to run /usr/bin/su: %s",
+ 		   strerror(errno));
+ 	}
+ 
+@@ -2190,8 +2192,6 @@
+ 	      write (fdpty, line, strlen(line));
+ 	      g_free (line);
+ 
+-	      tcdrain (fdpty);
+-
+ 	      bzero (buf, 256);
+ 	      read (fdpty, buf, 255);
+ 
+@@ -2503,7 +2503,7 @@
+   if (context->always_ask_password)
+     {
+        gint exit_status;
+-       g_spawn_command_line_sync("/usr/bin/sudo -K", NULL, NULL, &exit_status, NULL);
++       g_spawn_command_line_sync("/usr/local/bin/sudo -K", NULL, NULL, &exit_status, NULL);
+     }
+ 
+ 
+@@ -2533,7 +2533,7 @@
+   argcount = 0;
+ 
+   /* sudo binary */
+-  cmd[argcount] = g_strdup("/usr/bin/sudo");
++  cmd[argcount] = g_strdup("/usr/local/bin/sudo");
+   argcount++;
+ 
+   if (!context->keep_env)


Property changes on: trunk/sysutils/libgksu/files/patch-libgksu_libgksu.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/libgksu/pkg-descr
===================================================================
--- trunk/sysutils/libgksu/pkg-descr	                        (rev 0)
+++ trunk/sysutils/libgksu/pkg-descr	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,5 @@
+This library comes from the gksu program. It provides a simple API to use su
+and sudo in programs that need to execute tasks as other user. It provides X
+authentication facilities for running programs in a X session.
+
+WWW: http://www.gnu.org/non-gnu/gksu/


Property changes on: trunk/sysutils/libgksu/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/libgksu/pkg-plist
===================================================================
--- trunk/sysutils/libgksu/pkg-plist	                        (rev 0)
+++ trunk/sysutils/libgksu/pkg-plist	2016-04-05 21:41:10 UTC (rev 21360)
@@ -0,0 +1,13 @@
+bin/gksu-properties
+include/libgksu/gksu.h
+include/libgksu/libgksu.h
+lib/libgksu2.a
+lib/libgksu2.so
+lib/libgksu2.so.0
+lib/libgksu2.so.0.0.2
+lib/libgksu/gksu-run-helper
+libdata/pkgconfig/libgksu2.pc
+man/man1/gksu-properties.1.gz
+share/applications/gksu-properties.desktop
+share/libgksu/gksu-properties.ui
+share/pixmaps/gksu.png


Property changes on: trunk/sysutils/libgksu/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list