From f7ab8891073c4837ce7c75aa9659d7b2fb3e04f1 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 15 Nov 2008 19:36:09 +0000 Subject: Initial import of libgksu-2.0.7. I packaged it for Gnome, but currently it looks like it's not really needed, so it's untested. GKSu is a library that provides a Gtk+ frontend to su and sudo. 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. --- sysutils/libgksu/DESCR | 5 ++++ sysutils/libgksu/Makefile | 32 ++++++++++++++++++++++++++ sysutils/libgksu/PLIST | 48 +++++++++++++++++++++++++++++++++++++++ sysutils/libgksu/buildlink3.mk | 25 ++++++++++++++++++++ sysutils/libgksu/distinfo | 6 +++++ sysutils/libgksu/patches/patch-aa | 17 ++++++++++++++ 6 files changed, 133 insertions(+) create mode 100644 sysutils/libgksu/DESCR create mode 100644 sysutils/libgksu/Makefile create mode 100644 sysutils/libgksu/PLIST create mode 100644 sysutils/libgksu/buildlink3.mk create mode 100644 sysutils/libgksu/distinfo create mode 100644 sysutils/libgksu/patches/patch-aa (limited to 'sysutils') diff --git a/sysutils/libgksu/DESCR b/sysutils/libgksu/DESCR new file mode 100644 index 00000000000..760427d3e55 --- /dev/null +++ b/sysutils/libgksu/DESCR @@ -0,0 +1,5 @@ +GKSu is a library that provides a Gtk+ frontend to su and sudo. 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. diff --git a/sysutils/libgksu/Makefile b/sysutils/libgksu/Makefile new file mode 100644 index 00000000000..a99f38e3f97 --- /dev/null +++ b/sysutils/libgksu/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/11/15 19:36:09 wiz Exp $ +# + +DISTNAME= libgksu-2.0.7 +CATEGORIES= sysutils +MASTER_SITES= http://people.debian.org/~kov/gksu/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.nongnu.org/gksu/ +COMMENT= Library that provides a GTK+ frontend to su and sudo + +GNU_CONFIGURE= yes + +CONFIGURE_ENV+= GCONF_SCHEMA_FILE_DIR=${PREFIX}/share/gconf/schemas/ +MAKE_ENV+= GCONF_SCHEMA_FILE_DIR=${PREFIX}/share/gconf/schemas/ + +USE_DIRS+= xdg-1.4 +USE_LIBTOOL= yes +USE_TOOLS+= gmake intltool pkg-config + +GCONF_SCHEMAS+= gksu.schemas +PKGCONFIG_OVERRIDE+= libgksu/libgksu2.pc.in + +.include "../../devel/GConf/schemas.mk" +.include "../../devel/libglade/buildlink3.mk" +.include "../../textproc/gtk-doc/buildlink3.mk" +.include "../../security/gnome-keyring/buildlink3.mk" +.include "../../sysutils/libgtop/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/libSM/buildlink3.mk" +.include "../../x11/startup-notification/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/libgksu/PLIST b/sysutils/libgksu/PLIST new file mode 100644 index 00000000000..ccde2832146 --- /dev/null +++ b/sysutils/libgksu/PLIST @@ -0,0 +1,48 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/11/15 19:36:09 wiz Exp $ +bin/gksu-properties +include/libgksu/gksu.h +include/libgksu/libgksu.h +lib/libgksu/gksu-run-helper +lib/libgksu2.la +lib/pkgconfig/libgksu2.pc +share/applications/gksu-properties.desktop +share/gconf/schemas/gksu.schemas +share/gtk-doc/html/libgksu/home.png +share/gtk-doc/html/libgksu/index.html +share/gtk-doc/html/libgksu/index.sgml +share/gtk-doc/html/libgksu/left.png +share/gtk-doc/html/libgksu/libgksu-API-Reference.html +share/gtk-doc/html/libgksu/libgksu.devhelp +share/gtk-doc/html/libgksu/libgksu.devhelp2 +share/gtk-doc/html/libgksu/right.png +share/gtk-doc/html/libgksu/style.css +share/gtk-doc/html/libgksu/up.png +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/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/gksu.png +@comment in xdg-dirs: @dirrm share/pixmaps +@dirrm share/libgksu +@dirrm share/gtk-doc/html/libgksu +@comment in GConf: @dirrm share/gconf/schemas +@comment in xdg-dirs: @dirrm share/applications +@dirrm lib/libgksu +@dirrm include/libgksu diff --git a/sysutils/libgksu/buildlink3.mk b/sysutils/libgksu/buildlink3.mk new file mode 100644 index 00000000000..6d33c4cea9f --- /dev/null +++ b/sysutils/libgksu/buildlink3.mk @@ -0,0 +1,25 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/11/15 19:36:09 wiz Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBGKSU_BUILDLINK3_MK:= ${LIBGKSU_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= libgksu +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibgksu} +BUILDLINK_PACKAGES+= libgksu +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libgksu + +.if ${LIBGKSU_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.libgksu+= libgksu>=2.0.7 +BUILDLINK_PKGSRCDIR.libgksu?= ../../zzz/libgksu +.endif # LIBGKSU_BUILDLINK3_MK + +.include "../../security/gnome-keyring/buildlink3.mk" +.include "../../sysutils/libgtop/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.include "../../x11/libSM/buildlink3.mk" +.include "../../x11/startup-notification/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/sysutils/libgksu/distinfo b/sysutils/libgksu/distinfo new file mode 100644 index 00000000000..460ea02c66a --- /dev/null +++ b/sysutils/libgksu/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/11/15 19:36:09 wiz Exp $ + +SHA1 (libgksu-2.0.7.tar.gz) = e72b3366a879ee4ece7717da8957715c848d2a5e +RMD160 (libgksu-2.0.7.tar.gz) = a93cb7c5198b3581e80b7399d797da285fefbd64 +Size (libgksu-2.0.7.tar.gz) = 510752 bytes +SHA1 (patch-aa) = 65dc525d4cc7f65023c88006c6f775474ad58136 diff --git a/sysutils/libgksu/patches/patch-aa b/sysutils/libgksu/patches/patch-aa new file mode 100644 index 00000000000..18c0c6154d7 --- /dev/null +++ b/sysutils/libgksu/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/11/15 19:36:09 wiz Exp $ + +--- libgksu/libgksu.c.orig 2008-05-28 00:00:44.000000000 +0000 ++++ libgksu/libgksu.c +@@ -23,7 +23,12 @@ + #include + #include + #include ++#ifdef __linux__ + #include ++#endif ++#ifdef __NetBSD__ ++#include ++#endif + #include + #include + #include -- cgit v1.2.3