So long and thank you for... nothing.

This commit is contained in:
ajacoutot 2009-10-13 15:31:39 +00:00
parent 6bfb33bc4a
commit bb404bdece
17 changed files with 0 additions and 337 deletions

View File

@ -1,54 +0,0 @@
# $OpenBSD: Makefile,v 1.11 2009/08/10 06:34:30 kili Exp $
COMMENT= library providing su and sudo functionality
DISTNAME= libgksu-2.0.7
PKGNAME= ${DISTNAME}p5
SHARED_LIBS= gksu2 0.1 # .0.2
CATEGORIES= sysutils
HOMEPAGE= http://www.nongnu.org/gksu/
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE ORBit-2 SM X11 Xau Xcomposite Xcursor Xdamage Xdmcp \
Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo \
dbus-1 dbus-glib-1 expat fontconfig freetype gdk-x11-2.0 \
gdk_pixbuf-2.0 gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0 \
gthread-2.0 gtk-x11-2.0 kvm m pango-1.0 pangocairo-1.0 \
pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs util \
xcb xml2 z
MASTER_SITES= http://people.debian.org/~kov/gksu/
MODULES= devel/gettext \
textproc/intltool \
devel/gconf2
LIB_DEPENDS= gtop-2.0::devel/libgtop2 \
glade-2.0::devel/libglade2 \
startup-notification-1::devel/startup-notification \
gnome-keyring::x11/gnome/keyring
RUN_DEPENDS= ::devel/desktop-file-utils
USE_X11= Yes
USE_LIBTOOL= Yes
USE_GMAKE= Yes
MODGCONF2_SCHEMAS_DIR= libgksu
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-gtk-doc="no"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
pre-configure:
@perl -pi -e 's,/bin/su,/usr/bin/su,g' ${WRKSRC}/po/*.po
${SUBST_CMD} ${WRKSRC}/libgksu/test-gksu.c
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (libgksu-2.0.7.tar.gz) = LyxqISgTcJQuooVVU9OtiQ==
RMD160 (libgksu-2.0.7.tar.gz) = qTy3xRmLNYHoC3OZ15faKF/vvWQ=
SHA1 (libgksu-2.0.7.tar.gz) = 5yszZqh57k7OdxfaiVdxXISNKl4=
SHA256 (libgksu-2.0.7.tar.gz) = fCclCLNggHFAb46kZ2lCPO/CtKm/qPhCBq8UvsJVHaU=
SIZE (libgksu-2.0.7.tar.gz) = 510752

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-gksu-properties_Makefile_in,v 1.1 2009/01/19 18:50:10 ajacoutot Exp $
--- gksu-properties/Makefile.in.orig Mon Jan 19 19:27:37 2009
+++ gksu-properties/Makefile.in Mon Jan 19 19:27:44 2009
@@ -242,7 +242,7 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CFLAGS = -g -O2 -Wall
+AM_CFLAGS =
INCLUDES = ${GKSU_PROPERTIES_CFLAGS}
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DDATA_DIR=\"$(datadir)\" -DPREFIX=\"$(prefix)\"
gksu_properties_LDFLAGS = ${GKSU_PROPERTIES_LIBS}

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-gksu_schemas_in,v 1.1 2008/01/23 21:08:39 ajacoutot Exp $
--- gksu.schemas.in.orig Wed Jan 23 17:31:33 2008
+++ gksu.schemas.in Wed Jan 23 17:31:50 2008
@@ -38,7 +38,7 @@
<applyto>/apps/gksu/sudo-mode</applyto>
<owner>gksu</owner>
<type>bool</type>
- <default>false</default>
+ <default>true</default>
<locale name="C">
<short>Sudo mode</short>
<long>

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-libgksu_Makefile_in,v 1.2 2008/11/18 11:29:34 jasper Exp $
--- libgksu/Makefile.in.orig Tue Nov 18 12:19:40 2008
+++ libgksu/Makefile.in Tue Nov 18 12:20:06 2008
@@ -265,7 +265,7 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CFLAGS = -g -O2 -Wall
+AM_CFLAGS =
INCLUDES = ${LIBGKSU_CFLAGS}
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DDATA_DIR=\"$(datadir)\" -DPREFIX=\"$(prefix)\"
lib_LTLIBRARIES = libgksu2.la

View File

@ -1,52 +0,0 @@
$OpenBSD: patch-libgksu_libgksu_c,v 1.3 2008/11/18 11:29:34 jasper Exp $
--- libgksu/libgksu.c.orig Wed May 28 02:00:44 2008
+++ libgksu/libgksu.c Tue Nov 18 12:20:53 2008
@@ -23,7 +23,12 @@
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
+#ifdef __OpenBSD__
+#include <sys/termios.h>
+#include <util.h>
+#else
#include <pty.h>
+#endif
#include <pwd.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -1081,6 +1086,7 @@ get_xauth_token (GksuContext *context, gchar *display)
FILE *xauth_output;
gchar *tmp = NULL;
gchar *xauth = g_new0 (gchar, 256);
+ size_t r;
/* find out where the xauth binary is located */
if (g_file_test ("/usr/bin/xauth", G_FILE_TEST_IS_EXECUTABLE))
@@ -1108,7 +1114,8 @@ get_xauth_token (GksuContext *context, gchar *display)
strerror(errno));
return NULL;
}
- fread (xauth, sizeof(char), 255, xauth_output);
+ r = fread (xauth, sizeof(char), 256, xauth_output);
+ xauth[r] = '\0';
pclose (xauth_output);
g_free (tmp);
@@ -1930,7 +1937,7 @@ gksu_su_full (GksuContext *context,
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++;
@@ -1952,7 +1959,7 @@ gksu_su_full (GksuContext *context,
if (execv (cmd[0], cmd) == -1)
{
fprintf (stderr,
- "Unable to run /bin/su: %s",
+ "Unable to run /usr/bin/su: %s",
strerror(errno));
}

View File

@ -1,36 +0,0 @@
$OpenBSD: patch-libgksu_test-gksu_c,v 1.2 2009/01/19 17:42:50 ajacoutot Exp $
--- libgksu/test-gksu.c.orig Thu Jan 31 21:00:44 2008
+++ libgksu/test-gksu.c Thu Jan 31 21:01:04 2008
@@ -63,12 +63,12 @@ main (int argc, char **argv)
context = gksu_context_new ();
context->debug = TRUE;
- context->command = g_strdup ("/usr/bin/xterm");
+ context->command = g_strdup ("${X11BASE}/bin/xterm");
if (try_su)
{
printf ("Testing gksu_su...\n");
- gksu_su ("/usr/bin/xterm", &error);
+ gksu_su ("${X11BASE}/bin/xterm", &error);
if (error)
fprintf (stderr, "gksu_su failed: %s\n", error->message);
@@ -85,7 +85,7 @@ main (int argc, char **argv)
{
printf ("Testing gksu_sudo...\n");
error = NULL;
- gksu_sudo ("/usr/bin/xterm", &error);
+ gksu_sudo ("${X11BASE}/bin/xterm", &error);
if (error)
fprintf (stderr, "gksu_sudo failed: %s\n", error->message);
@@ -103,7 +103,7 @@ main (int argc, char **argv)
{
printf ("Testing gksu_run...\n");
error = NULL;
- gksu_run ("/usr/bin/xterm", &error);
+ gksu_run ("${X11BASE}/bin/xterm", &error);
if (error)
fprintf (stderr, "gksu_run failed: %s\n", error->message);

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-libgksuui_Makefile_in,v 1.1 2009/01/19 18:50:10 ajacoutot Exp $
--- libgksuui/Makefile.in.orig Mon Jan 19 19:29:07 2009
+++ libgksuui/Makefile.in Mon Jan 19 19:29:12 2009
@@ -240,7 +240,7 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CFLAGS = -g -O2 -Wall
+AM_CFLAGS =
INCLUDES = `pkg-config --cflags gtk+-2.0 gconf-2.0`
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DDATA_DIR=\"$(datadir)\" -DPREFIX=\"$(prefix)\"
noinst_LTLIBRARIES = libgksuui1.0.la

View File

@ -1,4 +0,0 @@
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.

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/01/17 18:45:56 jasper Exp $
@lib lib/libgksu2.so.${LIBgksu2_VERSION}

View File

@ -1,45 +0,0 @@
@comment $OpenBSD: PLIST,v 1.5 2009/06/07 06:42:26 ajacoutot Exp $
%%SHARED%%
@bin bin/gksu-properties
include/libgksu/
include/libgksu/gksu.h
include/libgksu/libgksu.h
lib/libgksu/
@bin lib/libgksu/gksu-run-helper
lib/libgksu2.a
lib/libgksu2.la
lib/pkgconfig/
lib/pkgconfig/libgksu2.pc
share/applications/gksu-properties.desktop
share/libgksu/
share/libgksu/gksu-properties.glade
share/locale/ca/LC_MESSAGES/libgksu.mo
share/locale/cs/LC_MESSAGES/libgksu.mo
share/locale/da/LC_MESSAGES/libgksu.mo
share/locale/de/LC_MESSAGES/libgksu.mo
share/locale/es/LC_MESSAGES/libgksu.mo
share/locale/eu/LC_MESSAGES/libgksu.mo
share/locale/fr/LC_MESSAGES/libgksu.mo
share/locale/hu/LC_MESSAGES/libgksu.mo
share/locale/it/LC_MESSAGES/libgksu.mo
share/locale/ko/LC_MESSAGES/libgksu.mo
share/locale/lt/
share/locale/lt/LC_MESSAGES/
share/locale/lt/LC_MESSAGES/libgksu.mo
share/locale/nb/LC_MESSAGES/libgksu.mo
share/locale/nl/LC_MESSAGES/libgksu.mo
share/locale/pl/LC_MESSAGES/libgksu.mo
share/locale/pt_BR/LC_MESSAGES/libgksu.mo
share/locale/ro/LC_MESSAGES/libgksu.mo
share/locale/ru/LC_MESSAGES/libgksu.mo
share/locale/sk/LC_MESSAGES/libgksu.mo
share/locale/sv/LC_MESSAGES/libgksu.mo
share/locale/zh_CN/LC_MESSAGES/libgksu.mo
share/pixmaps/
share/pixmaps/gksu.png
@unexec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-uninstall-rule %D/${SCHEMAS_INSTDIR}/*.schemas > /dev/null
${SCHEMAS_INSTDIR}/
${SCHEMAS_INSTDIR}/gksu.schemas
@exec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-install-rule %D/${SCHEMAS_INSTDIR}/*.schemas > /dev/null
@exec %D/bin/update-desktop-database
@unexec %D/bin/update-desktop-database

View File

@ -1,43 +0,0 @@
# $OpenBSD: Makefile,v 1.5 2009/08/10 06:34:30 kili Exp $
COMMENT= graphical frontend to su (library to the interface)
V= 1.0.7
DISTNAME= libgksuui1.0-$V
PKGNAME= libgksuui-$Vp3
SHARED_LIBS= gksuui1.0 0.0 # .1.0
CATEGORIES= sysutils
HOMEPAGE= http://www.nongnu.org/gksu/
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig \
freetype glib-2.0 glitz gmodule-2.0 gobject-2.0 m pango-1.0 \
pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs \
xcb z gio-2.0
MASTER_SITES= http://people.debian.org/~kov/gksu/old_stuff/libgksuui1.0/
MODULES= devel/gettext
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
USE_LIBTOOL= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu old
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-gtk-doc=no
post-extract:
@perl -pi -e 's,/bin/su,/usr/bin/su,g' ${WRKSRC}/po/*.po
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (libgksuui1.0-1.0.7.tar.gz) = wiZIu7F6qUKpfMMl46hXUg==
RMD160 (libgksuui1.0-1.0.7.tar.gz) = WWCY1rMXhrMa9FEKMhU9SDelH3M=
SHA1 (libgksuui1.0-1.0.7.tar.gz) = /FyPUwGOQDyMn76+DMo1mvY7MNQ=
SHA256 (libgksuui1.0-1.0.7.tar.gz) = 5R8Z2brmurGVAuFiVNUGeAUz1Q2w/GPv5+VSgjx0uek=
SIZE (libgksuui1.0-1.0.7.tar.gz) = 567721

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-libgksuui_Makefile_in,v 1.1 2009/01/19 18:50:10 ajacoutot Exp $
--- libgksuui/Makefile.in.orig Mon Jan 19 19:48:11 2009
+++ libgksuui/Makefile.in Mon Jan 19 19:48:17 2009
@@ -167,7 +167,7 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-AM_CFLAGS = -g -O2 -Wall
+AM_CFLAGS =
INCLUDES = `pkg-config --cflags gtk+-2.0`
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DDATA_DIR=\"$(datadir)\" -DPREFIX=\"$(prefix)\"

View File

@ -1,3 +0,0 @@
This library comes from the gksu program. It provides a Gtk+ dialog and
X authentication facilities for running programs as root or another user
in a X session.

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/01/17 18:47:18 jasper Exp $
@lib lib/libgksuui1.0.so.${LIBgksuui1.0_VERSION}

View File

@ -1,26 +0,0 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/17 18:47:18 jasper Exp $
%%SHARED%%
include/libgksuui1.0/
include/libgksuui1.0/gksuui-convenience.h
include/libgksuui1.0/gksuui-dialog.h
include/libgksuui1.0/gksuui.h
lib/libgksuui1.0.a
lib/libgksuui1.0.la
lib/pkgconfig/
lib/pkgconfig/libgksuui1.0.pc
share/libgksuui1.0/
share/libgksuui1.0/gksu-auth.png
share/locale/ca/LC_MESSAGES/libgksuui1.0.mo
share/locale/cs/LC_MESSAGES/libgksuui1.0.mo
share/locale/da/LC_MESSAGES/libgksuui1.0.mo
share/locale/de/LC_MESSAGES/libgksuui1.0.mo
share/locale/es/LC_MESSAGES/libgksuui1.0.mo
share/locale/fr/LC_MESSAGES/libgksuui1.0.mo
share/locale/hu/LC_MESSAGES/libgksuui1.0.mo
share/locale/nb/LC_MESSAGES/libgksuui1.0.mo
share/locale/nl/LC_MESSAGES/libgksuui1.0.mo
share/locale/pl/LC_MESSAGES/libgksuui1.0.mo
share/locale/pt_BR/LC_MESSAGES/libgksuui1.0.mo
share/locale/ro/LC_MESSAGES/libgksuui1.0.mo
share/locale/ru/LC_MESSAGES/libgksuui1.0.mo
share/locale/sk/LC_MESSAGES/libgksuui1.0.mo