[29184] trunk/dports/net/maradns/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 17 00:22:56 PDT 2007


Revision: 29184
          http://trac.macosforge.org/projects/macports/changeset/29184
Author:   boeyms at macports.org
Date:     2007-09-17 00:22:56 -0700 (Mon, 17 Sep 2007)

Log Message:
-----------
maradns: remove cd command from Portfile

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

Modified: trunk/dports/net/maradns/Portfile
===================================================================
--- trunk/dports/net/maradns/Portfile	2007-09-17 07:22:42 UTC (rev 29183)
+++ trunk/dports/net/maradns/Portfile	2007-09-17 07:22:56 UTC (rev 29184)
@@ -27,22 +27,23 @@
 patchfiles		patch-configure patch-install.darwin
 
 post-extract {
-	cd ${worksrcpath}
 # Delete unneeded stress-testing code (not built by default).  It may be worth
 # adding this as a variant in a future revision.
-	file delete -force sqa
+	file delete -force ${worksrcpath}/sqa
 # Delete Portuguese documentation sources (documentation not built by default;
 # will need to add a section to build these docs if localisation desired)
-	file delete -force doc/pt_br
+	file delete -force ${worksrcpath}/doc/pt_br
 # Delete unneeded English documentation sources (documentation already built)
 # and support files that will otherwise be installed in the doc directories
-	file delete -force doc/en/source
-	file delete doc/en/man/read.manpage
-	file delete doc/en/pdf/tmac.an.patch
-	eval file delete [glob doc/en/*/{Makefile,*.embed,make.*}]
+	file delete -force ${worksrcpath}/doc/en/source
+	file delete ${worksrcpath}/doc/en/man/read.manpage
+	file delete ${worksrcpath}/doc/en/pdf/tmac.an.patch
+	eval file delete \
+		[glob ${worksrcpath}/doc/en/*/{Makefile,*.embed,make.*}]
 # Fix installation script (called by "make install") so that configuration
 # files and directories are placed in destroot
-	reinplace "s|\$RPM_BUILD_ROOT|${destroot}${prefix}|g" build/install.sh
+	reinplace "s|\$RPM_BUILD_ROOT|${destroot}${prefix}|g" \
+		${worksrcpath}/build/install.sh
 # Fix hardcoding of default paths to chroot, log and zone file dirs, and
 # configuration file, in source and docs. copy.devs.c is only used if maradns
 # is built for Solaris, and maraconf.sh is neither installed by default nor yet
@@ -53,28 +54,28 @@
 	set marareinplace	"s|/etc/mara|${prefix}/etc/mara|g"
 	foreach docpage ${marabindocpages} {
 		eval reinplace "${marareinplace}" \
-		doc/en/text/man.${docpage}.txt \
-		doc/en/tutorial/man.${docpage}.html
+		${worksrcpath}/doc/en/text/man.${docpage}.txt \
+		${worksrcpath}/doc/en/tutorial/man.${docpage}.html
 	}
 	foreach docpage ${marasetupdocpages} {
 		eval reinplace "${marareinplace}" \
-		doc/en/text/${docpage}.txt \
-		doc/en/tutorial/${docpage}.html
+		${worksrcpath}/doc/en/text/${docpage}.txt \
+		${worksrcpath}/doc/en/tutorial/${docpage}.html
 	}
 	eval reinplace "${marareinplace}" \
-		MaraDns.h \
-		build/copy.devs.c \
-		parse/ParseMaraRc.c \
-		tools/maraconf.sh \
-		doc/en/QuickStart \
-		doc/en/examples/example_authoritative_mararc.txt \
-		doc/en/examples/example_full_mararc \
-		doc/en/examples/example_mararc \
-		doc/en/examples/example_recursive_mararc.txt \
-		doc/en/man/duende.8 \
-		doc/en/man/maradns.8 \
-		doc/en/man/zoneserver.8 \
-		doc/en/man/mararc.5
+		${worksrcpath}/MaraDns.h \
+		${worksrcpath}/build/copy.devs.c \
+		${worksrcpath}/parse/ParseMaraRc.c \
+		${worksrcpath}/tools/maraconf.sh \
+		${worksrcpath}/doc/en/QuickStart \
+		${worksrcpath}/doc/en/examples/example_authoritative_mararc.txt \
+		${worksrcpath}/doc/en/examples/example_full_mararc \
+		${worksrcpath}/doc/en/examples/example_mararc \
+		${worksrcpath}/doc/en/examples/example_recursive_mararc.txt \
+		${worksrcpath}/doc/en/man/duende.8 \
+		${worksrcpath}/doc/en/man/maradns.8 \
+		${worksrcpath}/doc/en/man/zoneserver.8 \
+		${worksrcpath}/doc/en/man/mararc.5
 }
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070917/cae7dbba/attachment.html


More information about the macports-changes mailing list