Changeset 14703 for trunk/base


Ignore:
Timestamp:
Oct 19, 2005, 5:19:30 AM (19 years ago)
Author:
jberry
Message:

Add a warning if the user has hard-configured for launchd startup items
but launchd is not present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portstartupitem.tcl

    r14675 r14703  
    22# portstartupitem.tcl
    33#
    4 # $Id: portstartupitem.tcl,v 1.25 2005/10/17 18:42:07 mww Exp $
     4# $Id: portstartupitem.tcl,v 1.26 2005/10/19 05:19:30 jberry Exp $
    55#
    66# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
     
    583583        system "cd ${destroot}/Library/${daemondest} && ln -sf ${itemdir}/${plistname}"
    584584       
     585        # If launchd is not available, warn the user
     586        set haveLaunchd ${portutil::autoconf::have_launchd}
     587        if {![tbool haveLaunchd]} {
     588                ui_msg "###########################################################"
     589                ui_msg "# WARNING:"
     590                ui_msg "# We're building a launchd startup item, but launchd wasn't"
     591                ui_msg "# found by configure. Are you sure you didn't mess up your"
     592                ui_msg "# ports.conf settings?"
     593                ui_msg "###########################################################"
     594        }
     595       
    585596        # Emit some information for the user
    586597        ui_msg "###########################################################"
Note: See TracChangeset for help on using the changeset viewer.