public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Stuart Herbert <stuart@gentoo.org>
To: Max Kalika <max@gentoo.org>, Troy Dack <tad@gentoo.org>,
	gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] [GLEP] Web Application Installation
Date: Sun, 3 Aug 2003 15:46:22 +0100	[thread overview]
Message-ID: <200308031546.22388.stuart@gentoo.org> (raw)
In-Reply-To: <2147483647.1059852387@[192.168.26.4]>

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 6399 bytes --]

Hi Max,

On Sunday 03 August 2003 3:26 am, Max Kalika wrote:
> > I'd prefer /etc/webapps/<application>/, again for future flexibility
> > where a  web application has more than one configuration file.  I don't
> > mind frigging  apps to look in more than one place for a config file.  I
> > do mind patching  apps to use just the one file.
>
> You want to mix the apache config block with other configuration files that
> come with the application?  

/etc/webapps/<application>/ is the directory for the *application's* config 
files.  Nothing to do with Apache per se.

There is an alternative that should be considered.  Maybe there shouldn't be 
an /etc/webapps directory at all, and the config files should live under the 
Document Root.  Yes, this might be better.  How would you support multiple 
installations of phpMyAdmin using a /etc/webapps/ scheme?

> Yes!  Which is why a patch is probably not always appropriate -- sed is
> more resilient to pieces of configuration moving around upstream.

Not sure I understand you here.  A patch is applied against a known set of 
files.  Portage only installs known sets of files.  So a patch is no less 
appropriate than sed.

> > If Robin doesn't beat me to it, I'll write a script that we can add to
> > Portage  to standardise getting this information.
>
> What did you have in mind to achieve this?

Last night, I thought I was sure.  Unfortunately, waking up today I've 
forgotten ;-)  I'll go back and re-read the thread.

> > What shape are other languages in for their dependencies?  Not every
> > webapp is  going to be written in PHP ...
>
> Many apps are CGIs.  Others can of course be mod_perl, mod_python, java,
> you name it.  I see no problems using the eclass with these because it was
> written with flexibility in mind.  Like I've said in the past.  My initial
> idea for this was to fix nut and apcuspd to cleanly install their CGI
> components.

We're going to use the one eclass for CGIs, mod_perl-dependent, 
mod_python-dependent, and so on?  Mmmm.  That way lies pain and misery me 
thinks.

I think we'll need a webapps-base eclass, and then a webapps-<language> set of 
eclasses.  All the language-neutral stuff goes in the base, and everything 
else goes into each specific language eclass.

> > Well, write access to directories under htdocs at any rate.  TikiWiki -
> > which  we're looking to use for a Gentoo website - has this annoying
> > feature.
>
> What bothers me though, is that having any directory under /usr writeable
> is really bad form (I made a policy at work for all servers -- configure a
> system where /usr can be mounted read-only).  If at all possible, I'd like
> to have these directories created under something like /var/lib/ and
> symlinked back to where the app needs to write.  If not symlinked then an
> Apache alias (or whatever is equivalent to other servers).

Writable /usr is something I'll have no part in.

I thought Robin's idea was this.  The master copy of the app goes in 
/usr/webapps.  Then we have a script that symlinks in the app under the 
Document Root as required by the local admin, or uses .htaccess tricks as 
appropriate.

Robin - can you explain your idea again plz?

> See above.  But I agree, we _can't_ standardize on the approach simply
> because it depends on what needs to be done.  I imagine that there will be
> some apps where we would just have complete config files living in
> ${FILESDIR} that get installed over the ones that come with the package.

Urgh.  Only if the patch is larger than the replacement file, I'd hope ;-)

> Having said that, I say we _should_ standardize on installation of packages
> from the same family (i.e. Horde).

Well, that'd be up to the maintainer of the packages I'd hope.

> >> Standardization should always be applauded. :-)
> >
> > Urgh ;-)  If everything in life was standardised, we'd be running RedHat,
> > not  busy upsetting the apple-cart with this upstart project ;-)
>
> Having run redhat for the past 4 years, I can safely say that that pile of
> stuff strewn loosely together with twine and masking tape into a
> nightmarish  packaging system is far from standardized.

Lots of laughter.  My intention wasn't to start a RedHat flame war ;-)

> Forgot to bring this up.  Can't agree more.  Web-* makes sense to me.
> There's a slew of things that can go into web-mail and web-net just to
> start.

Definitely.

> > Secondly, are we going to establish a webapps herd to look after the
> > packages  that will be added?  If so, feel free to add me to the list of
> > maintainers.   If not, then what solution do you suggest?
>
> A herd makes sense.  I'll leave this to the higher-ups thought. :-)

As I understand it, if there's a group of us want a herd, then it's up to us 
to put it in place and make it a success.

> As I've said before many times, I'd like to see the eclass grow into
> something that can be used with all the webservers we have in portage.  I
> don't know if userland tools can be flexible enough to create config blocks
> for all the apps that we're going to have.  An ebuild knows enough of the
> application to pass the necessary information to the eclass to create
> whatever config is needed.  At the same time, we have to be careful to not
> balloon this into something unmaintainable. Which is why it may be best to
> start this as apache-only (as it is the more popular of the webservers).
> Get everything converted over and working and only then add support for
> others.

Just what webserver-specific configuration do these apps need?  I'd hope that, 
for the vast majority of apps, it's little to none.

If we start down the apache-only route now, it's something that'll probably 
never get fixed.  Let's identify just what apache config stuff you think is 
needed, and let's generalise it now.  It can't be that difficult - it's only 
a web server.

Best regards,
Stu
-- 
Stuart Herbert                                              stuart@gentoo.org
Gentoo Developer                                       http://www.gentoo.org/
Beta packages for download            http://dev.gentoo.org/~stuart/packages/

GnuGP key id# F9AFC57C available from http://pgp.mit.edu
Key fingerprint = 31FB 50D4 1F88 E227 F319  C549 0C2F 80BA F9AF C57C
--

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-08-03 14:48 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-02 16:50 [gentoo-dev] [GLEP] Web Application Installation Troy Dack
2003-08-02 20:39 ` Robin H.Johnson
2003-08-02 23:11 ` [gentoo-dev] Re: [gentoo-core] " Max Kalika
2003-08-02 23:51   ` Stuart Herbert
2003-08-03  2:26     ` [gentoo-dev] " Max Kalika
2003-08-03 14:46       ` Stuart Herbert [this message]
2003-08-03 15:20         ` Max Kalika
2003-08-03 17:43           ` Stuart Herbert
2003-08-03 19:03             ` Max Kalika
2003-08-03 19:43               ` Stuart Herbert
2003-08-04  4:29                 ` Max Kalika
2003-08-04 10:43                   ` Stuart Herbert
2003-08-03  0:30 ` Austin Frank
2003-08-03  7:50   ` Tal Peer
2003-08-03 14:45   ` Don Seiler
2003-08-03 14:49     ` [gentoo-dev] Re: [gentoo-core] " Stuart Herbert
2003-08-05  3:46       ` Robin H.Johnson
2003-08-05 10:21         ` Stuart Herbert
2003-08-05  8:12 ` Troy Dack
  -- strict thread matches above, loose matches on Subject: below --
2003-08-04 17:11 Max Kalika
2003-08-04 22:16 ` Stuart Herbert
2003-08-05  9:49   ` Michael Cummings
2003-08-04 23:16 Max Kalika
2003-08-05  0:14 ` Stuart Herbert
2003-08-05  2:30   ` Donny Davies
2003-08-05 10:12     ` Stuart Herbert
2003-08-06  4:01       ` Donny Davies
2003-08-05  3:04   ` Max Kalika
2003-08-05 10:39     ` Stuart Herbert
2003-08-05  9:34   ` Paul de Vrieze
2003-08-05 11:19     ` Stuart Herbert
2003-08-05 11:37       ` Paul de Vrieze
2003-08-05 21:00       ` Max Kalika
2003-08-05 23:43         ` Cal Evans
2003-08-06  1:54           ` Stuart Herbert
2003-08-06  2:16             ` Robin H.Johnson
2003-08-06  2:44               ` Stuart Herbert
2003-08-07  1:08 Troy Dack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200308031546.22388.stuart@gentoo.org \
    --to=stuart@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    --cc=max@gentoo.org \
    --cc=tad@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox