1 | # $Id: Portfile 111161 2013-09-16 03:01:08Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name lsh |
---|
6 | version 1.5.4 |
---|
7 | revision 1 |
---|
8 | description A GNU implementation of the Secure Shell protocols |
---|
9 | long_description \ |
---|
10 | lsh is a free implementation (in the GNU sense) of the ssh \ |
---|
11 | version 2 protocol, currently being standardised by the IETF SECSH \ |
---|
12 | working group |
---|
13 | |
---|
14 | categories net |
---|
15 | license GPL-2+ |
---|
16 | maintainers nomaintainer |
---|
17 | platforms darwin |
---|
18 | homepage http://www.lysator.liu.se/~nisse/lsh/ |
---|
19 | |
---|
20 | master_sites http://www.lysator.liu.se/~nisse/archive/ \ |
---|
21 | ftp://ftp.lysator.liu.se/pub/security/lsh/ |
---|
22 | checksums md5 5cb5bccf17e7819a6db3e447854a310c |
---|
23 | patchfiles \ |
---|
24 | patch-src-argp-Makefile.in.diff patch-src-argp-argp-pvh.c.diff \ |
---|
25 | patch-src-argp-argp-ba.c.diff patch-src-nettle-configure.diff \ |
---|
26 | patch-src-argp-argp-pv.c.diff patch-src-spki-configure.diff \ |
---|
27 | patch-src-lsh_pam_checkpw.c.diff |
---|
28 | |
---|
29 | depends_lib lib:liboop:liboop lib:libgmp:gmp \ |
---|
30 | lib:libreadline:readline |
---|
31 | |
---|
32 | set defaultcflags "-I${prefix}/include" |
---|
33 | set defaultconfigureargs "--disable-datafellows-workarounds --with-include-path=${prefix}/include --with-lib-path=${prefix}/lib --with-tcpwrappers --with-pam --disable-kerberos" |
---|
34 | |
---|
35 | |
---|
36 | platform darwin { |
---|
37 | post-extract { |
---|
38 | system "mkdir -p ${workpath}/paminclude" |
---|
39 | system "ln -sf /usr/include/pam ${workpath}/paminclude/security" |
---|
40 | } |
---|
41 | |
---|
42 | patchfiles-append patch-src-unix_user.c.diff |
---|
43 | |
---|
44 | post-patch { |
---|
45 | # fix time stamps |
---|
46 | system "touch \"${worksrcpath}/src/unix_user.c.x\"" |
---|
47 | } |
---|
48 | |
---|
49 | set platformcflags "-I${workpath}/paminclude" |
---|
50 | configure.args ${defaultconfigureargs} CPPFLAGS="${defaultcflags} ${platformcflags}" LDFLAGS="-L${prefix}/lib" |
---|
51 | |
---|
52 | post-install { |
---|
53 | ui_msg "Additionally, for PAM, you need to copy /etc/pam.d/sshd to " |
---|
54 | ui_msg "/etc/pam.d/lshd, or use another config with pam_securityserver.so." |
---|
55 | } |
---|
56 | } |
---|
57 | |
---|
58 | configure.cflags-append "-std=gnu89" |
---|
59 | configure.args ${defaultconfigureargs} CPPFLAGS="${defaultcflags}" LDFLAGS="-L${prefix}/lib" |
---|