diff --git a/dports/security/cracklib/Portfile b/dports/security/cracklib/Portfile
index f0cd1a5..330b52d 100644
a
|
b
|
name cracklib |
8 | 8 | version 2.8.12 |
9 | 9 | categories security |
10 | 10 | maintainers theonelab.com:june |
| 11 | revision 1 |
11 | 12 | description A ProActive Password Sanity Library |
12 | 13 | long_description CrackLib is a library containing a C function (well, \ |
13 | 14 | lots of functions really, but you only need to use \ |
… |
… |
long_description CrackLib is a library containing a C function (well, \ |
19 | 20 | homepage http://sourceforge.net/projects/cracklib/ |
20 | 21 | platforms darwin |
21 | 22 | depends_lib port:gettext |
22 | | default_variants +largedict |
| 23 | depends_build port:cracklib-words |
23 | 24 | |
24 | 25 | master_sites sourceforge |
25 | 26 | checksums md5 580346fa1012f9d9769192f49d3801fa \ |
… |
… |
extract.suffix .tar.gz |
30 | 31 | |
31 | 32 | configure.args-append --without-python |
32 | 33 | |
33 | | variant largedict { |
34 | | depends_build port:cracklib-words |
35 | | destroot.target-append dict-local |
| 34 | variant nolargedict { |
| 35 | depends_build-delete port:cracklib-words |
36 | 36 | } |
37 | 37 | |
38 | 38 | post-build { |
39 | | if {[variant_isset largedict]} { |
40 | | file copy /opt/local/share/cracklib/cracklib-words ${worksrcpath}/dicts |
| 39 | if {![variant_isset nolargedict]} { |
| 40 | file copy ${prefix}/share/dict/cracklib-words ${worksrcpath}/dicts |
41 | 41 | } |
42 | 42 | |
43 | 43 | file attributes ${worksrcpath}/util/cracklib-format -permissions 0755 |
44 | 44 | } |
45 | 45 | |
| 46 | destroot.target-append dict-local |
| 47 | |
| 48 | post-destroot { |
| 49 | xinstall -d -m 0755 ${destroot}${prefix}/share/dict |
| 50 | file rename ${destroot}${prefix}/share/cracklib/cracklib-small ${destroot}${prefix}/share/dict |
| 51 | } |
| 52 | |
46 | 53 | test.run yes |
47 | 54 | test.cmd make |
48 | 55 | test.target check |