[48205] trunk/dports/net/packetforward
boeyms at macports.org
boeyms at macports.org
Mon Mar 16 16:29:15 PDT 2009
Revision: 48205
http://trac.macports.org/changeset/48205
Author: boeyms at macports.org
Date: 2009-03-16 16:29:15 -0700 (Mon, 16 Mar 2009)
Log Message:
-----------
packetforward: update to latest version (0.8.1).
Modified Paths:
--------------
trunk/dports/net/packetforward/Portfile
trunk/dports/net/packetforward/files/patch-Makefile.diff
Modified: trunk/dports/net/packetforward/Portfile
===================================================================
--- trunk/dports/net/packetforward/Portfile 2009-03-16 22:54:20 UTC (rev 48204)
+++ trunk/dports/net/packetforward/Portfile 2009-03-16 23:29:15 UTC (rev 48205)
@@ -3,7 +3,7 @@
PortSystem 1.0
name packetforward
-version 0.7.1
+version 0.8.1
categories net
platforms darwin
maintainers boeyms openmaintainer
@@ -15,12 +15,14 @@
another network interface changing the destination address.
homepage http://www.holdorf.dk/software/
master_sites ${homepage}
-checksums md5 907d0a26d5a5186dda5fc91e8151d30f \
- sha1 2df295baede644af9966084e92fa257648b75777 \
- rmd160 da60a8373007c9c64e3989a9e27e605db7c0289a
+checksums md5 686e70d857d9f0f34f20ed4205912da5 \
+ sha1 c3faad544315fe9a69725ec119cc1e1749920fff \
+ rmd160 fd27e891346b386b0785d840924552280bcba8ae
depends_lib port:libpcap port:libnet
+worksrcdir ${name}
patchfiles patch-Makefile.diff
post-patch {
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
}
use_configure no
+build.args CC=${configure.cc}
Modified: trunk/dports/net/packetforward/files/patch-Makefile.diff
===================================================================
--- trunk/dports/net/packetforward/files/patch-Makefile.diff 2009-03-16 22:54:20 UTC (rev 48204)
+++ trunk/dports/net/packetforward/files/patch-Makefile.diff 2009-03-16 23:29:15 UTC (rev 48205)
@@ -1,18 +1,27 @@
---- Makefile 2007-02-23 00:00:30.000000000 +0000
-+++ Makefile.new 2007-06-20 15:54:01.000000000 +0000
-@@ -1,9 +1,11 @@
+--- Makefile 2008-12-19 14:29:49.000000000 +0000
++++ Makefile.new 2009-03-16 13:01:30.000000000 +0000
+@@ -1,16 +1,18 @@
+ # packetforward - Makefile
+
+ CC = gcc
+-INCLUDE = -I/usr/include
+-LIBS = -L/usr/lib -lpcap `libnet-config --defines --cflags --libs`
+-INSTALL_DIR = /usr/bin
++INCLUDE = -I at PREFIX@/include
++LIBS = -L at PREFIX@/lib -lpcap `libnet-config --defines --cflags --libs`
++INSTALL_DIR = @PREFIX@/bin
+
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`
+ $(CC) packetforward.c -o packetforward $(INCLUDE) $(LIBS)
install:
-- cp -f packetforward /usr/bin/packetforward
-+ cp -f packetforward $(DESTDIR)@PREFIX@/bin/packetforward
+- cp -f packetforward $(INSTALL_DIR)/packetforward
++ cp -f packetforward $(DESTDIR)$(INSTALL_DIR)/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
+ rm -f $(INSTALL_DIR)/packetforward
-
\ No newline at end of file
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090316/1ebb0440/attachment-0001.html>
More information about the macports-changes
mailing list