Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

7
security/john/DESCR Normal file
View File

@@ -0,0 +1,7 @@
John the Ripper is a password cracker, currently available for UNIX, DOS,
WinNT/Win95. Its primary purpose is to detect weak UNIX passwords. It has
been tested with Linux x86/Alpha/SPARC, FreeBSD x86, OpenBSD x86, Solaris
2.x SPARC and x86, Digital UNIX, AIX, HP-UX, and IRIX.
The DOS and Win32 ports are done with DJGPP and Cygnus Developer's Kit,
respectively.

97
security/john/Makefile Normal file
View File

@@ -0,0 +1,97 @@
# $NetBSD: Makefile,v 1.21 2012/10/23 18:16:31 asau Exp $
#
DISTNAME= john-1.7.6
PKGREVISION= 1
CATEGORIES= security textproc
MASTER_SITES= http://www.openwall.com/john/g/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.openwall.com/john/
COMMENT= Unix Password Cracker
LICENSE= gnu-gpl-v2
NO_CONFIGURE= yes
BUILD_DIRS= src
TEST_TARGET= check
.include "../../mk/compiler.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc"
. if !empty(CC_VERSION:MSun)
. if defined(SPARC_TARGET_ARCH) && ${SPARC_TARGET_ARCH} == "sparcv9"
BUILD_TARGET= solaris-sparc-v9-cc
. else
BUILD_TARGET= solaris-sparc-v8-cc
. endif
. else
BUILD_TARGET= solaris-sparc-gcc
. endif
.elif ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "i386"
BUILD_TARGET= solaris-x86-any
.elif ${OPSYS} == "NetBSD"
. if ${MACHINE_ARCH} == "i386"
BUILD_TARGET= openbsd-x86-any
. elif ${MACHINE_ARCH} == "x86_64"
BUILD_TARGET= openbsd-x86-64
. elif ${MACHINE_ARCH} == "sparc64"
BUILD_TARGET= netbsd-sparc64
. elif ${MACHINE_ARCH} == "sparc"
BUILD_TARGET= openbsd-sparc
. elif ${MACHINE_ARCH} == "alpha"
BUILD_TARGET= openbsd-alpha
. elif ${MACHINE_ARCH} == "powerpc"
BUILD_TARGET= openbsd-ppc32
. elif ${MACHINE_ARCH} == "powerpc64"
BUILD_TARGET= openbsd-ppc64
. elif ${MACHINE_ARCH} == "vax"
BUILD_TARGET= netbsd-vax
. else
BUILD_TARGET= generic
. endif
.elif ${OPSYS} == "OpenBSD"
. if ${MACHINE_ARCH} == "i386"
BUILD_TARGET= openbsd-x86-any
. elif ${MACHINE_ARCH} == "x86_64"
BUILD_TARGET= openbsd-x86-64
. elif ${MACHINE_ARCH} == "sparc64"
BUILD_TARGET= openbsd-sparc64
. elif ${MACHINE_ARCH} == "sparc"
BUILD_TARGET= openbsd-sparc
. elif ${MACHINE_ARCH} == "alpha"
BUILD_TARGET= openbsd-alpha
. elif ${MACHINE_ARCH} == "powerpc"
BUILD_TARGET= openbsd-ppc32
. elif ${MACHINE_ARCH} == "powerpc64"
BUILD_TARGET= openbsd-ppc64
. else
BUILD_TARGET= generic
. endif
.else
BUILD_TARGET= generic
.endif
INSTALLATION_DIRS= bin share/john
SUBST_CLASSES+= john
SUBST_STAGE.john= pre-build
SUBST_FILES.john= src/params.h
SUBST_SED.john= -e "s+@PREFIX@+${PREFIX}+g"
do-install:
# programs and scripts
${INSTALL_PROGRAM} ${WRKSRC}/run/john ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/run/mailer ${DESTDIR}${PREFIX}/bin
# configuration file
${INSTALL_DATA} ${WRKSRC}/run/john.conf ${DESTDIR}${PREFIX}/share/john
# symbolic links
.for i in unafs unique unshadow
${LN} -sf john ${DESTDIR}${PREFIX}/bin/${i}
.endfor
# data files
.for i in all.chr alnum.chr alpha.chr digits.chr lanman.chr password.lst
${INSTALL_DATA} ${WRKSRC}/run/${i} ${DESTDIR}${PREFIX}/share/john
.endfor
.include "../../mk/bsd.pkg.mk"

13
security/john/PLIST Normal file
View File

@@ -0,0 +1,13 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:13:30 joerg Exp $
bin/john
bin/mailer
bin/unafs
bin/unique
bin/unshadow
share/john/all.chr
share/john/alnum.chr
share/john/alpha.chr
share/john/digits.chr
share/john/john.conf
share/john/lanman.chr
share/john/password.lst

8
security/john/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.13 2011/06/20 09:17:50 drochner Exp $
SHA1 (john-1.7.6.tar.gz) = da0b6298e6e045606d48880df045096e8bc87fcb
RMD160 (john-1.7.6.tar.gz) = 294fa9a381b45df6fda6e537bc920e74c1d966b0
Size (john-1.7.6.tar.gz) = 832790 bytes
SHA1 (patch-aa) = c7f027cec0ee565312fd4417ded8fe43005b01d1
SHA1 (patch-ab) = 4f8c9e1bba14f64b651c6d08337f004a3e278e44
SHA1 (patch-ac) = 8c123939d2b4939e172ae32cd90ba2950d907dd8

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-aa,v 1.8 2010/12/13 10:32:35 wiz Exp $
--- src/Makefile.orig 2010-06-13 21:12:37.000000000 +0000
+++ src/Makefile
@@ -19,11 +19,11 @@ OMPFLAGS =
#OMPFLAGS = -fopenmp
# Sun Studio with OpenMP (set the OMP_NUM_THREADS env var at runtime)
#OMPFLAGS = -xopenmp
-CFLAGS = -c -Wall -O2 -fomit-frame-pointer $(OMPFLAGS)
+CFLAGS = -c $(OMPFLAGS)
ASFLAGS = -c $(OMPFLAGS)
-LDFLAGS = -s $(OMPFLAGS)
-OPT_NORMAL = -funroll-loops
-OPT_INLINE = -finline-functions
+LDFLAGS += -s $(OMPFLAGS)
+OPT_NORMAL =
+OPT_INLINE =
JOHN_OBJS = \
DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o \

View File

@@ -0,0 +1,43 @@
$NetBSD: patch-ab,v 1.2 2010/12/13 10:32:35 wiz Exp $
--- src/params.h.orig 2010-06-14 02:38:55.000000000 +0000
+++ src/params.h
@@ -51,15 +51,15 @@
* notes above.
*/
#ifndef JOHN_SYSTEMWIDE
-#define JOHN_SYSTEMWIDE 0
+#define JOHN_SYSTEMWIDE 1
#endif
#if JOHN_SYSTEMWIDE
#ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */
-#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john"
+#define JOHN_SYSTEMWIDE_EXEC "@PREFIX@/bin"
#endif
#ifndef JOHN_SYSTEMWIDE_HOME
-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john"
+#define JOHN_SYSTEMWIDE_HOME "@PREFIX@/share/john"
#endif
#define JOHN_PRIVATE_HOME "~/.john"
#endif
@@ -103,8 +103,8 @@
/*
* File names.
*/
-#define CFG_FULL_NAME "$JOHN/john.conf"
-#define CFG_ALT_NAME "$JOHN/john.ini"
+#define CFG_FULL_NAME "@PREFIX@/share/john/john.conf"
+#define CFG_ALT_NAME "@PREFIX@/share/john/john.ini"
#if JOHN_SYSTEMWIDE
#define CFG_PRIVATE_FULL_NAME JOHN_PRIVATE_HOME "/john.conf"
#define CFG_PRIVATE_ALT_NAME JOHN_PRIVATE_HOME "/john.ini"
@@ -118,7 +118,7 @@
#endif
#define LOG_SUFFIX ".log"
#define RECOVERY_SUFFIX ".rec"
-#define WORDLIST_NAME "$JOHN/password.lst"
+#define WORDLIST_NAME "@PREFIX@/share/john/password.lst"
/*
* Configuration file section names.

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ac,v 1.1 2011/06/20 09:17:50 drochner Exp $
http://www.openwall.com/lists/john-dev/2011/06/19/3
--- src/BF_std.c.orig 2010-05-25 06:30:33.000000000 +0000
+++ src/BF_std.c
@@ -587,7 +587,7 @@ void BF_std_set_key(char *key, int index
tmp = 0;
for (j = 0; j < 4; j++) {
tmp <<= 8;
- tmp |= *ptr;
+ tmp |= (unsigned char)*ptr;
if (!*ptr) ptr = key; else ptr++;
}