Date: Fri, 17 Dec 2004 23:56:04 +0900 From: Hye-Shik Chang <perky@i18n.org> To: Clement Laforet <clement@FreeBSD.org> Cc: perky@FreeBSD.org Subject: Re: [proposal] modular envvars Message-ID: <20041217145603.GA5890@i18n.org> In-Reply-To: <20041217111953.7a685375.clement@FreeBSD.org> References: <20041217111953.7a685375.clement@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Dec 17, 2004 at 11:19:53AM +0100, Clement Laforet wrote:
> [ perky@ is Cc'd since www/mod_python3 could use it ]
>
> Guys,
>
> At the moment, envvars is deleted during upgrade, which is *ugly*. I
> could compare envvars and envvars-std, but I'd like to make envvars
> modular. For example you put your stuff in
> ${PREFIX}/etc/apache/envvars/*.env and it will be automatically read by
> envvars (at the _end_ of the file).
>
> How do you like the idea?
>
I'll be happy if we adopt debian-like config installation system
here. It will be like this:
apache2 port creates a directory on its installation:
/usr/local/sbin/apache2-envvars.d/
And apache module ports which wants some modification on envvars
(namely, www/mod_python{,3}) install its own configuration under
there:
/usr/local/sbin/apache2-envvars.d/mod_python.sh
/usr/local/sbin/apache2-envvars.d/mod_python3.sh
/usr/local/sbin/apache2-envvars.d/mod_yet_another.sh
And, envvars contains a script which traverses the directory.
like:
for f in /usr/local/sbin/apache2/envvars.d/*; do
source $f;
done
I found this idea from debian's apache package and it looks very
useful for not only envvars but also httpd.conf. (we have several
ports that needs modification on httpd.conf in the ports already)
It was just an idea. :-)
Hye-Shik
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBwvODDWUsWc/bS6QRArvVAKCRU5mLnJTe2QOgoTUSVAAdT8oyxwCfeJgQ
R6hgB36555uIXDsmP/FJfvQ=
=/e8s
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041217145603.GA5890>
