Skip to content
Permalink
Browse files

Add a warning if the user has hard-configured for launchd startup items

but launchd is not present.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14703 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Oct 19, 2005
1 parent e40bd6d commit c275a8986b5614790424dffe5cddeb928177686e
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/port1.0/portstartupitem.tcl
@@ -1,7 +1,7 @@
# et:ts=4
# portstartupitem.tcl
#
# $Id: portstartupitem.tcl,v 1.25 2005/10/17 18:42:07 mww Exp $
# $Id: portstartupitem.tcl,v 1.26 2005/10/19 05:19:30 jberry Exp $
#
# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
# Copyright (c) 2005 Robert Shaw <rshaw@opendarwin.org>,
@@ -582,6 +582,17 @@ proc startupitem_create_darwin_launchd {args} {
file mkdir "${destroot}/Library/${daemondest}"
system "cd ${destroot}/Library/${daemondest} && ln -sf ${itemdir}/${plistname}"

# If launchd is not available, warn the user
set haveLaunchd ${portutil::autoconf::have_launchd}
if {![tbool haveLaunchd]} {
ui_msg "###########################################################"
ui_msg "# WARNING:"
ui_msg "# We're building a launchd startup item, but launchd wasn't"
ui_msg "# found by configure. Are you sure you didn't mess up your"
ui_msg "# ports.conf settings?"
ui_msg "###########################################################"
}

# Emit some information for the user
ui_msg "###########################################################"
ui_msg "# A startup item has been generated that will aid in"

0 comments on commit c275a89

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