-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add py-spwd, the spwd module from the Python distribution.
Packaged by Naham Shalman in TritonDataCenter/pkgsrc#173.
- Loading branch information
jperkin
committed
Feb 13, 2014
1 parent
ae8dff4
commit ecb4e4c
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | ||
) | ||
] | ||
) |