1 | # $Id: Portfile 146517 2016-03-10 17:49:28Z raimue@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name tcpcrypt-devel |
---|
6 | set real_name tcpcrypt |
---|
7 | version 0.0.1 |
---|
8 | revision 1 |
---|
9 | categories security www |
---|
10 | platforms darwin freebsd |
---|
11 | maintainers nomaintainer |
---|
12 | homepage http://tcpcrypt.org/ |
---|
13 | description encrypt (almost) all of your network traffic |
---|
14 | long_description \ |
---|
15 | Tcpcrypt is a protocol that attempts to encrypt (almost) all of your \ |
---|
16 | network traffic. Unlike other security mechanisms, Tcpcrypt works out of \ |
---|
17 | the box: it requires no configuration, no changes to applications, and \ |
---|
18 | your network connections will continue to work even if the remote end \ |
---|
19 | does not support Tcpcrypt, in which case connections will gracefully fall \ |
---|
20 | back to standard clear-text TCP. Install Tcpcrypt and you'll feel no \ |
---|
21 | difference in your every day user experience, but yet your traffic will \ |
---|
22 | be more secure and you'll have made life much harder for hackers. |
---|
23 | |
---|
24 | fetch.type git |
---|
25 | git.url git://github.com/sorbo/${real_name}.git |
---|
26 | git.branch 07d75864a38d853316d4 |
---|
27 | use_configure no |
---|
28 | build.dir ${worksrcpath}/user |
---|
29 | depends_lib path:lib/libssl.dylib:openssl |
---|
30 | |
---|
31 | destroot { |
---|
32 | set docdir ${destroot}${prefix}/share/doc/${real_name} |
---|
33 | set datadir ${destroot}${prefix}/share/${real_name} |
---|
34 | set libdir ${destroot}${prefix}/lib |
---|
35 | set sbindir ${destroot}${prefix}/sbin |
---|
36 | xinstall -d ${docdir} ${datadir} |
---|
37 | |
---|
38 | eval xinstall [glob ${build.dir}/lib/*.dylib] ${libdir} |
---|
39 | xinstall -W ${build.dir} ${real_name}/tcpcryptd ${sbindir} |
---|
40 | xinstall -W ${build.dir} launch_tcpcryptd.sh ${datadir} |
---|
41 | eval xinstall -m 640 [glob ${worksrcpath}/README*] ${docdir} |
---|
42 | |
---|
43 | # fix launch script |
---|
44 | reinplace -E "s|^TCPCRYPTD=.+$|TCPCRYPTD=${prefix}/sbin/tcpcryptd|" ${datadir}/launch_tcpcryptd.sh |
---|
45 | } |
---|
46 | |
---|
47 | startupitem.create yes |
---|
48 | startupitem.name ${real_name} |
---|
49 | startupitem.start "${prefix}/share/${real_name}/launch_tcpcryptd.sh" |
---|