diff options
author | Marien Zwart <marienz@gentoo.org> | 2007-05-28 19:04:57 +0000 |
---|---|---|
committer | Marien Zwart <marienz@gentoo.org> | 2007-05-28 19:04:57 +0000 |
commit | 1e7a3c3efe46503a841eef060bbbad80f0abe957 (patch) | |
tree | 66f008c4c3b257404eb3c51f1db5ce8a7d362507 /dev-python | |
parent | vBump to 2.15.5 (diff) | |
download | historical-1e7a3c3efe46503a841eef060bbbad80f0abe957.tar.gz historical-1e7a3c3efe46503a841eef060bbbad80f0abe957.tar.bz2 historical-1e7a3c3efe46503a841eef060bbbad80f0abe957.zip |
New ebuild, thanks to gentoofan23 on freenode for testing.
Package-Manager: portage-2.1.2.8
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pypam/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pypam/Manifest | 34 | ||||
-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, 134 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..d14cc8bba941 --- /dev/null +++ b/dev-python/pypam/Manifest @@ -0,0 +1,34 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 440 RMD160 5ed29477b05d11e57a9be175adb281505dd4e194 SHA1 305f845038cf0d1da387cdec6e4a716e932fb7c9 SHA256 058d19ad58bc3babaef5b578bc5c07178635ad140d7153257ce9fd5970b0a8f0 +MD5 9799feba24b805d8d5a13bdc84825f41 files/pypam-0.5.0-stricter.patch 440 +RMD160 5ed29477b05d11e57a9be175adb281505dd4e194 files/pypam-0.5.0-stricter.patch 440 +SHA256 058d19ad58bc3babaef5b578bc5c07178635ad140d7153257ce9fd5970b0a8f0 files/pypam-0.5.0-stricter.patch 440 +DIST PyPAM-0.5.0.tar.gz 105206 RMD160 e54388742bd5cdbf8fc663980f4cfbdc516b5845 SHA1 fac6c2958fffc38454b1104d2d0f1f28563eff42 SHA256 796ac019b9ee805696d0d277d8fb912fa2391b6ac070dc6f9f1a9a0fadbc3a5a +EBUILD pypam-0.5.0.ebuild 1294 RMD160 85aa2c1fd1ea48b10da871b13dd64fb621769587 SHA1 52d89a7da045cb93dbcc854c06dda615eabb94c2 SHA256 a5a84263a6806316295e8190651ff49a904a6e23c0791333d077eb7793522070 +MD5 0c7002a6bad878b0da86cfe53ec9db54 pypam-0.5.0.ebuild 1294 +RMD160 85aa2c1fd1ea48b10da871b13dd64fb621769587 pypam-0.5.0.ebuild 1294 +SHA256 a5a84263a6806316295e8190651ff49a904a6e23c0791333d077eb7793522070 pypam-0.5.0.ebuild 1294 +MISC ChangeLog 328 RMD160 5682b40a55ae9456cf6bff507938516ab2718cfc SHA1 8b27a5b2eecd6724976fbcedcebbf44f2cf1a31c SHA256 17c435fb9dd9d6c1d0473b1da75bf7641de3232fa34cc33a843734f618e61452 +MD5 6b04b24e451161e5dcc1514e8139b806 ChangeLog 328 +RMD160 5682b40a55ae9456cf6bff507938516ab2718cfc ChangeLog 328 +SHA256 17c435fb9dd9d6c1d0473b1da75bf7641de3232fa34cc33a843734f618e61452 ChangeLog 328 +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 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.4 (GNU/Linux) + +iD8DBQFGWygDUElL7eJpfEQRAjlfAJ9Ldapc8CevYzkuphIvkUHsRH7ZvwCdG/5l +Ew3wZ1zmzNwWplEU56OmkoI= +=Dlbf +-----END PGP SIGNATURE----- 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. + : +} |