This one time, at band camp, sean finney said:
> On Fri, Jul 01, 2005 at 12:12:48AM -0400, Stephen Gran wrote:
> > HTTPDS="apache apache-ssl apache-perl apache2" # Give or take
> > INSTALLED_HTTPDS=''
> >
> > for httpd in $HTTPDS; do
> > if [ -d "/usr/share/doc/${httpd}" ]; then
> > INSTALLED_HTTPDS="$httpd $INSTALLED_HTTPDS"
> > fi
> > done
>
> already have some functionality for this in the webapps-common package
> (see internal/httpd). though instead of looking for /usr/share/doc/$httpd,
> i'm looking for /usr/sbin/$httpd. really testing for any reliably
> present file from the packages' files list should work, but istr something
> about eventually allowing for stripping /usr/share/doc off of debian
> systems.
You're right - nothing should depend on the presence of doc/ I had
forgotten that. So yeah, looking for the binary is smarter.
> > db_set webapps-common/httpd/select_httpd "$INSTALLED_HTTPDS" || true
> >
> > (totally untested, of course)
>
> that's basically the idea, yeah.
>
> > > directories Include'd, and then grab out all the <VirtualHost></VirtualHost>
> >
> > This is harder.
>
> dude, look what i just found:
>
> /usr/sbin/apache -S 2>&1
Oh, that's so much easier - too cool! I am at the moment busy with 4
(4!) CAN's for clam, but I'll see if I can hack up something using this
later.
See ya,
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : sgran@debian.org |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
Attachment:
signature.asc
Description: Digital signature