[56909] trunk/dports/net/hping2/Portfile

snc at macports.org snc at macports.org
Thu Sep 3 06:14:18 PDT 2009


Revision: 56909
          http://trac.macports.org/changeset/56909
Author:   snc at macports.org
Date:     2009-09-03 06:14:16 -0700 (Thu, 03 Sep 2009)
Log Message:
-----------
fix reinplace paths and move from post-build to post-configure, ticket #20927

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

Modified: trunk/dports/net/hping2/Portfile
===================================================================
--- trunk/dports/net/hping2/Portfile	2009-09-03 13:13:10 UTC (rev 56908)
+++ trunk/dports/net/hping2/Portfile	2009-09-03 13:14:16 UTC (rev 56909)
@@ -15,9 +15,11 @@
 patchfiles	patch-Makefile.in patch-libpcap_stuff.c patch-ars.c patch-sendip.c patch-bytesex.h
 post-build { 
 	system "cd ${worksrcpath} && make strip" 
-	reinplace "s|INSTALL_PATH=|INSTALL_PATH=${destroot}${prefix}|g" Makefile
-	reinplace "s|INSTALL_MANPATH=|INSTALL_MANPATH=${destroot}${prefix}/share/man|g" Makefile
 }
+post-configure {
+	reinplace "s|INSTALL_PATH=|INSTALL_PATH=${destroot}${prefix}|g" ${worksrcpath}/Makefile
+	reinplace "s|INSTALL_MANPATH=|INSTALL_MANPATH=${destroot}${prefix}/share/man|g" ${worksrcpath}/Makefile
+}
 post-destroot {
 	file delete ${destroot}${prefix}/sbin/hping
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090903/dda04ea0/attachment-0001.html>


More information about the macports-changes mailing list