[65922] trunk/dports/net/arping

snc at macports.org snc at macports.org
Fri Apr 2 18:45:35 PDT 2010


Revision: 65922
          http://trac.macports.org/changeset/65922
Author:   snc at macports.org
Date:     2010-04-02 18:45:32 -0700 (Fri, 02 Apr 2010)
Log Message:
-----------
update version,
thanks to Raim fixing the header conflict

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

Added Paths:
-----------
    trunk/dports/net/arping/files/patch-src-arping.c.diff

Removed Paths:
-------------
    trunk/dports/net/arping/files/patch-arping.c.diff

Modified: trunk/dports/net/arping/Portfile
===================================================================
--- trunk/dports/net/arping/Portfile	2010-04-03 00:54:45 UTC (rev 65921)
+++ trunk/dports/net/arping/Portfile	2010-04-03 01:45:32 UTC (rev 65922)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                arping
-version             2.08
-revision            1
+version             2.09
 categories          net
 platforms           darwin
 maintainers         snc openmaintainer
@@ -14,27 +13,20 @@
                     the LAN is 'taken' and what MAC address owns it.
 
 homepage            http://www.habets.pp.se/synscan/programs.php?prog=arping
-master_sites        ftp://ftp.habets.pp.se/pub/synscan/
-checksums           md5     36dba82f8a6084b634aa6f4aac6225c6 \
-                    sha1    296824cc039e617c00e627e1d86670af233d922f \
-                    rmd160  a405de14e3a25cb72280a642ad823a7174e481b1
-patchfiles          patch-arping.c.diff
+master_sites        http://www.habets.pp.se/synscan/files/
+checksums           md5     6f6a91c8700fcc7454b4e89480e417e3 \
+                    sha1    afa870eaad3bac47a8b627bc3fbdc1471b6cfd72 \
+                    rmd160  e00eb0cd7422e7dcabbe5a880cb959b0dcd73e70
 
-
 depends_lib         port:libnet11 \
                     lib:libpcap.DP:libpcap
 
-use_configure       no
+patchfiles          patch-src-arping.c.diff
 
-build.cmd           gcc arping-2/arping.c -I${prefix}/include/libnet \
-                    -I${prefix}/include -L${prefix}/lib -lnet -lpcap
-build.target        -o arping
-
-destroot {
-    xinstall -m 755 -s ${worksrcpath}/arping ${destroot}${prefix}/bin
-    xinstall -m 755 ${worksrcpath}/arping-scan-net.sh \
+post-destroot {
+    xinstall -m 755 ${worksrcpath}/src/arping ${destroot}${prefix}/bin
+    xinstall -m 755 ${worksrcpath}/extra/arping-scan-net.sh \
         ${destroot}${prefix}/bin/arping-scan-net
-    xinstall -m 644 ${worksrcpath}/arping.8 ${destroot}${prefix}/share/man/man8/
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 -W ${worksrcpath} LICENSE README \
         ${destroot}${prefix}/share/doc/${name}

Deleted: trunk/dports/net/arping/files/patch-arping.c.diff
===================================================================
--- trunk/dports/net/arping/files/patch-arping.c.diff	2010-04-03 00:54:45 UTC (rev 65921)
+++ trunk/dports/net/arping/files/patch-arping.c.diff	2010-04-03 01:45:32 UTC (rev 65922)
@@ -1,20 +0,0 @@
---- arping-2/arping.c.orig	2008-08-11 02:33:31.000000000 -0400
-+++ arping-2/arping.c	2009-09-25 15:41:19.000000000 -0400
-@@ -66,6 +66,8 @@
- #if defined(linux)
- #define HAVE_ESIZE_TYPES 1
- #define FINDIF 1
-+#elif __APPLE__
-+#define HAVE_ESIZE_TYPES 1
- #endif
- 
- #ifdef HAVE_NET_BPF_H
-@@ -237,7 +239,7 @@
- 	char *p,*p2;
- 	int n;
- 
--	do_libnet_init(ifname);
-+	//do_libnet_init(ifname);
- 	libnet_addr2name4_r(dstip,0,buf1, 1024);
- 	//libnet_addr2name4_r(srcip,0,buf1);
- 

Added: trunk/dports/net/arping/files/patch-src-arping.c.diff
===================================================================
--- trunk/dports/net/arping/files/patch-src-arping.c.diff	                        (rev 0)
+++ trunk/dports/net/arping/files/patch-src-arping.c.diff	2010-04-03 01:45:32 UTC (rev 65922)
@@ -0,0 +1,18 @@
+--- src/arping.c.orig	2010-04-02 21:37:16.000000000 -0400
++++ src/arping.c	2010-04-02 21:37:45.000000000 -0400
+@@ -78,12 +78,14 @@
+ #if HAVE_WIN32_LIBNET_H
+ #include <win32/libnet.h>
+ #endif
+-#include <pcap.h>
+ 
+ #if HAVE_NET_BPF_H
+ #include <net/bpf.h>
+ #endif
+ 
++#define PCAP_DONT_INCLUDE_PCAP_BPF_H
++#include <pcap.h>
++
+ #ifndef ETH_ALEN
+ #define ETH_ALEN 6
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100402/66c76341/attachment.html>


More information about the macports-changes mailing list