summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarcy <darcy@pkgsrc.org>2004-11-12 11:29:52 +0000
committerdarcy <darcy@pkgsrc.org>2004-11-12 11:29:52 +0000
commit063f3d63ffa5052db0683d2dcae3fcab40ed8041 (patch)
tree20bb0fa74352d6081603ecb13cbcadeff93916d2
parent39c2e25e8abaa4e0c0c5408dfa072035273b25b2 (diff)
downloadpkgsrc-063f3d63ffa5052db0683d2dcae3fcab40ed8041.tar.gz
Initial import of pycrack 0.01
Python interface to cracklib
-rw-r--r--security/py-crack/DESCR3
-rw-r--r--security/py-crack/Makefile26
-rw-r--r--security/py-crack/PLIST2
-rw-r--r--security/py-crack/distinfo5
-rw-r--r--security/py-crack/patches/patch-aa19
5 files changed, 55 insertions, 0 deletions
diff --git a/security/py-crack/DESCR b/security/py-crack/DESCR
new file mode 100644
index 00000000000..0ee39411f6e
--- /dev/null
+++ b/security/py-crack/DESCR
@@ -0,0 +1,3 @@
+Pycrack is a simple Python extension module for interfacing with cracklib.
+Cracklib is a library which protects against weak passwords by checking, for
+example, that they are not too short or easily guessable by dictionary attacks.
diff --git a/security/py-crack/Makefile b/security/py-crack/Makefile
new file mode 100644
index 00000000000..796594db758
--- /dev/null
+++ b/security/py-crack/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/12 11:29:52 darcy Exp $
+#
+
+DISTNAME= pycrack-0.01
+PKGNAME= ${PYPKGPREFIX}-pycrack
+CATEGORIES= security python
+MASTER_SITES= http://www.digitalevacuation.org/pycrack/
+
+MAINTAINER= darcy@NetBSD.org
+HOMEPAGE= http://www.digitalevacuation.org/pycrack/
+COMMENT= Python interface to cracklib
+
+DEPENDS+= crack>=5.0:../../security/crack
+
+MAKE_ENV+= MANDIR=${LOCALBASE}/man
+MAKE_ENV+= BINDIR=${LOCALBASE}/bin
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+
+PYDISTUTILSPKG= yes
+PYBINMODULE= yes
+PY_PATCHPLIST= yes
+
+.include "../../lang/python/extension.mk"
+.include "../../security/libcrack/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-crack/PLIST b/security/py-crack/PLIST
new file mode 100644
index 00000000000..f487225301b
--- /dev/null
+++ b/security/py-crack/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/12 11:29:52 darcy Exp $
+${PYSITELIB}/pycrack.so
diff --git a/security/py-crack/distinfo b/security/py-crack/distinfo
new file mode 100644
index 00000000000..337047231ca
--- /dev/null
+++ b/security/py-crack/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/12 11:29:52 darcy Exp $
+
+SHA1 (pycrack-0.01.tar.gz) = 44b318795cb74f5a06896d9d7d64322e9164438b
+Size (pycrack-0.01.tar.gz) = 9195 bytes
+SHA1 (patch-aa) = c380953b710db0f0eeb26f54f2ded55e36014719
diff --git a/security/py-crack/patches/patch-aa b/security/py-crack/patches/patch-aa
new file mode 100644
index 00000000000..37e8a921dba
--- /dev/null
+++ b/security/py-crack/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/12 11:29:52 darcy Exp $
+
+--- src/pycrack.c.orig 2003-04-02 16:22:03.000000000 -0500
++++ src/pycrack.c
+@@ -1,12 +1,12 @@
+ /*
+ * Include Python API
+ */
+-#include "python2.2/Python.h"
++#include <Python.h>
+
+ /*
+ * Include cracklib API
+ */
+-#include "crack.h"
++#include <cracklib/crack.h>
+
+ /*
+ * Simple wrapper for cracklib's FascistCheck function