From owner-freebsd-questions@FreeBSD.ORG Sat Jan 30 15:17:57 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0126A106566B for ; Sat, 30 Jan 2010 15:17:57 +0000 (UTC) (envelope-from benschumacher@gmail.com) Received: from mail-px0-f183.google.com (mail-px0-f183.google.com [209.85.216.183]) by mx1.freebsd.org (Postfix) with ESMTP id C64B68FC1D for ; Sat, 30 Jan 2010 15:17:56 +0000 (UTC) Received: by pxi13 with SMTP id 13so1154858pxi.3 for ; Sat, 30 Jan 2010 07:17:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=elxDq17ZS9EG4f40whW39vG59N6Id3A07UAl+33EZoI=; b=wyEbtt8y5icO8tWjGA5fEM9kXl2/9gRewKQCMn4tre3y87+alhMCiNLk+KeHjX4xCo rdi1GThwT4cqHQEBgb1IksRnoK2751gOacA+cniraO5Wi4z1VSDQ4o60uhKV+xK4KzcV QB1e+l5I0sE530F55Yh16m3LWzBK2zksnHbH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=E+ASAte9rycm1wdk17sUZEwO80PTt7qXhZD1dnGF4Q3EBrtLWSex+oFWAsamezu6IK xQ0CRgOaHIwII8vBtw/cr1siEj14XKTCl7uhjFkFoOsWRw+yBN9LP/UC7Ye3KU4AancO o5qhYnlUTPcFvRwYqGS57VMBm+meuTsvjiDfw= MIME-Version: 1.0 Received: by 10.143.25.37 with SMTP id c37mr1529332wfj.172.1264864676268; Sat, 30 Jan 2010 07:17:56 -0800 (PST) In-Reply-To: <4B644B0D.60306@pdconsec.net> References: <4B644B0D.60306@pdconsec.net> Date: Sat, 30 Jan 2010 08:17:56 -0700 Message-ID: <9859143f1001300717o35e3b283jb83b1580948c5e0e@mail.gmail.com> From: Ben Schumacher To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: David Rawling Subject: Re: Replacing base NTP with ports NTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2010 15:17:57 -0000 On Sat, Jan 30, 2010 at 8:06 AM, David Rawling wrote: > About 3 months ago I built myself a time server using 8.0-RC3, IIRC, and I > upgraded to 8.0-RELEASE (and now -p2). Naturally, as I want this server to > provide time services, I've installed the net/ntp port, among others. > > Recently, for reasons that have become lost in the mists of time, I noticed > that I wasn't running the port version of NTP (/usr/local/sbin/ntpd), but > the version installed with the base system (/usr/sbin/ntpd). > > For the immediate term, I've renamed the base versions of the files in > /usr/sbin, and then symlinked to the port version (in /usr/local) - ntpd is > now the ports version, as are most of the tools. This does, however, seem > like a rather silly way of getting the most current NTPd running. > > I cannot, for the life of me, figure out how to get the Ports version of NTP > to overwrite the base system's NTP. Yet I'm sure (since there *is* a port of > NTP) there must be a better way to do this. > > Can anyone point me in the direction of some documentation? David- I'm not going to claim that this is the "best" way either, but if you're doing source installs you could just set "WITHOUT_NTP=true" in /etc/src.conf to disable the installation of the system one. You can use "man src.conf" to find out more about this. I stop installations of a bunch of standard services this way -- lpr, bind, nis, sendmail, etc. "make delete-old" from your source build will clean up those files that are no longer used. Hope this helps, Ben