Skip to content

Commit

Permalink
Add py-spwd, the spwd module from the Python distribution.
Browse files Browse the repository at this point in the history
Packaged by Naham Shalman in TritonDataCenter/pkgsrc#173.
  • Loading branch information
jperkin committed Feb 13, 2014
1 parent edce53d commit a293049
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devel/py-spwd/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module provides access to the Unix shadow password database. It is
available on most Unix variants.
26 changes: 26 additions & 0 deletions devel/py-spwd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.1 2014/02/13 16:10:50 jperkin Exp $

PKGNAME= ${PYPKGPREFIX}-spwd-${PY_DISTVERSION}
CATEGORIES= devel misc python

MAINTAINER= [email protected]
HOMEPAGE= http://docs.python.org/2/library/spwd.html
COMMENT= Python module to access the Unix shadow password database
LICENSE= python-software-foundation

EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/spwdmodule.c

PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload

# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
(cd ${WRKSRC}; \
for f in ${PATCHDIR}/patch-*;do \
${PATCH} --batch <$$f || ${TRUE}; \
done)

.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../mk/bsd.pkg.mk"
2 changes: 2 additions & 0 deletions devel/py-spwd/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2014/02/13 16:10:50 jperkin Exp $
${PYLIB}/lib-dynload/spwd.so
5 changes: 5 additions & 0 deletions devel/py-spwd/files/Setup.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# $NetBSD: Setup.in,v 1.1 2014/02/13 16:10:50 jperkin Exp $
#
*shared*
spwd spwdmodule.c @BUILDLINK_LDFLAGS@ -R@LOCALBASE@/lib \
@BUILDLINK_CPPFLAGS@
13 changes: 13 additions & 0 deletions devel/py-spwd/files/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# $NetBSD: setup.py,v 1.1 2014/02/13 16:10:50 jperkin Exp $

import distutils
from distutils.core import setup, Extension

setup(
ext_modules = [
Extension(
'spwd',
['Modules/spwdmodule.c']
)
]
)

0 comments on commit a293049

Please sign in to comment.