From owner-freebsd-ports Thu Dec 14 11:28:49 2000 From owner-freebsd-ports@FreeBSD.ORG Thu Dec 14 11:28:47 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id C615137B400 for ; Thu, 14 Dec 2000 11:28:46 -0800 (PST) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id 14E81193E1; Thu, 14 Dec 2000 13:28:46 -0600 (CST) Received: (from nectar@localhost) by hamlet.nectar.com (8.11.1/8.9.3) id eBEJSj799168; Thu, 14 Dec 2000 13:28:45 -0600 (CST) (envelope-from nectar@spawn.nectar.com) Date: Thu, 14 Dec 2000 13:28:45 -0600 From: "Jacques A. Vidrine" To: Peter Pentchev Cc: ports@freebsd.org Subject: Config file convention for ports (was Re: ${PREFIX}/etc/defaults?) Message-ID: <20001214132845.C44019@hamlet.nectar.com> References: <14898.15686.684993.235346@guru.mired.org> <20001213000550.B74111@dragon.nuxi.com> <20001213105547.A373@ringworld.oblivion.bg> <20001213163646.A84929@dragon.nuxi.com> <20001214031521.B575@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001214031521.B575@ringworld.oblivion.bg>; from roam@orbitel.bg on Thu, Dec 14, 2000 at 03:15:21AM +0200 X-Url: http://www.nectar.com/ Sender: nectar@nectar.com Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Dec 14, 2000 at 03:15:21AM +0200, Peter Pentchev wrote: > So.. how about what Oyvind Moll suggested - ${PREFIX}/etc/samples/*.conf? Note that we already have a conventional approach to this "problem". See section 15.18 of the Porter's Handbook. However, a "more standard" approach would be nice. How something like this proposal, inspired by the way the ports system currently handles set[ug]id files and files installed in ${PREFIX}/etc/rc.d (Thanks Kris!). (I'm too lazy to make an actual patch, use your imagination.) # Example config files go here PORTCONFDIR=${PREFIX}/share/examples/${PORTNAME}/conf # A la .PLIST.startup and .PLIST.setuid ${GREP} '^${PORTCONFDIR}' ${TMPPLIST} > ${WRKDIR}/.PLIST.config if [ -s "${WRKDIR}/.PLIST.config" ]; then echo "===> CONFIGURATION FILES" echo " This port has installed the following sample configuration" echo " files. Please copy them to the correct location and edit" echo " accordingly." ${CAT} ${WRKDIR}/.PLIST.config if -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message