flavors and rc scripts

Mathieu Arnold mat at FreeBSD.org
Tue Apr 3 11:57:38 UTC 2018


On Tue, Apr 03, 2018 at 09:26:51AM +0200, Gerhard Schmidt wrote:
> Hi,
> 
> I'm trying to build a python package that uses flavors to allow parallel
> installation for different python versions.
> 
> So far building an installing works fine till the start script comes in
> the picture.
> 
> The port should install a start script for each of the flavors
> installed, but USE_RC_SUBR installs the rc.script under the name given
> and don't add the prefix or suffix. When i use
> USE_RC_SUBR=${PYTHON_PKGNAMEPREFIX}scriptname i have to add a start
> script for every flavor.
> 
> Is there a way to gent USE_RC_SUBR to add the prefix or suffix.

I am not sure I understand exacly what you want to achieve by installing
different flavors of the same daemon.

Would you want it to run multiple times?

What happens with the rc variables?

Are all the flavors managed using the same variables, and then, all the
daemons run concurrently?

Are they supposed to be named something like this for the default
flavor:

scriptname_arguments
scriptname_pidfile

and like this for a non default flavor:

scriptname_py36_arguments
scriptname_py36_pidfile


-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20180403/58cfb42b/attachment.sig>


More information about the freebsd-ports mailing list