summaryrefslogtreecommitdiff
path: root/security/libcrack
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2000-10-21 09:26:21 +0000
committerrh <rh@pkgsrc.org>2000-10-21 09:26:21 +0000
commit541a6058ba28e7c22adeeecc98867c7f910dbb9f (patch)
tree411ed724184532e4c352d372f13834204be81290 /security/libcrack
parent4583aa081cdc3581ecec0981352fd1b5900b3ef1 (diff)
downloadpkgsrc-541a6058ba28e7c22adeeecc98867c7f910dbb9f.tar.gz
Initial import of libcrack-2.7, a password checking library
Diffstat (limited to 'security/libcrack')
-rw-r--r--security/libcrack/Makefile26
-rw-r--r--security/libcrack/files/md53
-rw-r--r--security/libcrack/files/patch-sum5
-rw-r--r--security/libcrack/patches/patch-aa19
-rw-r--r--security/libcrack/patches/patch-ab26
-rw-r--r--security/libcrack/patches/patch-ac38
-rw-r--r--security/libcrack/pkg/COMMENT1
-rw-r--r--security/libcrack/pkg/DESCR17
-rw-r--r--security/libcrack/pkg/PLIST15
9 files changed, 150 insertions, 0 deletions
diff --git a/security/libcrack/Makefile b/security/libcrack/Makefile
new file mode 100644
index 00000000000..dbe26badd81
--- /dev/null
+++ b/security/libcrack/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $
+#
+
+DISTNAME= cracklib,2.7
+PKGNAME= libcrack-2.7
+CATEGORIES= security
+MASTER_SITES= http://www.users.dircon.co.uk/~crypto/download/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.users.dircon.co.uk/~crypto/
+
+USE_LIBTOOL= YES
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/include/cracklib
+ cd ${WRKSRC}/cracklib && \
+ ${LIBTOOL} --mode=install ${INSTALL_DATA} libcrack.la ${PREFIX}/lib && \
+ ${INSTALL_DATA} packer.h ${PREFIX}/include/cracklib
+ ${INSTALL_SCRIPT} ${WRKSRC}/util/mkdict ${PREFIX}/bin/libcrack_mkdict
+.for util in packer testlib testnum teststr unpacker
+ cd ${WRKSRC}/util && \
+ ${INSTALL_PROGRAM} ${util} ${PREFIX}/bin/libcrack_${util}
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/libcrack/files/md5 b/security/libcrack/files/md5
new file mode 100644
index 00000000000..b80857c406b
--- /dev/null
+++ b/security/libcrack/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $
+
+MD5 (cracklib,2.7.tgz) = 7f810e310c7f2df33d1eaa2b41ab2435
diff --git a/security/libcrack/files/patch-sum b/security/libcrack/files/patch-sum
new file mode 100644
index 00000000000..b115ca922e3
--- /dev/null
+++ b/security/libcrack/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $
+
+MD5 (patch-aa) = 77b8f138f34aa6898e2a8e92050280c2
+MD5 (patch-ab) = 022bbaeb345fe05e652187264c3b6a92
+MD5 (patch-ac) = 205fa01f1b32f7b41dd5f09386168b3f
diff --git a/security/libcrack/patches/patch-aa b/security/libcrack/patches/patch-aa
new file mode 100644
index 00000000000..20db843bda5
--- /dev/null
+++ b/security/libcrack/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $
+
+--- Makefile.orig Wed Dec 31 11:33:53 1997
++++ Makefile
+@@ -9,12 +9,12 @@
+ ###
+ # set this to the absolute path (less extn) of compressed dict.
+
+-DICTPATH="/usr/local/lib/pw_dict"
++DICTPATH="${PREFIX}/libdata/pw_dict"
+
+ ###
+ # Set this to the path of one or more files continaing wordlists.
+
+-SRCDICTS=/usr/dict/words
++SRCDICTS=/usr/share/dict/words
+
+ ###
+ # If you have installed the cracklib-dicts directory, use this
diff --git a/security/libcrack/patches/patch-ab b/security/libcrack/patches/patch-ab
new file mode 100644
index 00000000000..58c3e1f62c9
--- /dev/null
+++ b/security/libcrack/patches/patch-ab
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $
+
+--- cracklib/Makefile.orig Sun Dec 14 23:49:21 1997
++++ cracklib/Makefile
+@@ -7,12 +7,16 @@
+ ###
+
+ LIB= libcrack.a
+-OBJ= fascist.o packlib.o rules.o stringlib.o
+-CFLAGS= -O -I../cracklib -DIN_CRACKLIB
++OBJS= fascist.o packlib.o rules.o stringlib.o
++CFLAGS+= -I../cracklib -DIN_CRACKLIB
+
+-$(LIB): $(OBJ)
+- ar rv $(LIB) $?
+- -ranlib $(LIB)
++all: ${LIB}
++
++.c.o:
++ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} ${.IMPSRC} -c -o ${.TARGET}
++
++${LIB}: ${OBJS}
++ ${LIBTOOL} --mode=link ${CC} -o ${.TARGET:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:7
+
+ clean:
+ -rm -f $(OBJ) $(LIB) *~
diff --git a/security/libcrack/patches/patch-ac b/security/libcrack/patches/patch-ac
new file mode 100644
index 00000000000..23cacae5a37
--- /dev/null
+++ b/security/libcrack/patches/patch-ac
@@ -0,0 +1,38 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $
+
+--- util/Makefile.orig Sun Dec 14 23:49:34 1997
++++ util/Makefile
+@@ -14,26 +14,26 @@
+ #SunOS users (and others?) should consider static linking of their passwd binary
+ #CFLAGS= -O -I../cracklib '-DCRACKLIB_DICTPATH="$(DICTPATH)"' -Bstatic
+
+-CFLAGS= -O -I../cracklib '-DCRACKLIB_DICTPATH="$(DICTPATH)"'
+-LIBS= ../cracklib/libcrack.a
++CFLAGS+=-I../cracklib '-DCRACKLIB_DICTPATH="${DICTPATH}"'
++LIBS= ../cracklib/.libs/libcrack.a
+
+ all: packer unpacker testnum teststr testlib
+ touch all
+
+ packer: packer.o $(LIBS)
+- cc $(CFLAGS) -o $@ $@.o $(LIBS)
++ ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
+
+ unpacker: unpacker.o $(LIBS)
+- cc $(CFLAGS) -o $@ $@.o $(LIBS)
++ ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
+
+ testnum: testnum.o $(LIBS)
+- cc $(CFLAGS) -o $@ $@.o $(LIBS)
++ ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
+
+ teststr: teststr.o $(LIBS)
+- cc $(CFLAGS) -o $@ $@.o $(LIBS)
++ ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
+
+ testlib: testlib.o $(LIBS)
+- cc $(CFLAGS) -o $@ $@.o $(LIBS)
++ ${CC} ${CFLAGS} -o $@ $@.o ${LIBS}
+
+ clean:
+ -rm *.o *~ all
diff --git a/security/libcrack/pkg/COMMENT b/security/libcrack/pkg/COMMENT
new file mode 100644
index 00000000000..70da7dc5782
--- /dev/null
+++ b/security/libcrack/pkg/COMMENT
@@ -0,0 +1 @@
+password checking library
diff --git a/security/libcrack/pkg/DESCR b/security/libcrack/pkg/DESCR
new file mode 100644
index 00000000000..056ef6de127
--- /dev/null
+++ b/security/libcrack/pkg/DESCR
@@ -0,0 +1,17 @@
+ CrackLib is a library containing a C function (well, lots of functions
+really, but you only need to use one of them) which may be used in a
+"passwd"-like program.
+
+ The idea is simple: try to prevent users from choosing passwords that
+could be guessed by "Crack" by filtering them out, at source.
+
+ CrackLib is an offshoot of the the version 5 "Crack" software, and
+contains a considerable number of ideas nicked from the new software.
+
+ NOTE THIS WELL: CrackLib is NOT a replacement "passwd" program.
+CrackLib is a LIBRARY. CrackLib is what trendy marketdroid types would
+probably call an "enabler".
+
+ The idea is that you wire it into your _own_ "passwd" program (if you
+have source); alternatively, you wire it into something like "shadow"
+from off of the net. You can use it in other things, too.
diff --git a/security/libcrack/pkg/PLIST b/security/libcrack/pkg/PLIST
new file mode 100644
index 00000000000..1efea05f603
--- /dev/null
+++ b/security/libcrack/pkg/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $
+bin/libcrack_mkdict
+bin/libcrack_packer
+bin/libcrack_testlib
+bin/libcrack_testnum
+bin/libcrack_teststr
+bin/libcrack_unpacker
+include/cracklib/packer.h
+lib/libcrack.a
+lib/libcrack.la
+lib/libcrack.so.2.7
+libdata/pw_dict.pwd
+libdata/pw_dict.pwi
+libdata/pw_dict.hwm
+@dirrm include/cracklib