Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+7 -7
View File
@@ -1,18 +1,18 @@
# $NetBSD: Makefile,v 1.19 2014/10/09 14:05:51 wiz Exp $
#
# $NetBSD: Makefile,v 1.21 2016/09/18 11:17:41 wiz Exp $
DISTNAME= fastjar-0.93
PKGREVISION= 3
DISTNAME= fastjar-0.98
PKGREVISION= 1
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fastjar/}
EXTRACT_SUFX= .tgz
MASTER_SITES= http://download.savannah.gnu.org/releases/fastjar/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://fastjar.sourceforge.net/
HOMEPAGE= https://savannah.nongnu.org/projects/fastjar
COMMENT= C language version of the 'jar' archiver normally used by Java
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= YES
INFO_FILES= YES
INSTALLATION_DIRS= ${PKGMANDIR}/man1
post-install:
+2 -1
View File
@@ -1,5 +1,6 @@
@comment $NetBSD: PLIST,v 1.2 2002/12/14 04:34:39 jschauma Exp $
@comment $NetBSD: PLIST,v 1.4 2016/09/18 11:17:41 wiz Exp $
bin/fastjar
bin/grepjar
info/fastjar.info
man/man1/fastjar.1
man/man1/grepjar.1
+7 -8
View File
@@ -1,9 +1,8 @@
$NetBSD: distinfo,v 1.12 2006/05/17 06:12:27 rillig Exp $
$NetBSD: distinfo,v 1.14 2016/03/05 15:08:30 bsiegert Exp $
SHA1 (fastjar-0.93.tgz) = 74acc8e8a920ea6da18a180cd0a691c5d7c4699f
RMD160 (fastjar-0.93.tgz) = 1627f2316cc7bca6a477011d1b812b140900d987
Size (fastjar-0.93.tgz) = 62419 bytes
SHA1 (patch-aa) = 12cc5397a89c18d239164caa3955121ca6d01de0
SHA1 (patch-ab) = c13f46e1a3e60a3bbe656af609a5c9fb047a4ca3
SHA1 (patch-ac) = ce8eefb978a93d0043f8b98fbf4049f022ce663c
SHA1 (patch-ad) = 7fe6657b18090e0d12c8a3b528370314e6ddca97
SHA1 (fastjar-0.98.tar.gz) = c240a9e2115aad486329360d9166514261149af2
RMD160 (fastjar-0.98.tar.gz) = 593ed2dfcc02599a3540028a0f0b5c77d6be7071
Size (fastjar-0.98.tar.gz) = 717984 bytes
SHA1 (patch-aa) = cdb20f779b32f423a49bcf3a7c64901aef5228c8
SHA1 (patch-ab) = da635a3a6ce6c3f3406371e02a376e1d728f8b7e
SHA1 (patch-ad) = bdb8f3c1affbcf3cc373f7b5d731b8122eaf4018
+3 -1
View File
@@ -1,4 +1,6 @@
$NetBSD: patch-aa,v 1.2 2002/12/14 04:34:39 jschauma Exp $
$NetBSD: patch-aa,v 1.3 2016/03/05 15:08:30 bsiegert Exp $
Add man page
--- /dev/null Fri Dec 13 23:11:57 2002
+++ fastjar.1 Fri Dec 13 23:22:03 2002
+3 -1
View File
@@ -1,4 +1,6 @@
$NetBSD: patch-ab,v 1.1 2002/12/14 04:34:40 jschauma Exp $
$NetBSD: patch-ab,v 1.2 2016/03/05 15:08:30 bsiegert Exp $
Add man page
--- /dev/null Fri Dec 13 23:11:57 2002
+++ grepjar.1 Fri Dec 13 23:21:48 2002
-13
View File
@@ -1,13 +0,0 @@
$NetBSD: patch-ac,v 1.1 2005/05/17 14:54:57 minskim Exp $
--- jargrep.c.orig 2001-01-11 02:38:15.000000000 -0600
+++ jargrep.c
@@ -572,7 +572,7 @@ static void jargrep(regex_t *exp, regex_
floop = FALSE;
break;
case 2:
- /* fall through continue */
+ ; /* fall through continue */
}
}
} while(floop);
+25 -26
View File
@@ -1,13 +1,16 @@
$NetBSD: patch-ad,v 1.6 2006/05/17 06:12:27 rillig Exp $
$NetBSD: patch-ad,v 1.7 2016/03/05 15:08:30 bsiegert Exp $
--- jartool.c.orig 2001-01-11 09:38:15.000000000 +0100
+++ jartool.c
@@ -171,4 +171,2 @@
-extern int errno;
-
void usage(char*);
@@ -1143,2 +1141,27 @@ int create_central_header(int fd){
date: 2006-03-14 23:02:01 +0900; author: joerg; state: Exp; lines: +51 -3;
Normalise path names as relative under cwd as if they would have been
extracted under chroot. Don't attempt to deal with existing symlinks
to directories. This prevents directory traversal and therefore the
creation of arbitrary files. Bump revision.
--- jartool.c.orig 2009-09-07 07:10:47.000000000 +0900
+++ jartool.c 2014-12-15 18:35:25.000000000 +0900
@@ -1512,6 +1512,31 @@ int create_central_header(int fd){
return 0;
}
+static void canonical_filename(char *filename)
+{
@@ -34,24 +37,20 @@ $NetBSD: patch-ad,v 1.6 2006/05/17 06:12:27 rillig Exp $
+ }
+}
+
int extract_jar(int fd, char **files, int file_num){
@@ -1251,2 +1274,9 @@ int extract_jar(int fd, char **files, in
int extract_jar(int fd, const char **files, int file_num){
size_t rdamt;
int out_a, in_a;
@@ -1628,6 +1653,13 @@ int extract_jar(int fd, const char **fil
pb_read(&pbf, filename, fnlen);
filename[fnlen] = '\0';
+ canonical_filename(filename);
+ canonical_filename(filename);
+
+ if (*filename == '\0') {
+ fprintf(stderr, "Error extracting JAR archive, empty file name!\n");
+ exit(1);
+ }
+ if (*filename == '\0') {
+ fprintf(stderr, "Error extracting JAR archive, empty file name!\n");
+ exit(1);
+ }
+
#ifdef DEBUG
@@ -1563,2 +1593,9 @@ int list_jar(int fd, char **files, int f
filename[fnlen] = '\0';
+
+ canonical_filename(filename);
+ if (*filename == '\0') {
+ fprintf(stderr, "Error extracting JAR archive, empty file name!\n");
+ exit(1);
+ }
+
printf("filename is %s\n", filename);
#endif