[30006] trunk/base/src/port1.0/portstartupitem.tcl
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 17 20:25:46 PDT 2007
Revision: 30006
http://trac.macosforge.org/projects/macports/changeset/30006
Author: jmpp at macports.org
Date: 2007-10-17 20:25:45 -0700 (Wed, 17 Oct 2007)
Log Message:
-----------
N_Ox: this is the modeline you were looking for ;-)
Also some more whitespace cleanups.
Modified Paths:
--------------
trunk/base/src/port1.0/portstartupitem.tcl
Modified: trunk/base/src/port1.0/portstartupitem.tcl
===================================================================
--- trunk/base/src/port1.0/portstartupitem.tcl 2007-10-18 00:42:43 UTC (rev 30005)
+++ trunk/base/src/port1.0/portstartupitem.tcl 2007-10-18 03:25:45 UTC (rev 30006)
@@ -1,4 +1,4 @@
-# et:ts=4
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# portstartupitem.tcl
#
# $Id$
@@ -166,10 +166,10 @@
}
if { [llength ${startupitem.executable}] &&
- ![llength ${startupitem.init}] &&
- ![llength ${startupitem.start}] &&
- ![llength ${startupitem.stop}] &&
- ![llength ${startupitem.restart}] } {
+ ![llength ${startupitem.init}] &&
+ ![llength ${startupitem.start}] &&
+ ![llength ${startupitem.stop}] &&
+ ![llength ${startupitem.restart}] } {
# An executable is specified, and there is no init, start, stop, or restart
} else {
if { ![llength ${startupitem.start} ] } {
@@ -202,7 +202,7 @@
# MacPorts generated StartupItem
#
-}
+ }
puts ${item} "prefix=$prefix"
# Source the utilities package and the MacPorts config file
puts ${item} {[ -r "/etc/rc.common" ] && . "/etc/rc.common"}
@@ -350,7 +350,7 @@
}
RunService "$1"
-}
+ }
# ^^^^^^ END BOILERPLATE ^^^^^^
close ${item}
@@ -395,18 +395,18 @@
set daemondest LaunchDaemons
set itemdir ${prefix}/etc/${daemondest}/${uniquename}
set args [list \
- "${prefix}/bin/daemondo" \
- "--label=${itemname}" \
- ]
+ "${prefix}/bin/daemondo" \
+ "--label=${itemname}" \
+ ]
file mkdir ${destroot}${itemdir}
file attributes ${destroot}${itemdir} -owner root -group wheel
if { [llength ${startupitem.executable}] &&
- ![llength ${startupitem.init}] &&
- ![llength ${startupitem.start}] &&
- ![llength ${startupitem.stop}] &&
- ![llength ${startupitem.restart}] } {
+ ![llength ${startupitem.init}] &&
+ ![llength ${startupitem.start}] &&
+ ![llength ${startupitem.stop}] &&
+ ![llength ${startupitem.restart}] } {
# An executable is specified, and there is no init, start, stop, or restart
# code; so we don't need a wrapper script
@@ -431,9 +431,9 @@
}
lappend args \
- "--start-cmd" ${wrapper} start ";" \
- "--stop-cmd" ${wrapper} stop ";" \
- "--restart-cmd" ${wrapper} restart ";"
+ "--start-cmd" ${wrapper} start ";" \
+ "--stop-cmd" ${wrapper} stop ";" \
+ "--restart-cmd" ${wrapper} restart ";"
# Create the wrapper script
set item [open "${destroot}${wrapper}" w 0755]
@@ -635,4 +635,3 @@
default { ui_error "$UI_PREFIX [msgcat::mc "Unrecognized startupitem type %s" ${startupitem.type}]" }
}
}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071017/d0a6f8b9/attachment.html
More information about the macports-changes
mailing list