From owner-freebsd-ports@freebsd.org Tue Apr 3 11:57:38 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 594E0F7A35F for ; Tue, 3 Apr 2018 11:57:38 +0000 (UTC) (envelope-from m@absolight.fr) Received: from prod2.absolight.net (prod2.absolight.net [79.143.243.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prod2.absolight.net", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D8D0C790BF for ; Tue, 3 Apr 2018 11:57:37 +0000 (UTC) (envelope-from m@absolight.fr) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 56176BDD25; Tue, 3 Apr 2018 13:57:36 +0200 (CEST) Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified)) by prod2.absolight.net (Postfix) with ESMTPSA id 386FFBDD1E; Tue, 3 Apr 2018 13:57:36 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) by gw.in.absolight.net (Postfix) with ESMTP id B74496151; Tue, 3 Apr 2018 13:57:35 +0200 (CEST) Received: by ogg.in.absolight.net (Postfix, from userid 501) id 6FE2D636A0C8; Tue, 3 Apr 2018 13:57:35 +0200 (CEST) Date: Tue, 3 Apr 2018 13:57:35 +0200 From: Mathieu Arnold To: Gerhard Schmidt Cc: Freebsd Ports Subject: Re: flavors and rc scripts Message-ID: <20180403115735.hduffiw2xvscqe5a@ogg.in.absolight.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bspbaxpojaiuo25t" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 11:57:38 -0000 --bspbaxpojaiuo25t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 03, 2018 at 09:26:51AM +0200, Gerhard Schmidt wrote: > Hi, >=20 > I'm trying to build a python package that uses flavors to allow parallel > installation for different python versions. >=20 > So far building an installing works fine till the start script comes in > the picture. >=20 > 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=3D${PYTHON_PKGNAMEPREFIX}scriptname i have to add a start > script for every flavor. >=20 > 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 --=20 Mathieu Arnold --bspbaxpojaiuo25t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAABCgBmBQJaw2wuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IKjkP/RgLDTVo3OW38DaSOkTxmxfI 28+WNdyMuOZvylHO19YnfsOPmcFrTPi7cqCuFohgFbXp6oFhr3UjAVdQphksEIln qKk5gWtvi9RBXoxJAOoLghtlDGcHR5qqxHHIhWDuBo/x0VMgxmzjnybtPvzrtNm3 lz3vUJRVJY3b7coZoHfrT5E/Ta5CeQUzJqy/QmJuSPVghn/PMCT1WtBxoU07RiYB lKZcsfzcyHQ3BPr9SdvWloSqfMqDU5MYzsG5h+uXL+eAN1Nz/ZiTZzFoPsXm6tAD dp69w3w6k0r104SXq8ElUo7Llo+gAt0yt2gf2BDBJq2dIktkpHlehYoZBm3Ud9l+ x4n4WU/E6FVCXcRHkZ/goJKqE+T7x+rcyAt2CcTMsGLpmIS4y12MVFVVyOAg+JBq 1QX7HST2QcN/0do2dnZETcWzWb42wu5p1lsmcWIK6917iWLcq1ZuuytIl6rH8EqX 0n/fVhdR/nrWwb3hWx8mU2iRKHnNKYBPSK5Wu3FuYS8bwt94MsTuSsp1rYddSiZr 86CMOPmtNPbGeQLAzcQctUvig2mQKPThvaS6DsrAgMvqlv6HrfMToS9jNLy3pbRz N8F49gaCLv9riwwNJLz1jGwkT5xUXfvAh8u88Xf7ZDYB2wvvLDqV/5eXZaPOPJoA ZoqHpSxyNHuBkSFuJth1 =VPn1 -----END PGP SIGNATURE----- --bspbaxpojaiuo25t--