[23344] trunk/dports/net/openssh/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 29 06:02:49 PDT 2007


Revision: 23344
          http://trac.macosforge.org/projects/macports/changeset/23344
Author:   pipping at macports.org
Date:     2007-03-29 06:02:48 -0700 (Thu, 29 Mar 2007)

Log Message:
-----------
 * apply patch with permission of maintainer

this commit combines a patch by vinc17@ (#11554) with a patch by
ecronin at gizmolabs.org (#11152), modified to fit version 4.6p1, as well as
further, minor modifications. the most important changes are:
 * bump to version 4.6p1
 * add variant hpn (high performance network)

Modified Paths:
--------------
    trunk/dports/net/openssh/Portfile

Modified: trunk/dports/net/openssh/Portfile
===================================================================
--- trunk/dports/net/openssh/Portfile	2007-03-29 11:39:49 UTC (rev 23343)
+++ trunk/dports/net/openssh/Portfile	2007-03-29 13:02:48 UTC (rev 23344)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name            openssh
-version         4.5p1
+version         4.6p1
 categories      net 
 maintainers     yeled at macports.org
 description     OpenSSH secure login server
@@ -19,9 +19,9 @@
           methods. 
 homepage        http://www.openssh.com/
 platforms       darwin
-checksums       md5 6468c339886f78e8a149b88f695839dd \
-	sha1 2eefcbbeb9e4fa16fa4500dec107d1a09d3d02d7 \
-	rmd160 3f70b6f4228e84c7b9b8b3bee7fd3875f3e3bad3
+checksums       ${distfiles} md5 6a7fa99f44d9e1b5b04d15256e1405bb \
+	${distfiles} sha1 b2aefeb1861b4688b1777436035239ec32a47da8 \
+	${distfiles} rmd160 2959ac56c9175275bf82847ec64b2b169aedcb82
 master_sites    openbsd:OpenSSH/portable \
         ftp://carroll.cac.psu.edu/pub/OpenBSD/OpenSSH/portable/
 depends_lib     port:openssl port:zlib
@@ -52,12 +52,26 @@
   configure.args-append --with-kerberos5=/usr
 }
 
+# For high-performance patch
+variant hpn {
+  patch_sites-append    http://www.psc.edu/networking/projects/hpn-ssh/
+  patchfiles-append     ${distname}-hpn12v17.diff.gz
+  checksums-append      ${distname}-hpn12v17.diff.gz \
+                        sha1 8a401c329e0777398c4371c0746a63e1d9690469
+  patch.pre_args        -p1
+  post-patch {
+    reinplace "s|TMP_SSH_VERSION SSH_PORTABLE|TMP_SSH_VERSION SSH_PORTABLE SSH_HPN|" ${worksrcpath}/version.h
+  }
+}
+
 platform darwin {
-  # ln -s /usr/include/pam to work/include/security because 'security' was 
-  # renamed to 'pam' in OS X.
+  # create link to /usr/include/pam because 'security' was renamed to 'pam'
+  # in OS X.
   pre-configure {
-    file mkdir ${workpath}/include
-    system "ln -s /usr/include/pam ${workpath}/include/security"
+    cd ${workpath}
+    xinstall -d include
+    file delete include/security
+    file link -symbolic include/security /usr/include/pam
   }
 }
 
@@ -85,5 +99,5 @@
         fi"
 startupitem.stop \
     "if \[ -r ${prefix}/var/run/sshd.pid \]; then
-        kill `cat ${prefix}/var/run/sshd.pid` && rm ${prefix}/var/run/sshd.pid
+        kill `cat ${prefix}/var/run/sshd.pid`
         fi"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070329/f5f487a6/attachment.html


More information about the macports-changes mailing list