Skip to content
Permalink
Browse files

Make the launchd name for startupitems unique under the org.darwinpor…

…ts reverse-domain

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14542 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 11, 2005
1 parent fab9225 commit 238073538f6de27e74cf8ae81db0ec154dcec6e1
Showing with 6 additions and 7 deletions.
  1. +1 −3 ChangeLog
  2. +5 −4 src/port1.0/portstartupitem.tcl
@@ -1,5 +1,5 @@
#
# $Id: ChangeLog,v 1.16 2005/10/11 04:16:15 jberry Exp $
# $Id: ChangeLog,v 1.17 2005/10/11 04:38:36 jberry Exp $
#
# This is a log of major user-visible changes in each release
#
@@ -13,8 +13,6 @@ ToDo Items for release 1.2:
(James added some suggested text to bug #4905)
- Portfile(7) missing keywords: http://bugzilla.opendarwin.org/show_bug.cgi?id=4905 (???)
- Maybe: cvs/svn fetch w/ patches: http://bugzilla.opendarwin.org/show_bug.cgi?id=5269 (yeled?)
- Use org.darwinports. prefix for launchd startupitem files.


Release 1.2 (unreleased):

@@ -1,7 +1,7 @@
# et:ts=4
# portstartupitem.tcl
#
# $Id: portstartupitem.tcl,v 1.21 2005/10/11 04:05:49 jberry Exp $
# $Id: portstartupitem.tcl,v 1.22 2005/10/11 04:38:36 jberry Exp $
#
# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
# Copyright (c) 2005 Robert Shaw <rshaw@opendarwin.org>,
@@ -380,9 +380,10 @@ proc startupitem_create_darwin_launchd {args} {
set scriptdir ${prefix}/etc/startup

set itemname ${startupitem.name}
set plistname ${itemname}.plist
set uniquename org.darwinports.${itemname}
set plistname ${uniquename}.plist
set daemondest LaunchDaemons
set itemdir ${prefix}/etc/${daemondest}/${itemname}
set itemdir ${prefix}/etc/${daemondest}/${uniquename}
set program "${prefix}/bin/daemondo"
set args [list \
"--label=${itemname}" \
@@ -545,7 +546,7 @@ proc startupitem_create_darwin_launchd {args} {
puts ${plist} "<plist version='1.0'>"
puts ${plist} "<dict>"

puts ${plist} "<key>Label</key><string>${itemname}</string>"
puts ${plist} "<key>Label</key><string>${uniquename}</string>"

puts ${plist} "<key>Program</key><string>${program}</string>"
puts ${plist} "<key>ProgramArguments</key>"

0 comments on commit 2380735

Please sign in to comment.
You can’t perform that action at this time.