source: trunk/dports/net/lsh/Portfile

Last change on this file was 146851, checked in by khindenburg@…, 16 months ago

lsh: add modeline + whitespace

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