[40428] trunk/dports/net/arpwatch/Portfile

pmq at macports.org pmq at macports.org
Wed Oct 1 11:28:27 PDT 2008


Revision: 40428
          http://trac.macports.org/changeset/40428
Author:   pmq at macports.org
Date:     2008-10-01 11:28:26 -0700 (Wed, 01 Oct 2008)
Log Message:
-----------
Partial fix for #16670, make arpwatch use the ethercodes.dat file from ${prefix}/share.

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

Modified: trunk/dports/net/arpwatch/Portfile
===================================================================
--- trunk/dports/net/arpwatch/Portfile	2008-10-01 18:00:51 UTC (rev 40427)
+++ trunk/dports/net/arpwatch/Portfile	2008-10-01 18:28:26 UTC (rev 40428)
@@ -4,7 +4,7 @@
 
 name              arpwatch
 version           2.1a15
-revision          1
+revision          2
 categories        net
 platforms         darwin
 maintainers       pmq openmaintainer
@@ -26,23 +26,31 @@
 
 depends_lib       port:libpcap
 
+set sharedir ${prefix}/share/${name}-${version}
 pre-configure {
     reinplace "s|INCLS = -I.|INCLS = -I. -I${prefix}/include|" ${worksrcpath}/Makefile.in
     reinplace "s|LIBS = @LIBS@|LIBS = -L${prefix}/lib @LIBS@|" ${worksrcpath}/Makefile.in
+    reinplace "s|ARPDIR = .*|ARPDIR = ${prefix}/var/arpwatch|" ${worksrcpath}/Makefile.in
+
+    set ethercodes ${sharedir}/ethercodes.dat
+    reinplace "s|-DARPDIR|-DETHERCODES=\\\\\"${ethercodes}\\\\\" -DARPDIR|" \
+        ${worksrcpath}/Makefile.in
 }
+
 configure.cflags-append     "-DBIND_8_COMPAT=1"
 configure.args    --mandir=${prefix}/share/man
+
 post-configure {
     reinplace "s|-o bin -g bin||g" ${worksrcpath}/Makefile
+    reinplace "/#define ETHERCODES .*/D" ${worksrcpath}/arpwatch.h
 }
 
-build.env         ARPDIR=${prefix}/var/arpwatch
-
 destroot.target   install install-man
 post-destroot {
-    set examples_dir ${destroot}${prefix}/share/examples/${name}-${version}
-    file mkdir ${examples_dir}
+    set destsharedir ${destroot}${sharedir}
+    file mkdir ${destsharedir}
 
-    xinstall -W ${build.dir} ethercodes.dat d.awk e.awk p.awk arp2ethers \
-        ${examples_dir}
+    xinstall -W ${build.dir} CHANGES FILES INSTALL README arp2ethers arpfetch \
+    	bihourly.sh ethercodes.dat d.awk duplicates.awk e.awk euppertolower.awk \
+	massagevendor p.awk ${destsharedir}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081001/34a25b5d/attachment.html 


More information about the macports-changes mailing list