diff options
-rw-r--r-- | dev-python/pypam/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pypam/Manifest | 24 | ||||
-rw-r--r-- | dev-python/pypam/files/digest-pypam-0.5.0 | 3 | ||||
-rw-r--r-- | dev-python/pypam/files/pypam-0.5.0-python-2.5.patch | 13 | ||||
-rw-r--r-- | dev-python/pypam/files/pypam-0.5.0-stricter.patch | 17 | ||||
-rw-r--r-- | dev-python/pypam/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/pypam/pypam-0.5.0.ebuild | 52 |
7 files changed, 124 insertions, 0 deletions
diff --git a/dev-python/pypam/ChangeLog b/dev-python/pypam/ChangeLog new file mode 100644 index 000000000000..bd63986fff5a --- /dev/null +++ b/dev-python/pypam/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for dev-python/pypam +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pypam/ChangeLog,v 1.1 2007/05/28 19:04:57 marienz Exp $ + + 28 May 2007; Marien Zwart <marienz@gentoo.org> ChangeLog: + New ebuild, thanks to gentoofan23 on freenode for testing. + diff --git a/dev-python/pypam/Manifest b/dev-python/pypam/Manifest new file mode 100644 index 000000000000..eb16763b3ff3 --- /dev/null +++ b/dev-python/pypam/Manifest @@ -0,0 +1,24 @@ +AUX pypam-0.5.0-python-2.5.patch 345 RMD160 043d17a6efc62528fc2e730db0f2b3e3bc4c65b6 SHA1 dac511a2b1005150ff14e7884dde9bfb4585b2e8 SHA256 61e70532bae391befa2d13659dca8ba9065a4f69917d78b26a7f056fef00bea0 +MD5 4d2f6e5ca50b048c6a5b807b7be0a79b files/pypam-0.5.0-python-2.5.patch 345 +RMD160 043d17a6efc62528fc2e730db0f2b3e3bc4c65b6 files/pypam-0.5.0-python-2.5.patch 345 +SHA256 61e70532bae391befa2d13659dca8ba9065a4f69917d78b26a7f056fef00bea0 files/pypam-0.5.0-python-2.5.patch 345 +AUX pypam-0.5.0-stricter.patch 421 RMD160 625e4de108b4b581e2efcd4395713519de767482 SHA1 66f2670f839643e40552834b0f3bd00efe2bc2cf SHA256 7791f3ff6e84a2d3ae0150fee30107b0995530ec03e3f68e8327bfbb23b20c11 +MD5 7e9bd39a9d100556aa047bc6f78be6ed files/pypam-0.5.0-stricter.patch 421 +RMD160 625e4de108b4b581e2efcd4395713519de767482 files/pypam-0.5.0-stricter.patch 421 +SHA256 7791f3ff6e84a2d3ae0150fee30107b0995530ec03e3f68e8327bfbb23b20c11 files/pypam-0.5.0-stricter.patch 421 +DIST PyPAM-0.5.0.tar.gz 105206 RMD160 e54388742bd5cdbf8fc663980f4cfbdc516b5845 SHA1 fac6c2958fffc38454b1104d2d0f1f28563eff42 SHA256 796ac019b9ee805696d0d277d8fb912fa2391b6ac070dc6f9f1a9a0fadbc3a5a +EBUILD pypam-0.5.0.ebuild 1196 RMD160 ae3f01d3027c484ada6903b6c6416c568d977d85 SHA1 00eb8612100ca9af1a91c2782a61d1e55d794578 SHA256 6440de43b55e5ca7226e66dae0db8710c224c9b0e12a0875c6ce65504a7b496f +MD5 5e80df75d9747facc8bdbdd199702c11 pypam-0.5.0.ebuild 1196 +RMD160 ae3f01d3027c484ada6903b6c6416c568d977d85 pypam-0.5.0.ebuild 1196 +SHA256 6440de43b55e5ca7226e66dae0db8710c224c9b0e12a0875c6ce65504a7b496f pypam-0.5.0.ebuild 1196 +MISC ChangeLog 239 RMD160 bddb98548296295874ccfee8459e9734fa9578c9 SHA1 a5089fe512b777efce3400acf43d6fb4149abf87 SHA256 e5b724d13549a907811318561cbfcfb758b5a84427ad53d6e0c2993bb0b6c9ee +MD5 a0956440c6b9404a3cd92df8d033e373 ChangeLog 239 +RMD160 bddb98548296295874ccfee8459e9734fa9578c9 ChangeLog 239 +SHA256 e5b724d13549a907811318561cbfcfb758b5a84427ad53d6e0c2993bb0b6c9ee ChangeLog 239 +MISC metadata.xml 222 RMD160 01bd2c9180f544353de73063bede0dd6b8ca6152 SHA1 95963907e0f22bc3795213303a68a2155b1ba78a SHA256 6e5dda05386711c829057f65bfd0e3ae693232628949c1612163ce9915963a63 +MD5 5dff6cc33967055cfde969cbcb7b6d5d metadata.xml 222 +RMD160 01bd2c9180f544353de73063bede0dd6b8ca6152 metadata.xml 222 +SHA256 6e5dda05386711c829057f65bfd0e3ae693232628949c1612163ce9915963a63 metadata.xml 222 +MD5 01e7fec5606ff25c733e5fa5a685668a files/digest-pypam-0.5.0 235 +RMD160 a4bbdac36ea1056da863d28271db11120efaa935 files/digest-pypam-0.5.0 235 +SHA256 1b1fdc9d16abb72d1aec657bb509462ae1a3fa412ac70573350d7ce97eac5ae8 files/digest-pypam-0.5.0 235 diff --git a/dev-python/pypam/files/digest-pypam-0.5.0 b/dev-python/pypam/files/digest-pypam-0.5.0 new file mode 100644 index 000000000000..8600b6e9f187 --- /dev/null +++ b/dev-python/pypam/files/digest-pypam-0.5.0 @@ -0,0 +1,3 @@ +MD5 f1e7c2c56421dda28a75ace59a3c8871 PyPAM-0.5.0.tar.gz 105206 +RMD160 e54388742bd5cdbf8fc663980f4cfbdc516b5845 PyPAM-0.5.0.tar.gz 105206 +SHA256 796ac019b9ee805696d0d277d8fb912fa2391b6ac070dc6f9f1a9a0fadbc3a5a PyPAM-0.5.0.tar.gz 105206 diff --git a/dev-python/pypam/files/pypam-0.5.0-python-2.5.patch b/dev-python/pypam/files/pypam-0.5.0-python-2.5.patch new file mode 100644 index 000000000000..687e2f200426 --- /dev/null +++ b/dev-python/pypam/files/pypam-0.5.0-python-2.5.patch @@ -0,0 +1,13 @@ +=== modified file 'PAMmodule.c' +--- PAMmodule.c 2007-05-28 17:50:59 +0000 ++++ PAMmodule.c 2007-05-28 17:56:02 +0000 +@@ -541,7 +541,7 @@ + pam_end(self->pamh, PAM_SUCCESS); + dlclose(self->dlh2); + dlclose(self->dlh1); +- PyMem_DEL(self); ++ PyObject_FREE(self); + } + + static PyObject * PyPAM_getattr(PyPAMObject *self, char *name) + diff --git a/dev-python/pypam/files/pypam-0.5.0-stricter.patch b/dev-python/pypam/files/pypam-0.5.0-stricter.patch new file mode 100644 index 000000000000..9984cf8d99ee --- /dev/null +++ b/dev-python/pypam/files/pypam-0.5.0-stricter.patch @@ -0,0 +1,17 @@ +=== modified file 'PAMmodule.c' +--- PAMmodule.c 2007-05-28 17:50:59 +0000 ++++ PAMmodule.c 2007-05-28 18:13:33 +0000 +@@ -9,10 +9,11 @@ + + static char revision[] = "$Id: pypam-0.5.0-stricter.patch,v 1.1 2007/05/28 19:04:57 marienz Exp $"; + ++#include <Python.h> + #include <security/pam_appl.h> + #include <security/pam_misc.h> +-#include <Python.h> + #include <stdio.h> ++#include <string.h> + #include <dlfcn.h> + + static PyObject *PyPAM_Error; + diff --git a/dev-python/pypam/metadata.xml b/dev-python/pypam/metadata.xml new file mode 100644 index 000000000000..204216dfd8c4 --- /dev/null +++ b/dev-python/pypam/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>python</herd> +<maintainer> + <email>marienz@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-python/pypam/pypam-0.5.0.ebuild b/dev-python/pypam/pypam-0.5.0.ebuild new file mode 100644 index 000000000000..93bbda4bfeab --- /dev/null +++ b/dev-python/pypam/pypam-0.5.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pypam/pypam-0.5.0.ebuild,v 1.1 2007/05/28 19:04:57 marienz Exp $ + +inherit distutils eutils + +MY_P=${P/pypam/PyPAM} + +DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)" +HOMEPAGE="http://www.pangalactic.org/PyPAM" +SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND=">=sys-libs/pam-0.64" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS="AUTHORS examples/pamtest.py" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix a PyObject/PyMEM mixup. + epatch "${FILESDIR}/${P}-python-2.5.patch" + # Fix a missing include. + epatch "${FILESDIR}/${P}-stricter.patch" +} + +src_test() { + "${python}" setup.py install --home="${T}/test" \ + || die "testinstall failed" + PYTHONPATH="${T}/test/$(get_libdir)/python" "${python}" tests/PamTest.py \ + || die "tests failed" +} + +pkg_postinst() { + # HACK: we do not install any .py files, so there is no reason to + # run python_mod_optimize here, like distutils_pkg_postrm does. + : +} + +pkg_postrm() { + # HACK: we do not install any .py files, so there is no reason to + # run python_mod_cleanup here, like distutils_pkg_postrm does. + : +} |