Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jun 2024 13:47:39 GMT
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9ae571a898c6 - main - security/pkcrack: Update to 1.2.3
Message-ID:  <202406021347.452DlddL041606@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9ae571a898c6897a31d56e362f11652a5b8a9915

commit 9ae571a898c6897a31d56e362f11652a5b8a9915
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2024-06-02 13:47:11 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2024-06-02 13:47:11 +0000

    security/pkcrack: Update to 1.2.3
---
 security/pkcrack/Makefile                 | 13 +++++++++++--
 security/pkcrack/distinfo                 |  5 +++--
 security/pkcrack/files/patch-Makefile     | 10 ----------
 security/pkcrack/files/patch-exfunc.c     | 11 -----------
 security/pkcrack/files/patch-extract.c    | 26 --------------------------
 security/pkcrack/files/patch-findkey.c    | 18 ------------------
 security/pkcrack/files/patch-main.c       | 26 --------------------------
 security/pkcrack/files/patch-makekey.c    | 26 --------------------------
 security/pkcrack/files/patch-mktmptbl.c   | 10 ----------
 security/pkcrack/files/patch-readhead.c   | 11 -----------
 security/pkcrack/files/patch-zdmain.c     | 22 ----------------------
 security/pkcrack/files/patch-zipdecrypt.c | 10 ----------
 12 files changed, 14 insertions(+), 174 deletions(-)

diff --git a/security/pkcrack/Makefile b/security/pkcrack/Makefile
index f6f8d3bf7569..667addae8771 100644
--- a/security/pkcrack/Makefile
+++ b/security/pkcrack/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pkcrack
-PORTVERSION=	1.2.2
+PORTVERSION=	1.2.3
 CATEGORIES=	security
 MASTER_SITES=	http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/ \
 		LOCAL/ehaupt
@@ -8,10 +8,19 @@ MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Utility for breaking pkzip encryption
 WWW=		https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html
 
+LICENSE=	pkcrack
+LICENSE_NAME=	pkcrack non-commercial license
+LICENSE_FILE=	${WRKDIR}/${DISTNAME}/doc/README
+LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
+
 USES=		gmake
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/src
-PLIST_FILES=	bin/pkextract bin/pkfindkey bin/pkmakekey bin/pkcrack bin/zipdecrypt
+PLIST_FILES=	bin/pkcrack \
+		bin/pkextract \
+		bin/pkfindkey \
+		bin/pkmakekey \
+		bin/zipdecrypt
 PORTDOCS=	README pkzip.ps.gz
 
 OPTIONS_DEFINE=	DOCS
diff --git a/security/pkcrack/distinfo b/security/pkcrack/distinfo
index 03766f886d50..019bbaf8b2a1 100644
--- a/security/pkcrack/distinfo
+++ b/security/pkcrack/distinfo
@@ -1,2 +1,3 @@
-SHA256 (pkcrack-1.2.2.tar.gz) = 4d2dc193ffa4342ac2ed3a6311fdf770ae6a0771226b3ef453dca8d03e43895a
-SIZE (pkcrack-1.2.2.tar.gz) = 174208
+TIMESTAMP = 1717329183
+SHA256 (pkcrack-1.2.3.tar.gz) = 8f49fa387962a37a14c9abd549016721a634251105bf4b837cc72f0bad413d38
+SIZE (pkcrack-1.2.3.tar.gz) = 173543
diff --git a/security/pkcrack/files/patch-Makefile b/security/pkcrack/files/patch-Makefile
deleted file mode 100644
index b44e88fdfe71..000000000000
--- a/security/pkcrack/files/patch-Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./Makefile.orig	2003-01-04 11:30:30.000000000 +0100
-+++ ./Makefile	2011-06-21 16:03:11.000000000 +0200
-@@ -1,5 +1,5 @@
--CC=gcc
--CFLAGS=-O6 -Wall
-+CC?=gcc
-+CFLAGS?=-O6 -Wall
- #CFLAGS=-g
- 
- RM=rm -f
diff --git a/security/pkcrack/files/patch-exfunc.c b/security/pkcrack/files/patch-exfunc.c
deleted file mode 100644
index f8b465f5ba07..000000000000
--- a/security/pkcrack/files/patch-exfunc.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./exfunc.c.orig	2003-01-05 15:58:05.000000000 +0100
-+++ ./exfunc.c	2011-06-21 16:03:11.000000000 +0200
-@@ -41,7 +41,7 @@
- 
- #include <stdio.h>
- #include <string.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include <ctype.h>
- #include "headers.h"
- 
diff --git a/security/pkcrack/files/patch-extract.c b/security/pkcrack/files/patch-extract.c
deleted file mode 100644
index fb0c4484a925..000000000000
--- a/security/pkcrack/files/patch-extract.c
+++ /dev/null
@@ -1,26 +0,0 @@
---- ./extract.c.orig	2003-01-01 16:49:51.000000000 +0100
-+++ ./extract.c	2011-06-21 16:03:11.000000000 +0200
-@@ -68,7 +68,6 @@
- #endif
- 
- #include <fcntl.h>
--#include <malloc.h>
- #include <string.h>
- 
- #include "headers.h"
-@@ -90,7 +89,7 @@
-     fprintf( stderr, " -s <size>\textract only specified number of bytes\n" );
- }
- 
--void main(int argc, char *argv[])
-+int main(int argc, char *argv[])
- {
- char	*ret, *outname;
- int	outfile, err=0, i, caseflg=0, size=0;
-@@ -150,5 +149,5 @@
-     }
-     free( ret );
-   }
--  exit(err);
-+  return(err);
- }
diff --git a/security/pkcrack/files/patch-findkey.c b/security/pkcrack/files/patch-findkey.c
deleted file mode 100644
index ab852f1cbdd5..000000000000
--- a/security/pkcrack/files/patch-findkey.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- ./findkey.c.orig	2003-01-01 16:49:51.000000000 +0100
-+++ ./findkey.c	2011-06-21 16:03:11.000000000 +0200
-@@ -56,7 +56,7 @@
-     exit( 1 );
- }
- 
--void main( int argc, char **argv )
-+int main( int argc, char **argv )
- {
- uword	key0, key1, key2;
- int	pwdLen=0;
-@@ -81,4 +81,6 @@
- 	findLongPwd( key0, key1, key2, pwdLen, initBytes );
-     else
- 	findPwd( key0, key1, key2 );
-+
-+    return(0);
- }
diff --git a/security/pkcrack/files/patch-main.c b/security/pkcrack/files/patch-main.c
deleted file mode 100644
index 1ca4d2850981..000000000000
--- a/security/pkcrack/files/patch-main.c
+++ /dev/null
@@ -1,26 +0,0 @@
---- ./main.c.orig	2003-01-01 16:49:51.000000000 +0100
-+++ ./main.c	2011-06-21 16:03:11.000000000 +0200
-@@ -80,7 +80,6 @@
- 
- #include <sys/stat.h>
- #include <fcntl.h>
--#include <malloc.h>
- #include <stdlib.h>
- #include <string.h>
- 
-@@ -128,7 +127,7 @@
-     fprintf( stderr, " -n\tno progress indicator\n" );
- }
- 
--void main( int argc, char **argv )
-+int main( int argc, char **argv )
- {
- int		crypt, plain, cryptlength, plainlength;
- struct stat	filestat;
-@@ -334,5 +333,5 @@
-     now = time(NULL);
-     fprintf( stderr, "Finished on %s", ctime(&now) );
- 
--    exit(0);
-+    return(0);
- }
diff --git a/security/pkcrack/files/patch-makekey.c b/security/pkcrack/files/patch-makekey.c
deleted file mode 100644
index 4d20f7f9bd04..000000000000
--- a/security/pkcrack/files/patch-makekey.c
+++ /dev/null
@@ -1,26 +0,0 @@
---- ./makekey.c.orig	2003-01-01 16:49:51.000000000 +0100
-+++ ./makekey.c	2011-06-21 16:03:52.000000000 +0200
-@@ -12,6 +12,7 @@
- 
- #include <stdio.h>
- #include <string.h>
-+#include <stdlib.h>
- #include "pkcrack.h"
- #include "keystuff.h"
- #include "crc.h"
-@@ -24,7 +25,7 @@
-     exit( 1 );
- }
- 
--void main( int argc, char **argv )
-+int main( int argc, char **argv )
- {
- char *	pwd;  
- int	pwdLen, i;
-@@ -41,5 +42,6 @@
- 	updateKeys( pwd[i] );
- 
-     printf( "%08x %08x %08x\n", key0, key1, key2 );
-+    return(0);
- }
- 
diff --git a/security/pkcrack/files/patch-mktmptbl.c b/security/pkcrack/files/patch-mktmptbl.c
deleted file mode 100644
index e6c237cbca62..000000000000
--- a/security/pkcrack/files/patch-mktmptbl.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./mktmptbl.c.orig	2011-06-21 16:04:16.000000000 +0200
-+++ ./mktmptbl.c	2011-06-21 16:04:31.000000000 +0200
-@@ -43,6 +43,7 @@
- static char RCSID[]="$Id: mktmptbl.c,v 1.9 2002/11/02 15:12:06 lucifer Exp $";
- 
- #include <stdio.h>
-+#include <string.h>
- #include "mktmptbl.h"
- 
- ushort	tempTable[256][64];
diff --git a/security/pkcrack/files/patch-readhead.c b/security/pkcrack/files/patch-readhead.c
deleted file mode 100644
index 6b122df9269f..000000000000
--- a/security/pkcrack/files/patch-readhead.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./readhead.c.orig	2003-01-05 15:58:05.000000000 +0100
-+++ ./readhead.c	2011-06-21 16:03:11.000000000 +0200
-@@ -55,7 +55,7 @@
- /* Functions to read signature and headers                                    */
- /******************************************************************************/
- #include <stdio.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include <string.h>
- 
- #ifndef _WIN32
diff --git a/security/pkcrack/files/patch-zdmain.c b/security/pkcrack/files/patch-zdmain.c
deleted file mode 100644
index 0e5ad6ab3e66..000000000000
--- a/security/pkcrack/files/patch-zdmain.c
+++ /dev/null
@@ -1,22 +0,0 @@
---- ./zdmain.c.orig	2003-01-01 16:49:51.000000000 +0100
-+++ ./zdmain.c	2011-06-21 16:03:11.000000000 +0200
-@@ -35,7 +35,7 @@
- 
- extern void zipdecrypt( char*infile, char*outfile, int k0, int k1, int k2 );
- 
--void main( int argc, char **argv )
-+int main( int argc, char **argv )
- {
- char *c;
- 
-@@ -53,8 +53,9 @@
-         break;
-     default:
-         fprintf( stderr, "Usage: %s {<password> | <key0> <key1> <key2>} <cryptedzipfile> <plainzipfile>\n", argv[0] );
--        return;
-+        return(0);
-     }
- 
-     zipdecrypt( argv[argc-2], argv[argc-1], key0, key1, key2 );
-+    return(0);
- }
diff --git a/security/pkcrack/files/patch-zipdecrypt.c b/security/pkcrack/files/patch-zipdecrypt.c
deleted file mode 100644
index a6511c97e74b..000000000000
--- a/security/pkcrack/files/patch-zipdecrypt.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./zipdecrypt.c.orig	2003-01-05 15:58:05.000000000 +0100
-+++ ./zipdecrypt.c	2011-06-21 16:03:11.000000000 +0200
-@@ -84,7 +84,6 @@
- 
- #include <sys/stat.h>
- #include <fcntl.h>
--#include <malloc.h>
- #include <string.h>
- #include "pkctypes.h"
- #include "crc.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406021347.452DlddL041606>