Re: [SSSD] [PATCH] Package SSSDConfig API
Do not push. This patch is incomplete. On Oct 12, 2009, at 5:27 PM, Simo Sorce sso...@redhat.com wrote: On Mon, 2009-10-12 at 17:21 -0400, Stephen Gallagher wrote: ACK -- Simo Sorce * Red Hat, Inc * New York ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel
Re: [SSSD] [PATCH] Package SSSDConfig API
On Tue, Oct 13, 2009 at 09:22:51AM -0400, Stephen Gallagher wrote: On 10/13/2009 08:08 AM, Stephen Gallagher wrote: On 10/13/2009 06:22 AM, Stephen Gallagher wrote: Do not push. This patch is incomplete. On Oct 12, 2009, at 5:27 PM, Simo Sorce sso...@redhat.com wrote: On Mon, 2009-10-12 at 17:21 -0400, Stephen Gallagher wrote: ACK -- Simo Sorce * Red Hat, Inc * New York ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel I realized this morning I missed two things. Patch 0001: I forgot to include a schema plugin for the proxy provider. Patch 0002: I forgot to package the schema configuration files (and plugin configuration) in the RPM. ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel One more try on Patch 0002: it wasn't building the RPM on RHEL5, because the .egg-info file was not created in the older version of distutils. -- Stephen Gallagher RHCE 804006346421761 Maybe somebody will find a better check than %{?fedora:%{python_sitelib}/*.egg-info}, but I think it is ok for now: ACK bye, Sumit ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel
Re: [SSSD] [PATCH] Package SSSDConfig API
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/13/2009 10:00 AM, Sumit Bose wrote: On Tue, Oct 13, 2009 at 09:22:51AM -0400, Stephen Gallagher wrote: On 10/13/2009 08:08 AM, Stephen Gallagher wrote: On 10/13/2009 06:22 AM, Stephen Gallagher wrote: Do not push. This patch is incomplete. On Oct 12, 2009, at 5:27 PM, Simo Sorce sso...@redhat.com wrote: On Mon, 2009-10-12 at 17:21 -0400, Stephen Gallagher wrote: ACK -- Simo Sorce * Red Hat, Inc * New York ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel I realized this morning I missed two things. Patch 0001: I forgot to include a schema plugin for the proxy provider. Patch 0002: I forgot to package the schema configuration files (and plugin configuration) in the RPM. ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel One more try on Patch 0002: it wasn't building the RPM on RHEL5, because the .egg-info file was not created in the older version of distutils. -- Stephen Gallagher RHCE 804006346421761 Maybe somebody will find a better check than %{?fedora:%{python_sitelib}/*.egg-info}, but I think it is ok for now: ACK bye, Sumit ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel Pushed to master. - -- Stephen Gallagher RHCE 804006346421761 Looking to carve out IT costs? www.redhat.com/carveoutcosts/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkrUwNcACgkQeiVVYja6o6ONTQCfUrZ0t25SjcTtvzxFgTCyDEPS TKgAoIv3d6aq5TfZ0jW422mgUWS+33W+ =ldaa -END PGP SIGNATURE- ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel
[SSSD] [PATCH] Package SSSDConfig API
-- Stephen Gallagher RHCE 804006346421761 Looking to carve out IT costs? www.redhat.com/carveoutcosts/ From f5db2669075b92a636098c65d9e7acf630e87eb6 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher sgall...@redhat.com Date: Mon, 12 Oct 2009 17:20:22 -0400 Subject: [PATCH] Package SSSDConfig API --- contrib/sssd.spec.in |4 server/Makefile.am | 12 server/config/setup.py | 34 ++ 3 files changed, 50 insertions(+), 0 deletions(-) create mode 100644 server/config/setup.py diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 9cd657a..b3c1181 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1,4 +1,5 @@ %{!?python_sitearch: %global python_sitearch %(%{__python} -c from distutils.sysconfig import get_python_lib; print get_python_lib(1))} +%{!?python_sitelib: %global python_sitelib %(%{__python} -c from distutils.sysconfig import get_python_lib; print get_python_lib())} Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ @@ -145,6 +146,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/locale/*/LC_MESSAGES/sss_client.mo %{_datadir}/locale/*/LC_MESSAGES/sss_daemon.mo %{python_sitearch}/pysss.so +%{python_sitelib}/*.py* +%{python_sitelib}/*.egg-info + %files client /%{_lib}/libnss_sss.so.2 diff --git a/server/Makefile.am b/server/Makefile.am index 6c08274..4ec3c34 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -100,6 +100,10 @@ pyexec_LTLIBRARIES = \ pysss.la endif +dist_noinst_SCRIPTS = \ +config/setup.py \ +config/SSSDConfig.py + ### # Global compilation settings # ### @@ -561,6 +565,14 @@ installsssddirs:: $(DESTDIR)$(logpath) install-exec-hook: installsssddirs + if [ $(DESTDIR) = ]; then \ + cd $(srcdir)/config; $(PYTHON) setup.py install; \ + else \ + cd $(srcdir)/config; $(PYTHON) setup.py install --root=$(DESTDIR); \ + fi + +clean-local: + cd $(srcdir)/config; $(PYTHON) setup.py clean --all CLEANFILES = *.X */*.X */*/*.X diff --git a/server/config/setup.py b/server/config/setup.py new file mode 100644 index 000..7f108a3 --- /dev/null +++ b/server/config/setup.py @@ -0,0 +1,34 @@ +# Authors: +# Stephen Gallagher sgall...@redhat.com +# +# Copyright (C) 2009 Red Hat +# see file 'COPYING' for use and warranty information +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; version 2 only +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Python-level packaging using distutils. + + +from distutils.core import setup + +setup( +name='SSSDConfig', +version='1', +license='GPLv3+', +url='http://fedorahosted.org/sssd', +py_modules=[ +'SSSDConfig', +], +) -- 1.6.2.5 signature.asc Description: OpenPGP digital signature ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel
Re: [SSSD] [PATCH] Package SSSDConfig API
On Mon, 2009-10-12 at 17:21 -0400, Stephen Gallagher wrote: ACK -- Simo Sorce * Red Hat, Inc * New York ___ sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel