Bug 217036 - [new port] textproc/crunch: charset-based wordlist generator
Summary: [new port] textproc/crunch: charset-based wordlist generator
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 15:56 UTC by Vidar Karlsen
Modified: 2017-02-22 10:55 UTC (History)
0 users

See Also:


Attachments
shar file for security/crunch (3.00 KB, text/plain)
2017-02-12 15:56 UTC, Vidar Karlsen
no flags Details
New (and better) shar (3.29 KB, text/plain)
2017-02-21 17:30 UTC, Vidar Karlsen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vidar Karlsen 2017-02-12 15:56:36 UTC
Created attachment 179905 [details]
shar file for security/crunch

Crunch is a wordlist generator where you can specify a standard character
set or a character set you specify. crunch can generate all possible
combinations and permutations.

Features

- crunch generates wordlists in both combination and permutation ways
- it can breakup output by number of lines or file size
- now has resume support
- pattern now supports number and symbols
- pattern now supports upper and lower case characters separately
- adds a status report when generating multiple files
- new -l option for literal support of @,%^
- new -d option to limit duplicate characters see man file for details
- now has unicode support

WWW: https://crunch-wordlist.sourceforge.io/
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2017-02-21 11:37:38 UTC
- Isn't textproc better category for this? At least it should be an additional category IMO.
- To depend on gcc there's USE_GCC, but you don't need it at all. Instead, you should patch upstream Makefile to respect CC:

-CC         = $(shell which gcc)
+CC         ?= $(shell which gcc)

- You don't need .include <bsd.port.options.mk>
- May also consider installing charset.lst into ${DATADIR} since upstream does that
Comment 2 Vidar Karlsen 2017-02-21 17:30:09 UTC
Created attachment 180197 [details]
New (and better) shar

Thanks for the input, Dmitry.
I agree, and I learned a couple new things along the way, and I hereby present a new and better shar file:
- category changed to textproc
- removed gcc dependency (I thought at first it wouldn't work with clang, but I'm happy to see it does)
- charset.lst added as it should be
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2017-02-22 10:55:19 UTC
New port added, thank you!
Comment 4 commit-hook freebsd_committer freebsd_triage 2017-02-22 10:55:40 UTC
A commit references this bug:

Author: amdmi3
Date: Wed Feb 22 10:55:00 UTC 2017
New revision: 434576
URL: https://svnweb.freebsd.org/changeset/ports/434576

Log:
  Crunch is a wordlist generator where you can specify a standard character
  set or a character set you specify. crunch can generate all possible
  combinations and permutations.

  Features:

  - crunch generates wordlists in both combination and permutation ways
  - it can breakup output by number of lines or file size
  - now has resume support
  - pattern now supports number and symbols
  - pattern now supports upper and lower case characters separately
  - adds a status report when generating multiple files
  - new -l option for literal support of @,%^
  - new -d option to limit duplicate characters see man file for details
  - now has unicode support

  WWW: https://crunch-wordlist.sourceforge.io/

  PR:		217036
  Submitted by:	vidar@karlsen.tech

Changes:
  head/textproc/Makefile
  head/textproc/crunch/
  head/textproc/crunch/Makefile
  head/textproc/crunch/distinfo
  head/textproc/crunch/files/
  head/textproc/crunch/files/patch-Makefile
  head/textproc/crunch/pkg-descr