public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] putting apache / apache2 on 'need' line
@ 2003-09-01 15:55 Martin, Stephen
  2003-09-02  2:41 ` Jacob Smullyan
  2003-09-02  2:49 ` Seemant Kulleen
  0 siblings, 2 replies; 5+ messages in thread
From: Martin, Stephen @ 2003-09-01 15:55 UTC (permalink / raw
  To: 'gentoo-dev@gentoo.org'

Hi all,
I'm finishing up an ebuild that starts a daemon and depends on apache.  The
problem is that it can use either apache or apache2.  How do I handle this
in the need line of the init script, since apache and apache2 have separate
flags?  I'm thinking I need to do something like 'need apache || apache2'.
What's the correct way to handle this?  Or should I just say it depends on
apache2 and be done with it?

Thanks.

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] putting apache / apache2 on 'need' line
  2003-09-01 15:55 [gentoo-dev] putting apache / apache2 on 'need' line Martin, Stephen
@ 2003-09-02  2:41 ` Jacob Smullyan
  2003-09-02 17:39   ` Martin, Stephen
  2003-09-02  2:49 ` Seemant Kulleen
  1 sibling, 1 reply; 5+ messages in thread
From: Jacob Smullyan @ 2003-09-02  2:41 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

On Mon, Sep 01, 2003 at 11:55:34AM -0400, Martin, Stephen wrote:
> I'm finishing up an ebuild that starts a daemon and depends on apache.  The
> problem is that it can use either apache or apache2.  How do I handle this
> in the need line of the init script, since apache and apache2 have separate
> flags?  I'm thinking I need to do something like 'need apache || apache2'.
> What's the correct way to handle this?  Or should I just say it depends on
> apache2 and be done with it?

I recently submitted an ebuild (for skunkweb, bug 26450) which I wish
had a similar characteristic -- that it could optionally build an
apache 1 or 2 module (or none).  Since there didn't seem to be an
apache1 flag, the apache1 option isn't there at the moment.

+1 as far as I am concerned for adding an apache1 USE flag!

Jacob Smullyan


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] putting apache / apache2 on 'need' line
  2003-09-01 15:55 [gentoo-dev] putting apache / apache2 on 'need' line Martin, Stephen
  2003-09-02  2:41 ` Jacob Smullyan
@ 2003-09-02  2:49 ` Seemant Kulleen
  2003-09-02 17:22   ` Martin, Stephen
  1 sibling, 1 reply; 5+ messages in thread
From: Seemant Kulleen @ 2003-09-02  2:49 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 955 bytes --]

On Mon, 1 Sep 2003 11:55:34 -0400 
"Martin, Stephen" <stephen.martin@veridian.com> wrote:

> Hi all,
> I'm finishing up an ebuild that starts a daemon and depends on apache.
>  The
> problem is that it can use either apache or apache2.  How do I handle
> this in the need line of the init script, since apache and apache2
> have separate flags?  I'm thinking I need to do something like 'need
> apache || apache2'. What's the correct way to handle this?  Or should
> I just say it depends on apache2 and be done with it?

Azarah can better advise you, but I should think the apache initscripts
should just provide a virtual/apache and then your script can just "need
apache" or some such.  Az, Donny, Robin?

-- 
Seemant Kulleen
Developer and Project Co-ordinator,
Gentoo Linux					http://dev.gentoo.org/~seemant

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x3458780E
Key fingerprint = 23A9 7CB5 9BBB 4F8D 549B 6593 EDA2 65D8 3458 780E

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] putting apache / apache2 on 'need' line
  2003-09-02  2:49 ` Seemant Kulleen
@ 2003-09-02 17:22   ` Martin, Stephen
  0 siblings, 0 replies; 5+ messages in thread
From: Martin, Stephen @ 2003-09-02 17:22 UTC (permalink / raw
  To: gentoo-dev

Seemant Kulleen wrote:
> Azarah can better advise you, but I should think the apache initscripts
> should just provide a virtual/apache and then your script can just "need
> apache" or some such.  Az, Donny, Robin?

I think that's the best way to go.  I was suprised that there wasn't 
already a virtual/apache or virtual/webserver.  I suppose functionality 
across webservers is too varied for the latter.


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] putting apache / apache2 on 'need' line
  2003-09-02  2:41 ` Jacob Smullyan
@ 2003-09-02 17:39   ` Martin, Stephen
  0 siblings, 0 replies; 5+ messages in thread
From: Martin, Stephen @ 2003-09-02 17:39 UTC (permalink / raw
  To: gentoo-dev

Jacob Smullyan wrote:
> +1 as far as I am concerned for adding an apache1 USE flag!

I think an apache1 flag would we usefull as wel.  However, my problem 
was more with the rc-script for apache2 having a different name than the 
rc-script for apache.  Consequently, the need line in my init script 
should be either 'need net apache' OR 'need net apache2' depending on 
what the user has installed.

I think what I'm going to do is try using the webapp-apache eclass to 
determine the version at install and patch the rc-script so it's 
correct.  Failing that, I suppose I could just set it to apache2 and 
then tell the user in the postinst to modify the rc-script if they're 
running apache1.


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-02 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-01 15:55 [gentoo-dev] putting apache / apache2 on 'need' line Martin, Stephen
2003-09-02  2:41 ` Jacob Smullyan
2003-09-02 17:39   ` Martin, Stephen
2003-09-02  2:49 ` Seemant Kulleen
2003-09-02 17:22   ` Martin, Stephen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox