source: trunk/dports/net/openssh/Portfile @ 4539

Last change on this file since 4539 was 4539, checked in by toby, 17 years ago

Wrapping ui_msg calls in post-install.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1# $Id: Portfile,v 1.5 2004/01/08 12:15:16 toby Exp $
2
3PortSystem      1.0
4name            openssh
5version         3.7.1p2
6revision        1
7categories      net
8maintainers     yeled@opendarwin.org
9description     OpenSSH secure login server
10long_description  OpenSSH is a FREE version of the SSH protocol suite of \
11          network connectivity tools that increasing numbers of people on the \
12          Internet are coming to rely on. Many users of telnet, rlogin, ftp, \
13          and other such programs might not realize that their password is \
14          transmitted across the Internet unencrypted, but it is. OpenSSH \
15          encrypts all traffic (including passwords) to effectively eliminate \
16          eavesdropping, connection hijacking, and other network-level \
17          attacks. Additionally, OpenSSH provides a myriad of secure \
18          tunneling capabilities, as well as a variety of authentication \
19          methods.
20homepage        http://www.openssh.com/
21platforms       darwin
22checksums       md5 61cf5b059938718308836d00f6764a94
23master_sites    ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
24depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
25depends_lib     lib:libssl.0.9.7:openssl lib:libz.1.1.4:zlib
26
27# ln -s /usr/include/pam to work/include/security because 'security' was
28# renamed to 'pam' in OS X.
29pre-configure { system "mkdir ${workpath}/include"
30 system "ln -s /usr/include/pam ${workpath}/include/security" }
31
32# Specified -fno-builtin because GCC 3.3 has log() as a builtin
33# (from math.h) while OpenSSH has its own log() function
34# -- from fink.
35configure.env CPPFLAGS="-fno-builtin -I${workpath}/include"
36configure.args --with-ssl-dir=${prefix} --sysconfdir=${prefix}/etc/ssh \
37  --with-privsep-path=${prefix}/var/empty --with-md5-passwords \
38  --with-pid-dir=${prefix}/var/run --with-tcp-wrappers \
39  --with-pam --disable-suid-ssh --with-random=/dev/urandom
40
41destroot.target install-nokeys
42
43# We touch a few files here to stop the destroot bug of removing empty dirs
44post-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
56variant  apple-x11 { # set for X11 forwarding
57  configure.args-append --with-xauth=/usr/X11R6/bin/xauth
58 }
59
60post-install {
61ui_msg "===============================================================================\n"
62ui_msg "Setup instructions:\n\t
63    Make sure SSHSERVER=-NO- is set in /etc/hostconfig or untick\n\t'Remote Sharing' option in System Preferences > Sharing.\n\tOPTIONAL: Copy your /etc/ssh_host* files to ${prefix}/etc/ssh/\n\tRun: `sudo killall sshd && sudo ${prefix}/etc/rc.d/openssh.sh`\n"
64ui_msg "===============================================================================\n"
65}
Note: See TracBrowser for help on using the repository browser.