aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/zip/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/zip/Makefile')
-rw-r--r--archivers/zip/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/archivers/zip/Makefile b/archivers/zip/Makefile
index e504aca204c6..5443e7f55974 100644
--- a/archivers/zip/Makefile
+++ b/archivers/zip/Makefile
@@ -1,4 +1,5 @@
-# New ports collection makefile for: zip (without encryption)
+# New ports collection makefile for: zip
+# ftp://ftp.info-zip.org/pub/infozip/Info-ZIP.html
# Date created: 22 Dec 1994
# Whom: ache
#
@@ -8,18 +9,26 @@
PORTNAME= zip
PORTVERSION= 2.3
CATEGORIES= archivers
-MASTER_SITES= ftp://ftp.cdrom.com/pub/infozip/src/
-DISTNAME= zip23
+MASTER_SITES= ftp://ftp.freesoftware.com/pub/infozip/src/
+ZCRYPT_SRC= zcrypt29-exportable.zip
+DISTFILES= zip23${EXTRACT_SUFX} ${ZCRYPT_SRC}
MAINTAINER= ache@FreeBSD.org
-Y2K= http://www.cdrom.com/pub/infozip/FAQ.html#Y2K
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
-WRKSRC= ${WRKDIR}/zip-2.3
+Y2K= ftp://ftp.info-zip.org/pub/infozip/FAQ.html#Y2K
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+EXTRACT_ONLY= zip23${EXTRACT_SUFX}
MAKEFILE= unix/Makefile
+MAKE_FLAGS= LOCAL_ZIP="-DUSE_CRYPT" -f
ALL_TARGET= generic
MAN1= zip.1
+post-extract:
+ unzip -q -aa -o ${_DISTDIR}${ZCRYPT_SRC} -d ${WRKSRC} -x WHERE
+
do-install:
.for file in zip zipcloak zipnote zipsplit
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin