[26358] trunk/dports/net

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 20 08:44:12 PDT 2007


Revision: 26358
          http://trac.macosforge.org/projects/macports/changeset/26358
Author:   boeyms at macports.org
Date:     2007-06-20 08:44:11 -0700 (Wed, 20 Jun 2007)

Log Message:
-----------
net/packetforward:
 * Add new port.

Added Paths:
-----------
    trunk/dports/net/packetforward/
    trunk/dports/net/packetforward/Portfile
    trunk/dports/net/packetforward/files/
    trunk/dports/net/packetforward/files/patch-Makefile

Added: trunk/dports/net/packetforward/Portfile
===================================================================
--- trunk/dports/net/packetforward/Portfile	                        (rev 0)
+++ trunk/dports/net/packetforward/Portfile	2007-06-20 15:44:11 UTC (rev 26358)
@@ -0,0 +1,25 @@
+# $Id$
+
+PortSystem 1.0
+
+name        packetforward
+version     0.7.1
+categories  net
+maintainers boeyms at macports.org openmaintainer at macports.org
+description An IP packet capture/forward application
+long_description \
+    PakcetForward is an IP packet capture/forward application based on libpcap \
+    and libnet. It is a command line tool that listens on one network \
+    interface for UDP and TCP packets and then injects them on the same or \
+    another network interface changing the destination address.
+homepage    http://www.holdorf.dk/software/
+master_sites    ${homepage}
+checksums   md5 907d0a26d5a5186dda5fc91e8151d30f \
+            sha1 2df295baede644af9966084e92fa257648b75777 \
+            rmd160 da60a8373007c9c64e3989a9e27e605db7c0289a
+depends_lib port:libpcap port:libnet
+patchfiles  patch-Makefile
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+}
+use_configure   no


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

Added: trunk/dports/net/packetforward/files/patch-Makefile
===================================================================
--- trunk/dports/net/packetforward/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/net/packetforward/files/patch-Makefile	2007-06-20 15:44:11 UTC (rev 26358)
@@ -0,0 +1,18 @@
+--- Makefile	2007-02-23 00:00:30.000000000 +0000
++++ Makefile.new	2007-06-20 15:54:01.000000000 +0000
+@@ -1,9 +1,11 @@
+ all: 
+-	gcc packetforward.c -o packetforward -I/usr/include -L/usr/lib -lpcap `libnet-config --defines --cflags --libs`
++	gcc packetforward.c -o packetforward -I at PREFIX@/include -L at PREFIX@/lib -lpcap `libnet-config --defines --cflags --libs`
+ 	
+ install:
+-	cp -f packetforward /usr/bin/packetforward
++	cp -f packetforward $(DESTDIR)@PREFIX@/bin/packetforward
++	install -m 755 -d $(DESTDIR)@PREFIX@/share/doc/packetforward
++	install -m 644 ChangeLog LICENSE README $(DESTDIR)@PREFIX@/share/doc/packetforward
+ 	
+ clean:
+ 	rm -f /usr/bin/packetforward
+-	
+\ No newline at end of file
++	


Property changes on: trunk/dports/net/packetforward/files/patch-Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

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


More information about the macports-changes mailing list