From owner-freebsd-ports@freebsd.org Wed Aug 29 04:48:01 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BDFB10A1099 for ; Wed, 29 Aug 2018 04:48:01 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0A097B963 for ; Wed, 29 Aug 2018 04:48:00 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: by mail-wr1-x42a.google.com with SMTP id o37-v6so3441215wrf.6 for ; Tue, 28 Aug 2018 21:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=r5tthxFUy1Lo0FgUJLfcHW7VHpj2TSAwjjvuP7WmTKo=; b=T8hsnVc8D2iraBsDkGZr1A5B6MXASqboNTam3czLcZ5dedbLG25ko3c3lCV/yrcQSE F9NiEUyff0tLcQ0+537roA/caO4lCSF+nKt6CwRKGzK+BsWKijJ1NTgQDNgrnk5n5/s3 MUy8AT9Sd0E8iMQHrGlSjVDyHr3uNQtpMkXJgwqRs9RjksEbJccYJwfN+Pn+DynNLpDn krAJImZLgycV+P6cCEGYYx8L9Tt0WWUeiM80P+GE79ee7w+B5N68gAFl0FcbNBLiSGRE zLZMUP4zPV1aLCq5/x+C9ack4bNTmoaNZwlDXKp+7MUKY2I64DA4SoT2dWxo4/Xb3n1S m3sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=r5tthxFUy1Lo0FgUJLfcHW7VHpj2TSAwjjvuP7WmTKo=; b=QmW6CqXiFcgeXwDK2C8SXW2BdzPCf6InCDXWCkEBWl9GrQpGUfGNZa0XsGUM347zfq uxL9qFdhVDpb08sT0WexGvOD82iLDHOarUUsrsZF3LvJSICcbpWqQDLKI1RbLEmnvp4K tT47Gi7PeI2/MLPC8ooAzCvezDgPJANzAmnEe3fUEU4+9pCg+RrBOSpuG8stArID4cuy 1VmSCokj/v9aRoMlhMh0aIR3nl7IQq1oloLnSGXm84hL/2u/JPtbRN1/azjzCIkHFfZe MPUXQ4XEFMTqktlPdzzDY0uu0/c7zx7D2CoYcskNCrgllyaROW3HdlP7ofbJ7iCLO91i wodg== X-Gm-Message-State: APzg51Cm5XbAuphKLsz9lHxMzQeJQAbHi7fNhTVaI1s0Eo7gMBBXljUx 2TpaDLFGqqEXlXMcmeYOSfYvdHKAoaIbBc3iLbNte1Am X-Google-Smtp-Source: ANB0Vdb+t5H6MzIVgH8zDteeSvQ5BZ4qWO8mWGS9mKxgLBBXUDsmqz+gYUA6MzAbqz0v2l3lY7AcXRGPLOqEUWaxODk= X-Received: by 2002:adf:8024:: with SMTP id 33-v6mr3030905wrk.16.1535518079472; Tue, 28 Aug 2018 21:47:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9a62:0:0:0:0:0 with HTTP; Tue, 28 Aug 2018 21:47:19 -0700 (PDT) In-Reply-To: References: From: "Jack L." Date: Tue, 28 Aug 2018 21:47:19 -0700 Message-ID: Subject: Re: To: "Dan Mahoney (Gushi)" Cc: FBSD Ports Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 04:48:01 -0000 There is no 11.4, did you mean 10.4? Which pkg did you install? On Tue, Aug 28, 2018 at 5:30 PM, Dan Mahoney (Gushi) wrote: > Hey all, > > Funny question. I'm on FreeBSD 11.4, and would like to use the latest > version of NTP, which is in pkg. > > The version in pkg doesn't have a startup script, which I'm not sure is > supposed to be the case. I know for things like BIND (when it was both in > base and in ports) you could override the binary in /etc/rc.conf. > > However, the version of /etc/rc.d/ntpd in BASE doesn't seem to have the > ability to override the binary in rc.conf: > > name="ntpd" > rcvar="ntpd_enable" > command="/usr/sbin/${name}" > pidfile="/var/run/${name}.pid" > extra_commands="fetch" > fetch_cmd="ntpd_fetch_leapfile" > start_precmd="ntpd_precmd" > > What's weirder, is even if I manually modify the /etc/rc.d/ntpd file to > point at /usr/local/sbin (which I should never have to do), the version in > /usr/sbin gets started. > > root@vortex2:/etc/rc.d # service ntpd start > Starting ntpd. > root@vortex2:/etc/rc.d # ps auxwww|grep ntpd > root 36362 38.3 0.2 26192 18132 - Ss 12:17AM 0:04.73 > /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift > root 36364 0.0 0.0 18844 2328 1 R+ 12:17AM 0:00.00 grep ntpd > root@vortex2:/etc/rc.d # grep command ntpd > command="/usr/local/sbin/${name}" > [...] > > So, asking as a port maintainer, a few questions: > > 0) Why the heck is it doing this even when I override the path? > > 1) How can we encourage base to allow override of command_name? > > 2) Is this a brokenness in the port that it doesn't ship with a startup > file? > > 3) Not strictly related, but what's the proper case for pathing since things > like "ntpq", the base path would naturally be found in any standard $PATH. > Some ports used to have an overwrite_base option, but this also feels wrong > as it breaks freebsd-update in various ways. I.e. should the port print a > message stating that you should chmod 000 the original binaries? Should the > ports versions be named something different? Should the port just warn you > that you need to call these things by absolute path, always? > > -Dan > > -- > > --------Dan Mahoney-------- > Techie, Sysadmin, WebGeek > Gushi on efnet/undernet IRC > FB: fb.com/DanielMahoneyIV > LI: linkedin.com/in/gushi > Site: http://www.gushi.org > --------------------------- > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"