[40550] trunk/dports/net/bnetd/Portfile

jmr at macports.org jmr at macports.org
Mon Oct 6 13:34:22 PDT 2008


Revision: 40550
          http://trac.macports.org/changeset/40550
Author:   jmr at macports.org
Date:     2008-10-06 13:34:21 -0700 (Mon, 06 Oct 2008)
Log Message:
-----------
bnetd: remove use of cd

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

Modified: trunk/dports/net/bnetd/Portfile
===================================================================
--- trunk/dports/net/bnetd/Portfile	2008-10-06 20:27:29 UTC (rev 40549)
+++ trunk/dports/net/bnetd/Portfile	2008-10-06 20:34:21 UTC (rev 40550)
@@ -29,11 +29,10 @@
 }
 destroot.destdir	prefix=${destroot}${prefix}
 post-destroot	{
-	cd ${destroot}${prefix}/var/bnetd
-	xinstall -m 755 -d  users reports chanlogs charinfo charsave \
-		ladders bak/charsave bak/charinfo
+	set vardir ${destroot}${prefix}/var/bnetd
 	foreach file {users reports chanlogs charinfo charsave ladders bak/charsave bak/charinfo} {
-		destroot.keepdirs-append ${destroot}${prefix}/var/bnetd/${file}
+		xinstall -m 755 -d ${vardir}/${file}
+		destroot.keepdirs-append ${vardir}/${file}
 	}
 	reinplace "s|${destroot}${prefix}|${prefix}|g" \
 		${destroot}${prefix}/etc/bnetd/bnetd.conf \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081006/510bebfb/attachment.html 


More information about the macports-changes mailing list