svn commit: r409827 - in head/security: . pdfcrack
Mikhail Teterin
mi at FreeBSD.org
Mon Feb 29 21:22:50 UTC 2016
Author: mi
Date: Mon Feb 29 21:22:48 2016
New Revision: 409827
URL: https://svnweb.freebsd.org/changeset/ports/409827
Log:
Add a tool for brute-force cracking PDF-passwords (both user and
owner ones).
Added:
head/security/pdfcrack/
head/security/pdfcrack/Makefile
- copied, changed from r409305, head/net/minidlna/Makefile
head/security/pdfcrack/distinfo (contents, props changed)
head/security/pdfcrack/pkg-descr (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Mon Feb 29 21:03:14 2016 (r409826)
+++ head/security/Makefile Mon Feb 29 21:22:48 2016 (r409827)
@@ -708,6 +708,7 @@
SUBDIR += pbc
SUBDIR += pbnj
SUBDIR += pcsc-tools
+ SUBDIR += pdfcrack
SUBDIR += pear-Auth
SUBDIR += pear-Auth_HTTP
SUBDIR += pear-Auth_OpenID
Copied and modified: head/security/pdfcrack/Makefile (from r409305, head/net/minidlna/Makefile)
==============================================================================
--- head/net/minidlna/Makefile Sun Feb 21 17:12:58 2016 (r409305, copy source)
+++ head/security/pdfcrack/Makefile Mon Feb 29 21:22:48 2016 (r409827)
@@ -1,54 +1,24 @@
# Created by: Mikhail Teterin <mi at aldan.algebra.com>
# $FreeBSD$
-PORTNAME= minidlna
-PORTVERSION= 1.1.5
-PORTREVISION= 1
-PORTEPOCH= 1
-CATEGORIES= net multimedia www
-MASTER_SITES= SF
-
-MAINTAINER= wg at FreeBSD.org
-COMMENT= Media-server compatible with "Digital Life Network Alliance"
-
-LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
- libexif.so:${PORTSDIR}/graphics/libexif \
- libid3tag.so:${PORTSDIR}/audio/libid3tag \
- libogg.so:${PORTSDIR}/audio/libogg \
- libvorbis.so:${PORTSDIR}/audio/libvorbis \
- libFLAC.so:${PORTSDIR}/audio/flac \
- libavformat.so:${PORTSDIR}/multimedia/ffmpeg
-
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-db-path=/var/db/minidlna \
- --with-os-url="http://www.FreeBSD.org"
-USES= autoreconf gettext-tools iconv jpeg localbase
-
-PKGMESSAGE= ${WRKSRC}/pkg-message
-SUB_FILES+= pkg-message
-USE_RC_SUBR= minidlna
-SUB_LIST+= USER=${USERS}
-
-USERS= dlna
-GROUPS= dlna
-
-OPTIONS_DEFINE= DEBUG KQUEUE NLS
-OPTIONS_DEFAULT=KQUEUE
-OPTIONS_SUB= yes
-
-DEBUG_CFLAGS= -DDEBUG
-KQUEUE_DESC= Experimental patch for automatic rescan using kqueue(2)
-NLS_USES= gettext-runtime
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MKQUEUE}
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-kqueue
-.endif
-
-post-install:
- ${INSTALL_MAN} ${WRKSRC}/*.5 ${STAGEDIR}${MANPREFIX}/man/man5/
- ${INSTALL_MAN} ${WRKSRC}/*.8 ${STAGEDIR}${MANPREFIX}/man/man8/
- ${INSTALL_DATA} ${WRKSRC}/minidlna.conf ${STAGEDIR}${PREFIX}/etc/minidlna.conf.sample
+PORTNAME= pdfcrack
+PORTVERSION= 0.15
+CATEGORIES= security print
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= mi at aldan.algebra.com
+COMMENT= Cracking tool for password-protected PDF-files
+
+LICENSE= GPLv2+
+
+PLIST_FILES= bin/pdfcrack bin/pdfreader
+ALL_TARGET= pdfcrack pdfreader
+
+post-patch:
+ ${REINPLACE_CMD} 's,-O.* -g,,' ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${PLIST_FILES:Mbin/*:S,bin/,${WRKSRC}/,g} \
+ ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
Added: head/security/pdfcrack/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/pdfcrack/distinfo Mon Feb 29 21:22:48 2016 (r409827)
@@ -0,0 +1,2 @@
+SHA256 (pdfcrack-0.15.tar.gz) = 791043693f9fc261fa326dbcb5e4de3801d6ae552dbea39293f9b2674c250d3e
+SIZE (pdfcrack-0.15.tar.gz) = 34269
Added: head/security/pdfcrack/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/pdfcrack/pkg-descr Mon Feb 29 21:22:48 2016 (r409827)
@@ -0,0 +1,7 @@
+pdfcrack is a simple tool for recovering passwords (both owner and
+user ones) from pdf-documents. It should be able to handle all
+pdfs that uses the standard security handler but the pdf-parsing
+routines are a bit of a quick hack so you might stumble across some
+pdfs where the parser needs to be fixed to handle.
+
+WWW: http://sourceforge.net/projects/pdfcrack/
More information about the svn-ports-all
mailing list