ports/textproc/crunch/files/patch-Makefile
Dmitry Marakasov f0b39e9e4f 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
2017-02-22 10:54:59 +00:00

24 lines
787 B
Text

--- Makefile.orig 2014-05-03 17:04:11 UTC
+++ Makefile
@@ -38,15 +38,18 @@ DOCDIR = $(PREFIX)/share/doc/$(PACKA
MANDIR = $(PREFIX)/share/man/man1
INSTALL = sudo $(shell which install)
-CC = $(shell which gcc)
+CC ?= $(shell which gcc)
LIBFLAGS = -lm
THREADFLAGS = -pthread
OPTFLAGS = -g -o0
LINTFLAGS = -Wall -pedantic
CFLAGS_STD = $(THREADFLAGS) $(LINTFLAGS) -std=c99
VCFLAGS = $(CFLAGS_STD) $(OPTFLAGS)
-LFS = $(shell getconf POSIX_V6_ILP32_OFFBIG_CFLAGS)
-
+ifeq ($(UNAME_LOOKUP),!FreeBSD)
+ LFS = $(shell getconf POSIX_V6_ILP32_OFFBIG_CFLAGS)
+else
+ INSTALL_OPTIONS = -g wheel -o root
+endif
ifeq ($(UNAME_LOOKUP),Darwin)
#Darwin = OS X, and os x does not use root root as stated in email
INSTALL_OPTIONS = -g wheel -o root