[33017] trunk/dports/net

sfiera at macports.org sfiera at macports.org
Wed Jan 16 15:39:07 PST 2008


Revision: 33017
          http://trac.macosforge.org/projects/macports/changeset/33017
Author:   sfiera at macports.org
Date:     2008-01-16 15:39:05 -0800 (Wed, 16 Jan 2008)

Log Message:
-----------
New port socket(1)

Added Paths:
-----------
    trunk/dports/net/socket/
    trunk/dports/net/socket/Portfile
    trunk/dports/net/socket/files/
    trunk/dports/net/socket/files/patch-Makefile.diff

Added: trunk/dports/net/socket/Portfile
===================================================================
--- trunk/dports/net/socket/Portfile	                        (rev 0)
+++ trunk/dports/net/socket/Portfile	2008-01-16 23:39:05 UTC (rev 33017)
@@ -0,0 +1,35 @@
+# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name                socket
+version             1.4
+categories          devel
+platforms           darwin
+maintainers         sfiera
+description         an interface to TCP sockets at shell level
+long_description \
+    Socket(1) implements an interface to TCP sockets at shell level. Client and server sockets can be used from shell scripts or interactively. Socket can also run a program with stdin, stdout, and stderr connected to the socket connection. A number of sample shell scripts are included.
+
+homepage            http://www.jnickelsen.de/socket/
+master_sites        ${homepage}
+checksums           md5     cab42be83b4c0aa42819cc95734c0c58 \
+                    sha1    52562b2600f7b214e8200db0ef43a395b7a6ccd7 \
+                    rmd160  f1fc8dd7574bc161b74f55a1e9c4893f43a451cc
+
+use_configure       no
+patchfiles          patch-Makefile.diff
+
+post-patch {
+    reinplace "s, at prefix@,${destroot}${prefix}," Makefile
+    if { [variant_isset universal] } {
+        reinplace "s, at cflags@,${configure.universal_cflags}," Makefile
+        reinplace "s, at ldflags@,${configure.universal_ldflags}," Makefile
+    } else {
+        reinplace "s, at cflags@,," Makefile
+        reinplace "s, at ldflags@,," Makefile
+    }
+}
+
+variant universal {}


Property changes on: trunk/dports/net/socket/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/net/socket/files/patch-Makefile.diff
===================================================================
--- trunk/dports/net/socket/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/net/socket/files/patch-Makefile.diff	2008-01-16 23:39:05 UTC (rev 33017)
@@ -0,0 +1,22 @@
+--- Makefile	2006-04-17 08:13:14.000000000 -0400
++++ Makefile.new	2008-01-16 13:27:38.000000000 -0500
+@@ -32,15 +32,15 @@
+ ### socket.1 in /usr/local/man/man1/socket.1
+ ### Make sure the target directories exist before doing a "make install".
+ 
+-INSTALLBASE = /usr/local
++INSTALLBASE = @prefix@
+ INSTALLBINPATH = $(INSTALLBASE)/bin
+ INSTALLBINMODE = 755
+-INSTALLMANPATH = $(INSTALLBASE)/man
++INSTALLMANPATH = $(INSTALLBASE)/share/man
+ INSTALLMANMODE = 444
+ GCCOPTS = -Wall -Wstrict-prototypes
+ CC = cc
+-CFLAGS = $(SWITCHES) -g
+-LDFLAGS = $(SWITCHES) # -s
++CFLAGS = $(SWITCHES) -g @cflags@
++LDFLAGS = $(SWITCHES) @ldflags@ # -s
+ # To use an architecture-specific compile directory (inside of the
+ # source directory):
+ ARCHDIR = 

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


More information about the macports-changes mailing list