blob: 4d7163f3d8e3dee2f87931b786f744514dde3b5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
# $NetBSD: Makefile,v 1.17 2004/03/23 23:02:30 dmcmahill Exp $
# FreeBSD Id: ports/security/crack/Makefile,v 1.11 1999/09/04 19:24:50 obrien Exp
DISTNAME= crack5.0
PKGNAME= crack-5.0
CATEGORIES= security
MASTER_SITES= ftp://ftp.task.gda.pl/mirror/ftp.cert.org/pub/tools/crack/ \
ftp://ftp.cs.umn.edu/mirror00/ftp.win.tue.nl/pub/security/ \
ftp://ftp.nask.pl/pub/CERT_NASK/CERTCC_tools/crack/
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://www.crypticide.org/users/alecm/
COMMENT= The "Sensible" Unix Password Cracker
WRKSRC= ${WRKDIR}/c50a
pre-configure:
@${ECHO} "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile
pre-build:
@(if [ ! -f /usr/share/dict/words ];then \
${ECHO_MSG} "You may want to install the dict distribution into /usr/share/dict" ; \
${ECHO_MSG} "to increase the size of the cracking dictionary." ; \
fi)
@${SED} 's|@@PREFIX@@|${PREFIX}|g;s|@@SH@@|${SH}|g' < ${WRKSRC}/Crack > ${WRKSRC}/Crack.new
@${RM} -f ${WRKSRC}/Crack && ${MV} ${WRKSRC}/Crack.new ${WRKSRC}/Crack
@${CHMOD} a+rx ${WRKSRC}/Crack
do-build:
cd ${WRKSRC} ; ./Crack -makeonly
do-install:
@${INSTALL_DATA_DIR} ${PREFIX}/libexec/crack
@${CHMOD} go-rwx ${PREFIX}/libexec/crack
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/conf
@${CHMOD} go-rwx ${PREFIX}/share/crack
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/crack
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/extra
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/run
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/scripts
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict/1
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict/2
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/dict/3
@${INSTALL_DATA_DIR} ${PREFIX}/share/crack/run
@${INSTALL_DATA_DIR} ${PREFIX}/crack/run/dict
${INSTALL_SCRIPT} ${WRKSRC}/Crack ${PREFIX}/sbin
@${SED} 's|@@PREFIX@@|${PREFIX}|g' < ${WRKSRC}/Reporter > \
${PREFIX}/sbin/Reporter
@${CHMOD} 700 ${PREFIX}/sbin/Crack ${PREFIX}/sbin/Reporter
${INSTALL_DATA} ${WRKSRC}/LICENCE ${PREFIX}/share/doc/crack/
${INSTALL_DATA} ${WRKSRC}/manual.html ${PREFIX}/share/doc/crack/
${INSTALL_DATA} ${WRKSRC}/manual.txt ${PREFIX}/share/doc/crack/
@for i in \
conf/dictrun.conf \
conf/rules.weird \
conf/rules.suffix \
conf/rules.prefix \
conf/rules.perm1u \
conf/globrule.conf \
conf/dictgrps.conf \
conf/rules.basic \
conf/network.conf \
conf/rules.fast \
conf/rules.perm2 \
conf/rules.perm3 \
conf/rules.perm4 \
conf/rules.perm5 \
conf/rules.perm6 \
conf/rules.perm7 \
conf/rules.perm1 \
conf/rules.perm2u \
conf/rules.prefixu \
conf/rules.suffixu \
conf/rules.perm3u \
conf/rules.perm4u \
conf/rules.perm5u \
conf/rules.perm6u \
conf/rules.perm7u \
dict/1/assurnames.dwg \
dict/1/asteroids.dwg \
dict/1/biology.dwg \
dict/1/cartoon.dwg \
dict/1/chars.dwg \
dict/1/common-passwords.txt.dwg \
dict/1/crl.words.dwg \
dict/1/dosref.dwg \
dict/1/family-names.dwg \
dict/1/famous.dwg \
dict/1/female-names.dwg \
dict/1/given-names.dwg \
dict/1/jargon.dwg \
dict/1/junk.dwg \
dict/1/lcarrol.dwg \
dict/1/list.dwg \
dict/1/movies.dwg \
dict/1/numbers.dwg \
dict/1/myths-legends.dwg \
dict/1/names.french.dwg \
dict/1/other-names.dwg \
dict/1/oz.dwg \
dict/1/places.dwg \
dict/1/python.dwg \
dict/1/roget.words.dwg \
dict/1/sf.dwg \
dict/1/sports.dwg \
dict/1/trek.dwg \
dict/1/unix.dict.dwg \
dict/1/yiddish.dwg \
dict/1/abbr.dwg \
dict/1/phrases.dwg \
dict/1/fast-names.dwg \
dict/1/male-names.dwg \
dict/1/paradise.lost.dwg \
dict/1/bad_pws.dat.dwg \
dict/2/congress.dwg \
dict/2/dico.dwg \
dict/2/domains.dwg \
dict/2/etc-hosts.dwg \
dict/2/ethnologue.dwg \
dict/2/kjbible.dwg \
dict/2/shakespeare.dwg \
dict/2/world.factbook.dwg \
dict/2/zipcodes.dwg \
dict/2/antworth.dwg \
dict/2/colleges.dwg \
dict/2/unabr.dict.dwg \
dict/2/cis.dwg \
dict/3/danish.words.dwg \
dict/3/germanl.dwg \
dict/3/koran.dwg \
dict/3/words.dutch.dwg \
dict/3/words.german.dwg \
dict/3/words.japanese.dwg \
dict/3/words.norwegian.dwg \
dict/3/words.spanish.dwg \
dict/3/words.swedish.dwg \
dict/3/words.italian.dwg \
dict/3/surnames.finnish.dwg \
dict/3/chinese.dwg \
extra/Makefile \
extra/brute.c ;\
do \
${ECHO} ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/crack/$$i ;\
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/crack/$$i ;\
done
@for i in \
credits,v5.0.txt \
faq.txt \
fips181.txt \
dicts,v5.0.txt \
appendix,v4.1.txt \
usenet-article.txt \
threading.txt \
gui.txt \
humour.txt; \
do \
${ECHO} ${INSTALL_DATA} ${WRKSRC}/doc/$$i \
${PREFIX}/share/doc/crack/$$i ;\
${INSTALL_DATA} ${WRKSRC}/doc/$$i \
${PREFIX}/share/doc/crack/$$i ;\
done
@for i in \
scripts/smartcat \
scripts/trad2spf \
scripts/dictcomp \
scripts/pauser \
scripts/mkgecosd \
scripts/shadmrg.sv \
scripts/smartcomp \
scripts/crack-sort \
scripts/dodictgrp \
scripts/nastygram \
scripts/fbfilt \
scripts/fbmerge \
scripts/mkdictgrps \
scripts/plaster \
scripts/binstamp \
scripts/dicttidy \
scripts/mkcracker \
scripts/netcrack \
scripts/crack-rsh \
scripts/crack-rcp \
scripts/bsd2spf \
scripts/tradmail2spf \
scripts/bsdmail2spf \
extra/Crack6 \
extra/Crack7 \
extra/b64encode \
extra/b64decode \
extra/Dictstats.pl; \
do \
${ECHO} ${INSTALL_SCRIPT} ${WRKSRC}/$$i \
${PREFIX}/share/crack/$$i ;\
${INSTALL_SCRIPT} ${WRKSRC}/$$i ${PREFIX}/share/crack/$$i ;\
done
@for i in \
dawg \
xdawg \
cracker \
dictfilt \
kickdict; \
do \
${ECHO} ${INSTALL_PROGRAM} ${WRKSRC}/run/bin/$$i \
${PREFIX}/libexec/crack/$$i ;\
${INSTALL_PROGRAM} ${WRKSRC}/run/bin/$$i \
${PREFIX}/libexec/crack/$$i ;\
done
post-install:
${PREFIX}/sbin/Crack -makedict
.include "../../mk/bsd.pkg.mk"
|