From owner-freebsd-rc@FreeBSD.ORG Fri Apr 21 13:59:35 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B7FE16A403 for ; Fri, 21 Apr 2006 13:59:35 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C725843D46 for ; Fri, 21 Apr 2006 13:59:34 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id C498D118EB for ; Fri, 21 Apr 2006 15:59:33 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57687-04 for ; Fri, 21 Apr 2006 15:59:24 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id D299811A3D for ; Fri, 21 Apr 2006 15:59:23 +0200 (CEST) From: Florent Thoumie To: freebsd-rc@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8VvA7QWnQGm0CopccqJe" Date: Fri, 21 Apr 2006 14:59:22 +0100 Message-Id: <1145627962.83576.68.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Subject: RFC: rc.subr changes X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 13:59:35 -0000 --=-8VvA7QWnQGm0CopccqJe Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'd like to commit the following patches, but I'm welcoming any input I can get before doing so : http://people.freebsd.org/~flz/local/rc.subr-defaults.diff The point is to be able in the (near) future to add some features to bsd.port.mk like a ENABLE_RC_SCRIPT variable to automatically set *_enable variable in ${PREFIX}/etc/defaults/$name. Maintainers would be able to install default configuration flags in this file via a USE_RC_DEFAULTS variable (pretty much like what /etc/defaults/rc.conf does, but for ports/packages). This file would be overwritten each time the port/package is installed. Local specific configuration can already be done in ${PREFIX}/etc/rc.conf.d/$name, so that's another step towards ${PREFIX}-clean ports. Note: part of the patch is s/command/name/g, that's related to a previous commit I did to rc.subr, I just forgot to update the man page (no cookie). --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-8VvA7QWnQGm0CopccqJe Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBESOU6MxEkbVFH3PQRAjjpAKCIn1JQAxCQIvAWp1RW+bpmCL4XwgCdFWGC kA2SfUpy68jb6vijHJzmRVc= =mPQL -----END PGP SIGNATURE----- --=-8VvA7QWnQGm0CopccqJe--