From owner-freebsd-ports@freebsd.org Mon Mar 6 15:02:11 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9CC8CFAE75 for ; Mon, 6 Mar 2017 15:02:11 +0000 (UTC) (envelope-from ml@netfence.it) Received: from smtp208.alice.it (smtp208.alice.it [82.57.200.104]) by mx1.freebsd.org (Postfix) with ESMTP id AE1781776 for ; Mon, 6 Mar 2017 15:02:11 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (82.52.25.226) by smtp208.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 588F429306F15574; Mon, 6 Mar 2017 16:02:05 +0100 Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) by soth.ventu (8.15.2/8.15.2) with ESMTP id v26F25l6035445; Mon, 6 Mar 2017 16:02:05 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.ventu: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Writing a port that simply installs a bunch of files To: Michael Gmelin Cc: freebsd-ports@freebsd.org References: <66d50818-f00e-9033-4c93-f159c38d04ba@netfence.it> <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de> From: Andrea Venturoli Message-ID: <5e3354dc-b597-7622-dbae-07d4119d1b7a@netfence.it> Date: Mon, 6 Mar 2017 16:02:05 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 15:02:12 -0000 On 03/06/17 12:50, Michael Gmelin wrote: > Yes, that's possible, see sysutils/bhyve-rc[0] for an example how to do it. Thanks for your answer: an example is really welcome. However, I might be dumb, but that does not fully cover what I was looking for. I see sysutils/bhyve-rc uses USE_RC_SUBR in order to install its only file, but that's specific to rc.d scripts. Suppose I want a mean to install generic files, should I use SUB_FILES? The first problem I encounter, then, is with subdirectories. Suppose I want to install /usr/local/a/b/c.txt, I would use "SUB_FILES=a/b/c.txt" and provide files/a/b/c.txt.in. However, I'll get: > cannot create /usr/ports/misc/xxx/work/a/b/c.txt: No such file or directory I've also tried "SUB_FILES=${WRKSRC}/a/b/c.txt", but then make will say: > ** Missing /usr/ports/misc/xxx/files//usr/ports/misc/xxx/work/xxx-y/a/b/c.txt.in for xxx-y. Am I missing something obvious? bye & Thanks av.