From owner-freebsd-ports@freebsd.org Thu Mar 9 10:58:27 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 B4ED3D04954 for ; Thu, 9 Mar 2017 10:58:27 +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 4C6508CE for ; Thu, 9 Mar 2017 10:58:26 +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 588F4293076AC98C; Thu, 9 Mar 2017 11:58:23 +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 v29AwHNP038283; Thu, 9 Mar 2017 11:58:17 +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: freebsd-ports@freebsd.org Cc: Michael Gmelin References: <66d50818-f00e-9033-4c93-f159c38d04ba@netfence.it> <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de> <5e3354dc-b597-7622-dbae-07d4119d1b7a@netfence.it> <20170306165104.51c4f071@bsd64.grem.de> <20170306170505.7e043310@bsd64.grem.de> <03dbd850-c6d5-f7e9-9b6a-41e38da5b485@netfence.it> From: Andrea Venturoli Message-ID: <3e2f217d-f853-4e37-c103-d0b5501520bc@netfence.it> Date: Thu, 9 Mar 2017 11:58:17 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <03dbd850-c6d5-f7e9-9b6a-41e38da5b485@netfence.it> Content-Type: text/plain; charset=windows-1252; 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: Thu, 09 Mar 2017 10:58:27 -0000 On 03/06/17 17:45, Andrea Venturoli wrote: >> post-install: >> @${TAR} -xf ${FILESDIR}/input.tgz -C ${STAGEDIR} >> @${FIND} ${STAGEDIR} -type f | \ >> ${SED} "s|^${STAGEDIR}||" >> ${TMPPLIST} >> >> .include > > Guess this is what I was looking for (just the ${TAR} part)... basically > overriding the "extract" phase. > I modified ${STAGEDIR} to ${STAGEDIR}/${PREFIX}. That should be "${STAGEDIR}${PREFIX}", anyway. Now files have correct permissions, owner and group in ${STAGEDIR}; however the group is lost in ${PREFIX} after "make install". Is specifying "@group" in pkg-plist the only way to keep that? bye & Thanks av.