[packages/realmd] - initial
qboosh
qboosh at pld-linux.org
Mon Dec 22 22:38:56 CET 2014
commit 8e9043cba3be0c49d50a1ce65dbea9d468ef8cd7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Dec 22 22:39:40 2014 +0100
- initial
realmd-heimdal.patch | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++
realmd-pld.patch | 32 +++++++++++++++
realmd.spec | 84 +++++++++++++++++++++++++++++++++++++++
3 files changed, 225 insertions(+)
---
diff --git a/realmd.spec b/realmd.spec
new file mode 100644
index 0000000..d3eaedf
--- /dev/null
+++ b/realmd.spec
@@ -0,0 +1,84 @@
+# TODO: verify heimdal patch, complete pld patch
+#
+# Conditional build:
+%bcond_with krb5 # use MIT KRB5 instead of Heimdal Kerberos
+#
+Summary: D-Bus service for configuring Kerberos and other online identities
+Summary(pl.UTF-8): Usługa D-Bus do konfigurowania Kerberosa i innych tożsamości w sieci
+Name: realmd
+Version: 0.14.5
+Release: 1
+License: LGPL v2+
+Group: Applications/System
+Source0: http://www.freedesktop.org/software/realmd/releases/%{name}-%{version}.tar.gz
+# Source0-md5: 18ed8480e0fd9a1badb8f4504dafd5e0
+Patch0: %{name}-pld.patch
+Patch1: %{name}-heimdal.patch
+URL: http://www.freedesktop.org/software/realmd/
+BuildRequires: PackageKit-devel
+BuildRequires: autoconf >= 2.63
+BuildRequires: automake >= 1:1.11
+BuildRequires: docbook-style-xsl
+BuildRequires: gettext-devel
+BuildRequires: glib2-devel >= 1:2.32.0
+%{!?with_krb5:BuildRequires: heimdal-devel}
+BuildRequires: intltool >= 0.35.0
+%{?with_krb5:BuildRequires: krb5-devel}
+BuildRequires: libxslt-progs
+BuildRequires: openldap-devel
+BuildRequires: pkgconfig
+BuildRequires: polkit-devel
+BuildRequires: systemd-devel
+BuildRequires: xmlto
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+D-Bus service for configuring Kerberos and other online identities.
+
+%description -l pl.UTF-8
+Usługa D-Bus do konfigurowania Kerberosa i innych tożsamości w sieci.
+
+%prep
+%setup -q
+%patch0 -p1
+%{!?with_krb5:%patch1 -p1}
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-silent-rules \
+ --with-distro=pld \
+ --with-systemd-unit-dir=%{systemdunitdir}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README doc/internals/html/*
+%attr(755,root,root) %{_sbindir}/realm
+%dir %{_libdir}/realmd
+%attr(755,root,root) %{_libdir}/realmd/realmd
+%{_libdir}/realmd/realmd-defaults.conf
+%{_libdir}/realmd/realmd-distro.conf
+/etc/dbus-1/system.d/org.freedesktop.realmd.conf
+%{systemdunitdir}/realmd.service
+%{_datadir}/dbus-1/system-services/org.freedesktop.realmd.service
+%{_datadir}/polkit-1/actions/org.freedesktop.realmd.policy
+%dir /var/cache/realmd
+%dir /var/lib/realmd
+%{_mandir}/man5/realmd.conf.5*
+%{_mandir}/man8/realm.8*
+%{_docdir}/realmd
diff --git a/realmd-heimdal.patch b/realmd-heimdal.patch
new file mode 100644
index 0000000..840ad05
--- /dev/null
+++ b/realmd-heimdal.patch
@@ -0,0 +1,109 @@
+--- realmd-0.14.5/service/realm-credential.h.orig 2013-05-02 14:28:20.000000000 +0200
++++ realmd-0.14.5/service/realm-credential.h 2014-12-21 20:31:06.884885895 +0100
+@@ -19,7 +19,7 @@
+
+ #include <gio/gio.h>
+
+-#include <krb5/krb5.h>
++#include <krb5.h>
+
+ G_BEGIN_DECLS
+
+--- realmd-0.14.5/service/realm-kerberos.c.orig 2013-07-19 18:04:44.000000000 +0200
++++ realmd-0.14.5/service/realm-kerberos.c 2014-12-21 20:31:06.908219228 +0100
+@@ -31,7 +31,7 @@
+ #include "realm-provider.h"
+ #include "realm-settings.h"
+
+-#include <krb5/krb5.h>
++#include <krb5.h>
+
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
+@@ -1067,7 +1067,7 @@ gboolean
+ realm_kerberos_flush_keytab (const gchar *realm_name,
+ GError **error)
+ {
+- char kt_name[MAX_KEYTAB_NAME_LEN];
++ char kt_name[1100];
+ krb5_error_code code;
+ krb5_keytab keytab;
+ krb5_context ctx;
+--- realmd-0.14.5/service/realm-kerberos.h.orig 2013-07-19 17:53:39.000000000 +0200
++++ realmd-0.14.5/service/realm-kerberos.h 2014-12-21 20:31:06.881552562 +0100
+@@ -19,7 +19,7 @@
+
+ #include <gio/gio.h>
+
+-#include <krb5/krb5.h>
++#include <krb5.h>
+
+ #include "realm-dbus-generated.h"
+ #include "realm-disco.h"
+--- realmd-0.14.5/service/realm-kerberos-membership.h.orig 2013-05-02 14:28:20.000000000 +0200
++++ realmd-0.14.5/service/realm-kerberos-membership.h 2014-12-21 20:31:06.884885895 +0100
+@@ -19,7 +19,7 @@
+
+ #include <gio/gio.h>
+
+-#include <krb5/krb5.h>
++#include <krb5.h>
+
+ #include "realm-credential.h"
+ #include "realm-dbus-generated.h"
+--- realmd-0.14.5/tools/realm-client.c.orig 2013-07-24 16:52:32.000000000 +0200
++++ realmd-0.14.5/tools/realm-client.c 2014-12-21 21:54:40.281342170 +0100
+@@ -25,7 +25,7 @@
+ #include <glib/gstdio.h>
+ #include <glib-unix.h>
+
+-#include <krb5/krb5.h>
++#include <krb5.h>
+
+ #include <sys/socket.h>
+
+@@ -664,8 +664,10 @@ kinit_to_ccache (krb5_context krb5,
+ code = krb5_get_init_creds_opt_alloc (krb5, &options);
+ g_return_val_if_fail (code == 0, FALSE);
+
++#ifdef MIT_KRB
+ code = krb5_get_init_creds_opt_set_out_ccache (krb5, options, ccache);
+ g_return_val_if_fail (code == 0, FALSE);
++#endif
+
+ code = krb5_get_init_creds_password (krb5, &my_creds, principal, NULL,
+ krb5_prompter_posix, 0, 0, NULL, options);
+@@ -972,7 +974,11 @@ lookup_ccache_credential (const gchar *r
+ KRB5_TGS_NAME, realm_name, NULL);
+ g_return_val_if_fail (code == 0, FALSE);
+
++#ifdef MIT_KRB
+ code = krb5_cc_select (krb5, server, &origin, &principal);
++#else
++ code = krb5_cc_cache_match (krb5, &principal, &origin);
++#endif
+
+ krb5_free_principal (krb5, server);
+ if (principal)
+--- realmd-0.14.5/tools/realm.c.orig 2013-08-14 17:21:53.000000000 +0200
++++ realmd-0.14.5/tools/realm.c 2014-12-21 20:31:06.834885897 +0100
+@@ -23,7 +23,7 @@
+ #include <glib/gi18n.h>
+ #include <glib-object.h>
+
+-#include <krb5/krb5.h>
++#include <krb5.h>
+
+ #include <locale.h>
+
+--- realmd-0.14.5/tools/realm-discover.c.orig 2013-05-02 14:28:20.000000000 +0200
++++ realmd-0.14.5/tools/realm-discover.c 2014-12-21 20:31:06.861552564 +0100
+@@ -19,7 +19,7 @@
+ #include "realm-dbus-constants.h"
+ #include "realm-dbus-generated.h"
+
+-#include <krb5/krb5.h>
++#include <krb5.h>
+
+ #include <glib.h>
+ #include <glib/gstdio.h>
diff --git a/realmd-pld.patch b/realmd-pld.patch
new file mode 100644
index 0000000..6ec20ac
--- /dev/null
+++ b/realmd-pld.patch
@@ -0,0 +1,32 @@
+--- realmd-0.14.5/service/realmd-pld.conf.orig 1970-01-01 01:00:00.000000000 +0100
++++ realmd-0.14.5/service/realmd-pld.conf 2014-12-22 22:24:22.914308162 +0100
+@@ -0,0 +1,19 @@
++# Distro specific overrides for PLD
++[paths]
++smb.conf = /etc/samba/smb.conf
++
++[samba-packages]
++samba-common = /usr/bin/net
++
++[winbind-packages]
++samba-winbind = /usr/sbin/winbindd
++samba-winbind = /usr/bin/wbinfo
++
++[sssd-packages]
++sssd = /usr/sbin/sssd
++
++[adcli-packages]
++adcli = /usr/sbin/adcli
++
++[ipa-packages]
++freeipa-client = /usr/sbin/ipa-client-install
+--- realmd-0.14.5/configure.ac.orig 2013-08-15 13:45:05.000000000 +0200
++++ realmd-0.14.5/configure.ac 2014-12-22 22:13:55.614334488 +0100
+@@ -27,6 +27,7 @@
+ AC_CHECK_FILE(/etc/redhat-release, [DISTRO="redhat"])
+ AC_CHECK_FILE(/etc/debian_version, [DISTRO="debian"])
+ AC_CHECK_FILE(/etc/SuSE-release, [DISTRO="suse"])
++ AC_CHECK_FILE(/etc/pld-release, [DISTRO="pld"])
+
+ # Not customized for these yet
+ dnl AC_CHECK_FILE(/etc/gentoo-release, [DISTRO="gentoo"])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/realmd.git/commitdiff/8e9043cba3be0c49d50a1ce65dbea9d468ef8cd7
More information about the pld-cvs-commit
mailing list