[40634] trunk/dports/net/tcp_wrappers/Portfile

jmr at macports.org jmr at macports.org
Wed Oct 8 23:21:05 PDT 2008


Revision: 40634
          http://trac.macports.org/changeset/40634
Author:   jmr at macports.org
Date:     2008-10-08 23:21:04 -0700 (Wed, 08 Oct 2008)
Log Message:
-----------
tcp_wrappers: remove use of cd

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

Modified: trunk/dports/net/tcp_wrappers/Portfile
===================================================================
--- trunk/dports/net/tcp_wrappers/Portfile	2008-10-09 06:17:49 UTC (rev 40633)
+++ trunk/dports/net/tcp_wrappers/Portfile	2008-10-09 06:21:04 UTC (rev 40634)
@@ -27,12 +27,11 @@
 use_configure		no
 
 post-extract {
-	cd ${worksrcpath}
-	system "chmod -R u+w ."
+	system "cd ${worksrcpath} && chmod -R u+w ."
 	set tcpwFiles	{ Makefile hosts_access.3 hosts_access.5 hosts_access.c \
 					tcpd.8 tcpdchk.8 tcpdmatch.8 }
 	foreach modThis $tcpwFiles {
-		reinplace s#/etc/hosts.\[allow|deny\]#${prefix}&#g $modThis
+		reinplace s#/etc/hosts.\[allow|deny\]#${prefix}&#g ${worksrcpath}/${modThis}
 	}
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081008/0f5aad73/attachment.html 


More information about the macports-changes mailing list