Changeset 4498


Ignore:
Timestamp:
Jan 7, 2004, 12:04:41 AM (17 years ago)
Author:
yeled
Message:

Update to latest and add ui_msg
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/openssh/Portfile

    r3977 r4498  
    1 # $Id: Portfile,v 1.3 2003/11/17 21:20:02 jkh Exp $
     1# $Id: Portfile,v 1.4 2004/01/07 00:04:41 yeled Exp $
    22
    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        \
    10         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.  \
    20         \
    21         *** Setup instructions: \
    22         *** Make sure SSHSERVER=-NO- is set in /etc/hostconfig or untick "Remote \
    23         *** Sharing" option in System Preferences > Sharing. \
    24         *** OPTIONAL: Copy your /etc/ssh_host* files to ${prefix}/etc/ssh/ \
    25         *** Run: `sudo killall sshd && sudo ${prefix}/etc/rc.d/openssh.sh`
    26 
    27 homepage        http://www.openssh.com/
    28 platforms       darwin
    29 checksums       ${distname}${extract.suffix} md5 d4c2c88b883f097fe88e327cbb4b2e2a \
    30               3.6.1p1.patch md5 170540992d086081cc1dc55217e05c64
    31 master_sites    ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
    32 patch_sites     http://rubberduck.com/~yeled/BSD
    33 patchfiles      3.6.1p1.patch
    34 depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    35 depends_lib     lib:libssl.0.9.7:openssl lib:libz.1.1.4:zlib
     3PortSystem      1.0
     4name            openssh
     5version         3.7.1p2
     6categories      net
     7maintainers     yeled@opendarwin.org
     8description     OpenSSH secure login server
     9long_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.
     19homepage        http://www.openssh.com/
     20platforms       darwin
     21checksums       md5 61cf5b059938718308836d00f6764a94
     22master_sites    ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
     23depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     24depends_lib     lib:libssl.0.9.7:openssl lib:libz.1.1.4:zlib
    3625
    3726# ln -s /usr/include/pam to work/include/security because 'security' was
    3827# renamed to 'pam' in OS X.
    3928pre-configure { system "mkdir ${workpath}/include"
    40         system "ln -s /usr/include/pam ${workpath}/include/security" }
     29 system "ln -s /usr/include/pam ${workpath}/include/security" }
    4130
    4231# Specified -fno-builtin because GCC 3.3 has log() as a builtin
    4332# (from math.h) while OpenSSH has its own log() function
    4433# -- from fink.
    45 configure.env   CPPFLAGS="-fno-builtin -I${workpath}/include"
    46 configure.args  --with-ssl-dir=${prefix} --sysconfdir=${prefix}/etc/ssh \
    47                 --with-privsep-path=${prefix}/var/empty --with-md5-passwords \
    48                 --with-pid-dir=${prefix}/var/run --with-tcp-wrappers \
    49                 --with-pam --disable-suid-ssh --with-random=/dev/urandom
     34configure.env CPPFLAGS="-fno-builtin -I${workpath}/include"
     35configure.args --with-ssl-dir=${prefix} --sysconfdir=${prefix}/etc/ssh \
     36  --with-privsep-path=${prefix}/var/empty --with-md5-passwords \
     37  --with-pid-dir=${prefix}/var/run --with-tcp-wrappers \
     38  --with-pam --disable-suid-ssh --with-random=/dev/urandom
    5039
    51 destroot.target install-nokeys
     40destroot.target install-nokeys
    5241
    5342# We touch a few files here to stop the destroot bug of removing empty dirs
    5443post-destroot {
    55         system "install -o root -m 755 -d ${destroot}${prefix}/etc/rc.d \
    56                 ${destroot}${prefix}/var/run ${destroot}${prefix}/var/run"
    57         system "touch ${destroot}${prefix}/var/run/.turd \
    58                 ${destroot}${prefix}/var/empty/.turd "
    59         system "install -o root -m 755 -c \
    60                 ${portpath}/files/openssh.sh ${destroot}${prefix}/etc/rc.d"
    61         reinplace "s|__PREFIX|${prefix}|g" \
    62                 ${destroot}${prefix}/etc/rc.d/openssh.sh
    63         }
     44 system "install -o root -m 755 -d ${destroot}${prefix}/etc/rc.d \
     45  ${destroot}${prefix}/var/run ${destroot}${prefix}/var/run"
     46 system "touch ${destroot}${prefix}/var/run/.turd \
     47  ${destroot}${prefix}/var/empty/.turd "
     48 system "install -o root -m 755 -c \
     49  ${portpath}/files/openssh.sh ${destroot}${prefix}/etc/rc.d"
     50 reinplace "s|__PREFIX|${prefix}|g" \
     51  ${destroot}${prefix}/etc/rc.d/openssh.sh
     52 }
    6453
    6554# For X11 Forwarding
    66 variant         apple-x11       { # set for X11 forwarding
    67                 configure.args-append --with-xauth=/usr/X11R6/bin/xauth
    68         }
     55variant  apple-x11 { # set for X11 forwarding
     56  configure.args-append --with-xauth=/usr/X11R6/bin/xauth
     57 }
     58
     59ui_msg "===============================================================================\n"
     60ui_msg "Setup instructions:\n\t
     61    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"
     62ui_msg "===============================================================================\n"
     63
Note: See TracChangeset for help on using the changeset viewer.