[63030] trunk/dports/net/dnsmasq/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jan 23 19:35:22 PST 2010


Revision: 63030
          http://trac.macports.org/changeset/63030
Author:   ryandesign at macports.org
Date:     2010-01-23 19:35:22 -0800 (Sat, 23 Jan 2010)
Log Message:
-----------
dnsmasq: make the whitespace consistent

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

Modified: trunk/dports/net/dnsmasq/Portfile
===================================================================
--- trunk/dports/net/dnsmasq/Portfile	2010-01-24 03:33:46 UTC (rev 63029)
+++ trunk/dports/net/dnsmasq/Portfile	2010-01-24 03:35:22 UTC (rev 63030)
@@ -1,17 +1,17 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
-name		        dnsmasq
-version		        2.52
-categories	        net
+name                dnsmasq
+version             2.52
+categories          net
 license             GPL
-maintainers	        snc openmaintainer
-description	        lightweight DNS forwarder and DHCP server
-long_description	Dnsmasq is lightweight, easy to configure DNS \
-			        forwarder and DHCP server. It is designed to provide \
-			        DNS and, optionally, DHCP, to a small network. It can \
+maintainers         snc openmaintainer
+description         lightweight DNS forwarder and DHCP server
+long_description    Dnsmasq is lightweight, easy to configure DNS \
+                    forwarder and DHCP server. It is designed to provide \
+                    DNS and, optionally, DHCP, to a small network. It can \
                     serve the names of local machines which are not in the \
                     global DNS. The DHCP server integrates with the DNS \
                     server and allows machines with DHCP-allocated \
@@ -19,9 +19,9 @@
                     either in each host or in a central configuration \
                     file. Dnsmasq supports static and dynamic DHCP leases \
                     and BOOTP for network booting of diskless machines.
-homepage	        http://www.thekelleys.org.uk/dnsmasq/doc.html
+homepage            http://www.thekelleys.org.uk/dnsmasq/doc.html
 
-platforms	        darwin
+platforms           darwin
 depends_build       port:nawk
 
 notes               A startup item has been generated that will aid in \
@@ -30,21 +30,21 @@
                     and to cause it to launch at startup: \
                     \n\nsudo port load ${name}
 
-master_sites	    http://www.thekelleys.org.uk/dnsmasq/
+master_sites        http://www.thekelleys.org.uk/dnsmasq/
 
 checksums           md5     1bb32fffdb4f977ead607802b5d701d0 \
                     sha1    3c498251a6ce3bb457605d97b290958e63630bce \
                     rmd160  2f68981ff8cb0abbb6d7a1f4e7d2f4254af3d273
 
-patchfiles	        patch-src-config.h.diff \
+patchfiles          patch-src-config.h.diff \
                     patch-Makefile.diff
 post-patch {
-	reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/config.h
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/config.h
 }
 
-use_configure   no
+use_configure       no
 
-destroot.args   PREFIX=${prefix}
+destroot.args       PREFIX=${prefix}
 
 livecheck.type      regex
 livecheck.url       ${master_sites}
@@ -66,8 +66,7 @@
     build.args COPTS="${COPTS}"
 }
 
-post-destroot	{
-
+post-destroot {
     # Create the directory that dnsmasq likes to store it's pid in.
     file mkdir ${prefix}/var/run
 
@@ -75,41 +74,41 @@
     # Set up a launchd item.  The daemondo wrapper is not needed.
     #
 
-        # Create the plist file
-        set itemname        ${startupitem.name}
-        set uniquename      ${startupitem.uniquename}
-        set plistname       ${startupitem.plist}
-        set daemondest      ${startupitem.location}
-        set itemdir         ${prefix}/etc/${daemondest}/${uniquename}
+    # Create the plist file
+    set itemname    ${startupitem.name}
+    set uniquename  ${startupitem.uniquename}
+    set plistname   ${startupitem.plist}
+    set daemondest  ${startupitem.location}
+    set itemdir     ${prefix}/etc/${daemondest}/${uniquename}
 
-        file mkdir ${destroot}${itemdir}
-        file attributes ${destroot}${itemdir} -owner root -group wheel
-    
-        set plist [open "${destroot}${itemdir}/${plistname}" w 0644]
-        puts ${plist} "<?xml version='1.0' encoding='UTF-8'?>"
-        puts ${plist} "<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\""
-        puts ${plist} "\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">"
-        puts ${plist} "<plist version='1.0'>"
-        puts ${plist} "  <dict>"
-        puts ${plist} "    <key>Label</key>"
-        puts ${plist} "    <string>${uniquename}</string>"
-        puts ${plist} "    <key>ProgramArguments</key>"
-        puts ${plist} "    <array>"
-        puts ${plist} "      <string>${prefix}/sbin/dnsmasq</string>"
-        puts ${plist} "      <string>-k</string>"
-        puts ${plist} "      <string>-r</string>"
-        puts ${plist} "      <string>/etc/resolv.conf</string>"
-        puts ${plist} "    </array>"
-        puts ${plist} "    <key>KeepAlive</key>"
-        puts ${plist} "    <dict>"
-        puts ${plist} "      <key>NetworkState</key>"
-        puts ${plist} "      <true/>"
-        puts ${plist} "    </dict>"
-        puts ${plist} "  </dict>"
-        puts ${plist} "</plist>"
-        close ${plist}
+    file mkdir ${destroot}${itemdir}
+    file attributes ${destroot}${itemdir} -owner root -group wheel
 
-        # Make a symlink to the plist file
-        file mkdir "${destroot}/Library/${daemondest}"
-        ln -sf "${itemdir}/${plistname}" "${destroot}/Library/${daemondest}"
+    set plist [open "${destroot}${itemdir}/${plistname}" w 0644]
+    puts ${plist} "<?xml version='1.0' encoding='UTF-8'?>"
+    puts ${plist} "<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\""
+    puts ${plist} "\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">"
+    puts ${plist} "<plist version='1.0'>"
+    puts ${plist} "  <dict>"
+    puts ${plist} "    <key>Label</key>"
+    puts ${plist} "    <string>${uniquename}</string>"
+    puts ${plist} "    <key>ProgramArguments</key>"
+    puts ${plist} "    <array>"
+    puts ${plist} "      <string>${prefix}/sbin/dnsmasq</string>"
+    puts ${plist} "      <string>-k</string>"
+    puts ${plist} "      <string>-r</string>"
+    puts ${plist} "      <string>/etc/resolv.conf</string>"
+    puts ${plist} "    </array>"
+    puts ${plist} "    <key>KeepAlive</key>"
+    puts ${plist} "    <dict>"
+    puts ${plist} "      <key>NetworkState</key>"
+    puts ${plist} "      <true/>"
+    puts ${plist} "    </dict>"
+    puts ${plist} "  </dict>"
+    puts ${plist} "</plist>"
+    close ${plist}
+
+    # Make a symlink to the plist file
+    file mkdir "${destroot}/Library/${daemondest}"
+    ln -sf "${itemdir}/${plistname}" "${destroot}/Library/${daemondest}"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100123/fcc724dd/attachment.html>


More information about the macports-changes mailing list