From owner-freebsd-pkgbase@freebsd.org Wed Aug 1 23:54:15 2018 Return-Path: Delivered-To: freebsd-pkgbase@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 1A8C4106CC47; Wed, 1 Aug 2018 23:54:15 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A42948E061; Wed, 1 Aug 2018 23:54:11 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 195A821E09; Wed, 1 Aug 2018 19:54:11 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute5.internal (MEProxy); Wed, 01 Aug 2018 19:54:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=4pyUT+QCtMtcmSuw+ZgKpIxq/7SMr 60pB4F0t58SXzQ=; b=YOKuqm2Z7BPl1pNzUIBCwvyizkmEH6Pq2MPjykfMOvFv4 2cPNlesx7LLB5ssWFCgi4hyt2aw8sn5r+E1JtlSk91iga2v0gNsOkBME+NWLJ+c9 LZz6yV1A9jO3tBAZF7wc87vYvkUf83NE7jdSXMQ9VwsfxZ9yYtwTwEHB2CWHd2Yr LLkeyz/hDYa9CHO5ZOUjnur+mCkdJ3Bt5RDoT57b48/aIvf4l6Ic0w+r5Z1d4ch0 d14+vntPMEJY61Wsxzj4hd0mDRrnPYue/4jpxOBYhuUpyGAVOQRLB+mvApP3joCv m/WX0wD/LpKchVibwW1NiBonIMYK8JW927RgRw17Q== X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 9E4A4BA4CF; Wed, 1 Aug 2018 19:54:10 -0400 (EDT) Message-Id: <1533167650.2567721.1460524472.3AC8CC35@webmail.messagingengine.com> From: Brad Davis To: freebsd-arch@FreeBSD.org, freebsd-pkgbase@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-2be8cd1b Date: Wed, 01 Aug 2018 17:54:10 -0600 Subject: pkgbase: Move of head/etc/ files X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 23:54:15 -0000 Hello, I want to give some information on what is happening to files in head/etc/ and open a discussion. I am trying to move all config files out of head/etc/ and place them with the source files for the particular use. For example, some of these are obvious moves like moving say portsnap.conf to usr.sbin/portsnap/portsnap.conf. The review for this move shows exactly what would happen here: https://reviews.freebsd.org/D16554. For these cases, there are some easy benefits, like: 1) Keeping all files as part of a program together, which makes maintenance for maintainers a little easier. 2) Simplicity, we do not need all the .if ${MK_FOO} lines in etc/Makefile because that is handled a level above the programs Makefile and so one CONFS= line is all that is needed. 3) Easier to avoid bugs where we install things that should not be installed. Like for apmd, we installed apmd.conf on all archs even though it only works on i386. i.e. we don't have to keep knobs in sync in multiple locations. Some of the more complicated things to move like etc/shells and the init scripts. I picked the location of etc/shells based on it being used by getusershell(3) in libc, so it ended up in lib/libc/gen/shells. The move of the init scripts was based on a few things, including the reasons above, but additionally: 1) Isolating a subcomponent, for example work is happening to bring in OpenRC, so we will have multiple init systems with different types of scripts, so moving them away from head/etc/ keeps them isolated. This work was driven by needing to tag these files as config files in the METALOG so that pkg knows what is a config file so that pkg can 3-way merge them. More info on pkgbase: https://wiki.freebsd.org/PkgBase Regards, Brad Davis