From owner-freebsd-stable@FreeBSD.ORG Wed Apr 8 17:00:51 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02473EF4 for ; Wed, 8 Apr 2015 17:00:51 +0000 (UTC) Received: from mail.xtaz.uk (tao.xtaz.uk [IPv6:2001:8b0:202::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6515888 for ; Wed, 8 Apr 2015 17:00:50 +0000 (UTC) Received: by mail.xtaz.uk (Postfix, from userid 1001) id 73AB9209AF21; Wed, 8 Apr 2015 18:00:48 +0100 (BST) Date: Wed, 8 Apr 2015 18:00:48 +0100 From: Matt Smith To: Adam McDougall Subject: Re: ports/base ntpd rc.d script with WITHOUT_NTP=yes Message-ID: <20150408170048.GC1280@xtaz.uk> Mail-Followup-To: Matt Smith , Adam McDougall , freebsd-stable@freebsd.org References: <20150408164825.GB1280@xtaz.uk> <55255DB4.2080501@egr.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <55255DB4.2080501@egr.msu.edu> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2015 17:00:51 -0000 On Apr 08 12:56, Adam McDougall wrote: >On 04/08/2015 12:48, Matt Smith wrote: >> Hi, >> >> I just upgraded my server to 10.1-STABLE r281264 and when I ran >> mergemaster it told me that /etc/rc.d/ntpd was stale and would I like to >> delete it. It's never done this before. I've figured out it's because I >> have WITHOUT_NTP=yes in /etc/src.conf. I did this because I use the >> ports version of ntpd and thus wanted to remove the base installed >> version so that when I run commands like ntpq it's using my possibly >> newer port installed version and not the older one. >> >> However, the port version doesn't have its own rc script. It usually >> uses the base version with ntpd_program and ntpd_config set. With this >> latest change it means I have to have the base version installed again. >> Is it possible to get the port version to have its own rc script? >> > >net/openntpd has an rc script if you don't mind switching. It is very >very simple to configure. > >Ideally the original problem should be solved too but I ran into the >same problem with Kerberos. I didn't get anywhere in the bug report >where I argued the system scripts still worked fine except for recent >changes in them causing a regression and failure with the port. Both >situations could probably use a contributed patch to make an rc script. I guess it wouldn't be too hard to just take the base system script, make some minor changes, and add it to the port. Would probably need to call it something different to ntpd though so it doesn't conflict. The openssh port does this I think with ssh in the base and openssh in the port. I might look into it and submit a PR. -- Matt