Index: sysutils/socat/Portfile
===================================================================
--- sysutils/socat/Portfile	(revision 35986)
+++ sysutils/socat/Portfile	(working copy)
@@ -1,10 +1,11 @@
 # $Id$
 
 PortSystem 1.0
+
 name            socat
-version         1.4.2.0
+version         1.6.0.1
 categories      sysutils net
-maintainers     md@hudora.de
+maintainers     hudora.de:md
 platforms       darwin
 description     netcat on steroids
 long_description        \
@@ -12,16 +13,18 @@
  channels. Each of these data channels may be a file, pipe, device (serial line \
  etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an \
  SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the \
- GNU line editor (readline), a program, or a combination of two of these. 
-master_sites    http://www.dest-unreach.org/socat/download/
-checksums       md5 17694e6390f3488c5318a2cb18ec9919
-worksrcdir      socat-1.4
-depends_lib		port:readline
-configure.cflags-append	"-L${prefix}/lib -lreadline"
-post-configure {
-    reinplace "s|\$(INSTALL) -m 644 socat.1 \$(DESTDIR)\$(MANDEST)/man1/|\$(INSTALL) -d -m 755 \$(DESTDIR)\$(MANDEST)/man1/\\\n\\\t\$(INSTALL) -m 644 socat.1 \$(DESTDIR)\$(MANDEST)/man1/|g" \
-              ${worksrcpath}/Makefile
+ GNU line editor (readline), a program, or a combination of two of these.
+homepage        http://www.dest-unreach.org/socat/
+
+master_sites    ${homepage}download/
+use_bzip2       yes
+checksums       md5 6a0dd33cde2a18eb382433aca8f76ce2 \
+                sha1 9bb850817d41b7628fc0a79c113581c413166530
+
+depends_lib		port:readline port:openssl
+configure.ldflags-append    -lresolv
+configure.args  --mandir=${prefix}/share/man
+
+platform darwin 9 {
+    configure.args-append --disable-termios
 }
-post-destroot {
-	file rename ${destroot}${prefix}/man/man1/socat.1 ${destroot}${prefix}/share/man/man1/socat.1
-}

