Date: Thu, 14 Dec 2000 13:28:45 -0600 From: "Jacques A. Vidrine" <n@nectar.com> To: Peter Pentchev <roam@orbitel.bg> Cc: ports@freebsd.org Subject: Config file convention for ports (was Re: ${PREFIX}/etc/defaults?) Message-ID: <20001214132845.C44019@hamlet.nectar.com> In-Reply-To: <20001214031521.B575@ringworld.oblivion.bg>; from roam@orbitel.bg on Thu, Dec 14, 2000 at 03:15:21AM %2B0200 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001214132845.C44019>