1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name openssh |
---|
5 | version 3.6.1p1 |
---|
6 | categories net |
---|
7 | maintainers charlie@rubberduck.com |
---|
8 | description OpenSSH secure login server |
---|
9 | long_description OpenSSH is a FREE version of the SSH protocol suite of \ |
---|
10 | network connectivity tools that increasing numbers of people on the \ |
---|
11 | Internet are coming to rely on. Many users of telnet, rlogin, ftp, \ |
---|
12 | and other such programs might not realize that their password is \ |
---|
13 | transmitted across the Internet unencrypted, but it is. OpenSSH \ |
---|
14 | encrypts all traffic (including passwords) to effectively eliminate \ |
---|
15 | eavesdropping, connection hijacking, and other network-level \ |
---|
16 | attacks. Additionally, OpenSSH provides a myriad of secure \ |
---|
17 | tunneling capabilities, as well as a variety of authentication \ |
---|
18 | methods. \ |
---|
19 | \ |
---|
20 | *** Setup instructions: \ |
---|
21 | *** Make sure SSHSERVER=-NO- is set in /etc/hostconfig or untick "Remote \ |
---|
22 | *** Sharing" option in System Preferences > Sharing. \ |
---|
23 | *** OPTIONAL: Copy your /etc/ssh_host* files to ${prefix}/etc/ssh/ \ |
---|
24 | *** Run: `sudo killall sshd && sudo ${prefix}/etc/rc.d/openssh.sh` |
---|
25 | |
---|
26 | homepage http://www.openssh.com/ |
---|
27 | platforms darwin |
---|
28 | checksums md5 d4c2c88b883f097fe88e327cbb4b2e2a |
---|
29 | master_sites ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable |
---|
30 | depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup |
---|
31 | depends_lib lib:libssl.0.9.7:openssl lib:libz.1.1.4:zlib |
---|
32 | |
---|
33 | # Specified -fno-builtin because GCC 3.3 has log() as a builtin |
---|
34 | # (from math.h) while OpenSSH has its own log() function |
---|
35 | # -- from fink. |
---|
36 | configure.env CPPFLAGS="-fno-builtin" |
---|
37 | configure.args --with-ssl-dir=${prefix} --sysconfdir=${prefix}/etc/ssh \ |
---|
38 | --with-privsep-path=${prefix}/var/empty --with-md5-passwords \ |
---|
39 | --with-pid-dir=${prefix}/var/run |
---|
40 | |
---|
41 | destroot.target install-nokeys |
---|
42 | |
---|
43 | # We touch a few files here to stop the destroot bug of removing empty dirs |
---|
44 | post-destroot { |
---|
45 | system "install -o root -m 755 -d ${destroot}${prefix}/etc/rc.d \ |
---|
46 | ${destroot}${prefix}/var/run ${destroot}${prefix}/var/run" |
---|
47 | system "touch ${destroot}${prefix}/var/run/.turd \ |
---|
48 | ${destroot}${prefix}/var/empty/.turd " |
---|
49 | system "install -o root -m 755 -c \ |
---|
50 | ${portpath}/files/openssh.sh ${destroot}${prefix}/etc/rc.d" |
---|
51 | reinplace "s|__PREFIX|${prefix}|g" \ |
---|
52 | ${destroot}${prefix}/etc/rc.d/openssh.sh |
---|
53 | } |
---|
54 | |
---|
55 | # For X11 Forwarding |
---|
56 | variant apple-x11 { # set for X11 forwarding |
---|
57 | configure.args-append --with-xauth=/usr/X11R6/bin/xauth |
---|
58 | } |
---|
59 | |
---|