From owner-freebsd-ports@freebsd.org Tue Apr 3 10:33:13 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 5C997F74DC0 for ; Tue, 3 Apr 2018 10:33:13 +0000 (UTC) (envelope-from estartu@ze.tum.de) Received: from mail.ze.tum.de (mail.ze.tum.de [IPv6:2001:4ca0:2e03::1:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.ze.tum.de", Issuer "Zertifizierungsstelle der TUM" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D2CDA75CF2; Tue, 3 Apr 2018 10:33:12 +0000 (UTC) (envelope-from estartu@ze.tum.de) Received: from etustar.ze.tum.de (etustar.ze.tum.de [129.187.39.200]) by mail.ze.tum.de (8.15.2/8.15.2) with ESMTPS id w33AX9Np060236 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 3 Apr 2018 12:33:09 +0200 (CEST) (envelope-from estartu@ze.tum.de) Subject: Re: flavors and rc scripts To: Freebsd Ports References: From: Gerhard Schmidt Openpgp: preference=signencrypt Cc: koobs@FreeBSD.org Organization: =?UTF-8?Q?Technische_Universit=c3=a4t_M=c3=bcnchen_-_WWW_und_O?= =?UTF-8?Q?nline_Services?= Message-ID: <7ff4e80a-c917-7108-9ad1-3d67b8e04ea8@ze.tum.de> Date: Tue, 3 Apr 2018 12:33:09 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 10:33:13 -0000 Am 03.04.2018 um 11:02 schrieb Kubilay Kocak: > On 3/04/2018 5:26 pm, 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. >> > > Hi Gerhard, > > Good question. > > USES=uniquefiles (or the same thing via USE_PYTHON=concurrent) *may* be > able to help you here, though I haven't seen it attempted (yet) for rc > scripts specifically. Concurrent is active but does nothing for the rc script. I've done it by hand, by adding the file su SUB_FILES and add the suffix when installing the rc file. Working so far but seams to be less desirable. Regards Estartu