Import krb5-auth-dialog-3.0.1.

krb5-auth-dialog is a simple dialog that monitors kerberos tickets, and
pops up a dialog when they are about to expire.

ok jasper@
This commit is contained in:
ajacoutot 2011-07-15 08:28:20 +00:00
parent 8178735a4d
commit 7f9f3d9846
6 changed files with 246 additions and 0 deletions

View File

@ -0,0 +1,63 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/07/15 08:28:20 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= monitor kerberos tickets
GNOME_PROJECT= krb5-auth-dialog
GNOME_VERSION= 3.0.1
CATEGORIES= security
HOMEPAGE= https://honk.sigxcpu.org/piki/projects/krb5-auth-dialog/
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += GL ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender Xxf86vm asn1
WANTLIB += atk-1.0 c cairo cairo-gobject crypto drm expat fontconfig
WANTLIB += freetype gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gnome-control-center gobject-2.0 gssapi gthread-2.0
WANTLIB += gtk-3 krb5 m notify pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += pcre pixman-1 png pthread pthread-stubs xcb xcb-render
WANTLIB += xcb-shm z
MODULES= devel/gettext \
x11/gnome \
devel/gconf2
LIB_DEPENDS= x11/gnome/controlcenter
MODGCONF2_SCHEMAS_DIR= krb5-auth-dialog
MODGNOME_HELP_FILES= Yes
DESKTOP_FILES= Yes
FAKE_FLAGS= autostartdir=${PREFIX}/share/examples/krb5-auth-dialog/xdg/autostart \
smallicondir=${PREFIX}/share/icons/hicolor/22x22/apps
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
KRB5_CFLAGS="-I/usr/include/kerberosV" \
KRB5_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-static \
--with-gtk=3.0 \
--enable-pkinit \
--disable-network-manager \
--without-pam
LIBTOOL_FLAGS= --tag=disable-static
post-extract:
${INSTALL} -m 555 ${FILESDIR}/krb5-config ${WRKDIR}/bin
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/krb5-auth-dialog
${INSTALL_DATA} ${WRKSRC}/README \
${PREFIX}/share/doc/krb5-auth-dialog
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (gnome/krb5-auth-dialog-3.0.1.tar.bz2) = 7N7zAWATcnNjwSZCuFewdg==
RMD160 (gnome/krb5-auth-dialog-3.0.1.tar.bz2) = z2Hg2WHFhyqKZToeg7l8mfiAO08=
SHA1 (gnome/krb5-auth-dialog-3.0.1.tar.bz2) = HrAN8xTOJOBituDnqq1qWoZuSuA=
SHA256 (gnome/krb5-auth-dialog-3.0.1.tar.bz2) = eHE1h/cjYlT7mgNbv3TrKPKj5BgGhPFOWwnJOS7TFgA=
SIZE (gnome/krb5-auth-dialog-3.0.1.tar.bz2) = 627973

View File

@ -0,0 +1,12 @@
#! /bin/sh
#
# $OpenBSD: krb5-config,v 1.1.1.1 2011/07/15 08:28:20 ajacoutot Exp $
#
case x$1 in
x--libs)
echo '-lgssapi -lkrb5 -lasn1 -lcrypto';;
x--cflags)
echo '-I/usr/include/kerberosV';;
esac
exit 0

View File

@ -0,0 +1,52 @@
$OpenBSD: patch-src_ka-dialog_c,v 1.1.1.1 2011/07/15 08:28:20 ajacoutot Exp $
XXX these should be handled by configure checks.
krb5_get_init_creds_opt_set_pkinit: does not take 11 arguments.
krb5_get_init_creds_opt_free: the context argument is an MIT extension.
--- src/ka-dialog.c.orig Fri Apr 22 21:15:57 2011
+++ src/ka-dialog.c Fri Jul 15 09:29:25 2011
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <time.h>
#include <krb5.h>
+#include <com_err.h>
#include <stdio.h>
#include <sys/wait.h>
#include <string.h>
@@ -170,8 +171,6 @@ ka_get_error_message (krb5_context context, krb5_error
krberr = krb5_get_error_message (context, err);
msg = g_strdup (krberr);
ka_krb5_free_error_message (context, krberr);
-#else
-# error No detailed error message information
#endif
if (msg == NULL)
msg = g_strdup (_("unknown error"));
@@ -595,7 +594,7 @@ ka_auth_heimdal_pkinit (KaApplet *applet, krb5_creds *
goto out;
ka_set_ticket_options (applet, kcontext, opts, NULL, NULL);
- retval = krb5_get_init_creds_opt_set_pkinit (kcontext, opts, kprincipal, pk_userid, pkinit_anchors, NULL, NULL, 0, /* pk_use_enc_key */
+ retval = krb5_get_init_creds_opt_set_pkinit (kcontext, opts, kprincipal, pk_userid, pkinit_anchors, 0, /* pk_use_enc_key */
auth_dialog_prompter, applet, /* data */
NULL); /* passwd */
KA_DEBUG ("pkinit returned with %d", retval);
@@ -607,7 +606,7 @@ ka_auth_heimdal_pkinit (KaApplet *applet, krb5_creds *
0, NULL, opts);
out:
if (opts)
- krb5_get_init_creds_opt_free (kcontext, opts);
+ krb5_get_init_creds_opt_free (opts);
return retval;
}
#endif /* ! ENABLE_PKINIT */
@@ -628,7 +627,7 @@ ka_auth_password (KaApplet *applet, krb5_creds *creds,
0, NULL, opts);
out:
if (opts)
- krb5_get_init_creds_opt_free (kcontext, opts);
+ krb5_get_init_creds_opt_free (opts);
return retval;
}

View File

@ -0,0 +1,2 @@
krb5-auth-dialog is a simple dialog that monitors kerberos tickets, and
pops up a dialog when they are about to expire.

View File

@ -0,0 +1,112 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/07/15 08:28:20 ajacoutot Exp $
@bin bin/krb5-auth-dialog
@comment lib/control-center-1/panels/libka.la
lib/control-center-1/panels/libka.so
lib/krb5-auth-dialog/
lib/krb5-auth-dialog/plugins/
@comment lib/krb5-auth-dialog/plugins/libka-plugin-afs.la
lib/krb5-auth-dialog/plugins/libka-plugin-afs.so
@comment lib/krb5-auth-dialog/plugins/libka-plugin-dummy.la
lib/krb5-auth-dialog/plugins/libka-plugin-dummy.so
@man man/man1/krb5-auth-dialog.1
share/applications/gnome-ka-panel.desktop
share/applications/krb5-auth-dialog.desktop
share/dbus-1/services/org.gnome.KrbAuthDialog.service
share/doc/krb5-auth-dialog/
share/doc/krb5-auth-dialog/README
share/examples/krb5-auth-dialog/
share/examples/krb5-auth-dialog/xdg/
@sample ${SYSCONFDIR}/xdg/
share/examples/krb5-auth-dialog/xdg/autostart/
@sample ${SYSCONFDIR}/xdg/autostart/
share/examples/krb5-auth-dialog/xdg/autostart/krb5-auth-dialog.desktop
@sample ${SYSCONFDIR}/xdg/autostart/krb5-auth-dialog.desktop
share/gnome/help/
share/gnome/help/krb5-auth-dialog/
share/gnome/help/krb5-auth-dialog/C/
share/gnome/help/krb5-auth-dialog/C/figures/
share/gnome/help/krb5-auth-dialog/C/figures/ka-expired.png
share/gnome/help/krb5-auth-dialog/C/figures/ka-expiring.png
share/gnome/help/krb5-auth-dialog/C/figures/ka-valid.png
share/gnome/help/krb5-auth-dialog/C/figures/trayicon-expired.png
share/gnome/help/krb5-auth-dialog/C/figures/trayicon-expiring.png
share/gnome/help/krb5-auth-dialog/C/figures/trayicon-valid.png
share/gnome/help/krb5-auth-dialog/C/krb5-auth-dialog.xml
share/gnome/help/krb5-auth-dialog/C/legal.xml
share/gnome/help/krb5-auth-dialog/de/
share/gnome/help/krb5-auth-dialog/de/figures/
share/gnome/help/krb5-auth-dialog/de/figures/ka-expired.png
share/gnome/help/krb5-auth-dialog/de/figures/ka-expiring.png
share/gnome/help/krb5-auth-dialog/de/figures/ka-valid.png
share/gnome/help/krb5-auth-dialog/de/figures/trayicon-expired.png
share/gnome/help/krb5-auth-dialog/de/figures/trayicon-expiring.png
share/gnome/help/krb5-auth-dialog/de/figures/trayicon-valid.png
share/gnome/help/krb5-auth-dialog/de/krb5-auth-dialog.xml
share/gnome/help/krb5-auth-dialog/es/
share/gnome/help/krb5-auth-dialog/es/figures/
share/gnome/help/krb5-auth-dialog/es/figures/ka-expired.png
share/gnome/help/krb5-auth-dialog/es/figures/ka-expiring.png
share/gnome/help/krb5-auth-dialog/es/figures/ka-valid.png
share/gnome/help/krb5-auth-dialog/es/figures/trayicon-expired.png
share/gnome/help/krb5-auth-dialog/es/figures/trayicon-expiring.png
share/gnome/help/krb5-auth-dialog/es/figures/trayicon-valid.png
share/gnome/help/krb5-auth-dialog/es/krb5-auth-dialog.xml
share/gnome/help/krb5-auth-dialog/sl/
share/gnome/help/krb5-auth-dialog/sl/figures/
share/gnome/help/krb5-auth-dialog/sl/figures/ka-expired.png
share/gnome/help/krb5-auth-dialog/sl/figures/ka-expiring.png
share/gnome/help/krb5-auth-dialog/sl/figures/ka-valid.png
share/gnome/help/krb5-auth-dialog/sl/figures/trayicon-expired.png
share/gnome/help/krb5-auth-dialog/sl/figures/trayicon-expiring.png
share/gnome/help/krb5-auth-dialog/sl/figures/trayicon-valid.png
share/gnome/help/krb5-auth-dialog/sl/krb5-auth-dialog.xml
share/gnome/help/krb5-auth-dialog/sv/
share/gnome/help/krb5-auth-dialog/sv/figures/
share/gnome/help/krb5-auth-dialog/sv/figures/ka-expired.png
share/gnome/help/krb5-auth-dialog/sv/figures/ka-expiring.png
share/gnome/help/krb5-auth-dialog/sv/figures/ka-valid.png
share/gnome/help/krb5-auth-dialog/sv/figures/trayicon-expired.png
share/gnome/help/krb5-auth-dialog/sv/figures/trayicon-expiring.png
share/gnome/help/krb5-auth-dialog/sv/figures/trayicon-valid.png
share/gnome/help/krb5-auth-dialog/sv/krb5-auth-dialog.xml
share/icons/hicolor/22x22/status/krb-expiring-ticket.png
share/icons/hicolor/22x22/status/krb-no-valid-ticket.png
share/icons/hicolor/22x22/status/krb-valid-ticket.png
share/icons/hicolor/48x48/status/krb-expiring-ticket.png
share/icons/hicolor/48x48/status/krb-no-valid-ticket.png
share/icons/hicolor/48x48/status/krb-valid-ticket.png
share/icons/hicolor/scalable/status/krb-expiring-ticket.svg
share/icons/hicolor/scalable/status/krb-no-valid-ticket.svg
share/icons/hicolor/scalable/status/krb-valid-ticket.svg
share/krb5-auth-dialog/
share/krb5-auth-dialog/ka-panel.ui
share/krb5-auth-dialog/krb5-auth-dialog.ui
share/locale/cs/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/da/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/de/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/es/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/fr/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/gl/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/nb/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/pa/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/pt_BR/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/sl/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/sv/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/uk/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/zh_CN/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/zh_HK/LC_MESSAGES/krb5-auth-dialog.mo
share/locale/zh_TW/LC_MESSAGES/krb5-auth-dialog.mo
share/omf/krb5-auth-dialog/
share/omf/krb5-auth-dialog/krb5-auth-dialog-C.omf
share/omf/krb5-auth-dialog/krb5-auth-dialog-de.omf
share/omf/krb5-auth-dialog/krb5-auth-dialog-es.omf
share/omf/krb5-auth-dialog/krb5-auth-dialog-sl.omf
share/omf/krb5-auth-dialog/krb5-auth-dialog-sv.omf
@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}/krb5-auth-dialog.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/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true
@unexec-delete %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database