1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name jsunpack-n |
---|
7 | version r76 |
---|
8 | categories security |
---|
9 | platforms darwin |
---|
10 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
11 | license GPL-2 |
---|
12 | |
---|
13 | description A generic JavaScript unpacker |
---|
14 | long_description ${description} |
---|
15 | |
---|
16 | supported_archs noarch |
---|
17 | |
---|
18 | homepage https://code.google.com/p/jsunpack-n/ |
---|
19 | |
---|
20 | fetch.type svn |
---|
21 | svn.url http://jsunpack-n.googlecode.com/svn/trunk/ |
---|
22 | svn.revision ${version} |
---|
23 | worksrcdir trunk |
---|
24 | |
---|
25 | ## pynids https://jon.oberheide.org/pynids/, py-yara |
---|
26 | depends_lib port:spidermonkey185 port:yara |
---|
27 | |
---|
28 | use_configure no |
---|
29 | build {} |
---|
30 | |
---|
31 | destroot { |
---|
32 | xinstall -m 755 ${worksrcpath}/jsunpackn.py ${destroot}${prefix}/bin/ |
---|
33 | xinstall -d ${destroot}${prefix}/share/examples/${name} |
---|
34 | foreach f { htmlparse.config options.config debug.py detection.py exampleImport.py gzip.py html.py lzw.py pdf.py post.js pre.js rules } { |
---|
35 | xinstall -m 0644 ${worksrcpath}/${f} ${destroot}${prefix}/share/examples/${name}/ |
---|
36 | } |
---|
37 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
38 | foreach f { INSTALL INSTALL.spidermonkey INSTALL.spidermonkey.shellcode } { |
---|
39 | xinstall -m 0644 ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name}/ |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | if {![variant_isset python33] && ![variant_isset python26] && ![variant_isset python25] && ![variant_isset python24]} { |
---|
44 | default_variants +python27 |
---|
45 | } |
---|
46 | |
---|
47 | variant python34 description { Use Python 3.4 } conflicts python33 python27 python26 python25 python24 { |
---|
48 | configure.python ${prefix}/bin/python3.4 |
---|
49 | depends_lib-append port:py34-beautifulsoup port:py34-crypto |
---|
50 | |
---|
51 | post-destroot { |
---|
52 | foreach f { debug.py detection.py exampleImport.py gzip.py html.py lzw.py pdf.py } { |
---|
53 | reinplace "s|/usr/bin/python|${prefix}/bin/python3.4|" ${destroot}${prefix}/share/examples/${name}/${f} |
---|
54 | } |
---|
55 | } |
---|
56 | } |
---|
57 | |
---|
58 | variant python33 description { Use Python 3.3 } conflicts python34 python27 python26 python25 python24 { |
---|
59 | configure.python ${prefix}/bin/python3.3 |
---|
60 | depends_lib-append port:py33-beautifulsoup port:py33-crypto |
---|
61 | |
---|
62 | post-destroot { |
---|
63 | foreach f { debug.py detection.py exampleImport.py gzip.py html.py lzw.py pdf.py } { |
---|
64 | reinplace "s|/usr/bin/python|${prefix}/bin/python3.3|" ${destroot}${prefix}/share/examples/${name}/${f} |
---|
65 | } |
---|
66 | } |
---|
67 | } |
---|
68 | |
---|
69 | variant python27 description { Use Python 2.7 } conflicts python34 python33 python26 python25 python24 { |
---|
70 | configure.python ${prefix}/bin/python2.7 |
---|
71 | depends_lib-append port:py27-beautifulsoup port:py27-crypto |
---|
72 | |
---|
73 | post-destroot { |
---|
74 | foreach f { debug.py detection.py exampleImport.py gzip.py html.py lzw.py pdf.py } { |
---|
75 | reinplace "s|/usr/bin/python|${prefix}/bin/python2.7|" ${destroot}${prefix}/share/examples/${name}/${f} |
---|
76 | } |
---|
77 | } |
---|
78 | } |
---|
79 | |
---|
80 | variant python26 description { Use Python 2.6 } conflicts python34 python33 python27 python25 python24 { |
---|
81 | configure.python ${prefix}/bin/python2.6 |
---|
82 | depends_lib-append port:py26-beautifulsoup port:py26-crypto |
---|
83 | |
---|
84 | post-destroot { |
---|
85 | foreach f { debug.py detection.py exampleImport.py gzip.py html.py lzw.py pdf.py } { |
---|
86 | reinplace "s|/usr/bin/python|${prefix}/bin/python2.6|" ${destroot}${prefix}/share/examples/${name}/${f} |
---|
87 | } |
---|
88 | } |
---|
89 | } |
---|
90 | |
---|
91 | variant python25 description { Use Python 2.5 } conflicts python34 python33 python26 python27 python24 { |
---|
92 | configure.python ${prefix}/bin/python2.5 |
---|
93 | depends_lib-append port:py25-beautifulsoup port:py25-crypto |
---|
94 | |
---|
95 | post-destroot { |
---|
96 | foreach f { debug.py detection.py exampleImport.py gzip.py html.py lzw.py pdf.py } { |
---|
97 | reinplace "s|/usr/bin/python|${prefix}/bin/python2.5|" ${destroot}${prefix}/share/examples/${name}/${f} |
---|
98 | } |
---|
99 | } |
---|
100 | } |
---|
101 | |
---|
102 | variant python24 description { Use Python 2.4 } conflicts python34 python26 python25 python27 { |
---|
103 | configure.python ${prefix}/bin/python2.4 |
---|
104 | depends_lib-append port:py24-beautifulsoup port:py24-crypto |
---|
105 | |
---|
106 | post-destroot { |
---|
107 | foreach f { debug.py detection.py exampleImport.py gzip.py html.py lzw.py pdf.py } { |
---|
108 | reinplace "s|/usr/bin/python|${prefix}/bin/python2.4|" ${destroot}${prefix}/share/examples/${name}/${f} |
---|
109 | } |
---|
110 | } |
---|
111 | } |
---|
112 | |
---|
113 | livecheck.type regex |
---|
114 | livecheck.url https://code.google.com/p/jsunpack-n/source/list |
---|
115 | livecheck.regex "(r\\d+)" |
---|
116 | |
---|