From owner-freebsd-ports@freebsd.org Fri Jun 29 13:53:53 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 11491EF86FD for ; Fri, 29 Jun 2018 13:53:53 +0000 (UTC) (envelope-from jbwlists@hilltopgroup.com) Received: from equinox.hilltopgroup.com (equinox.hilltopgroup.com [204.109.63.175]) by mx1.freebsd.org (Postfix) with ESMTP id AC0378C06A for ; Fri, 29 Jun 2018 13:53:52 +0000 (UTC) (envelope-from jbwlists@hilltopgroup.com) Received: from mail.relativity.hilltop.int (unknown [104.185.205.155]) by equinox.hilltopgroup.com (Postfix) with ESMTP id AD3A137BDF9 for ; Fri, 29 Jun 2018 09:53:46 -0400 (EDT) Received: from sovereign.sector005 (equinox.hilltopgroup.com [204.109.63.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jbwlists@hilltopgroup.com) by mail.relativity.hilltop.int (Postfix) with ESMTPSA id 5F55316567 for ; Fri, 29 Jun 2018 09:53:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hilltopgroup.com; s=mail; t=1530280426; bh=sBbEjZpq2lPZ+Euah4WI2dZAAhbH8vk1ro3lVnUJUt0=; h=Subject:To:References:From:Date:In-Reply-To; b=jCgmDuXDf2VAjgIPaPHjrV00gVnkTmlqC4MFpPt0Vig9PHdYxfKf6VKm/XtcfHvZl IifWp0Ntm2l10uvx+Ef5uqNdqA1cdLPGKvsgx+aPG74g1vSzoCLyCNOk5d290yo/8M veNJ5e0vWu/u3tHS95oUjfWBFKoqHHhyY2+DvRhc= Subject: Re: Any way to prevent do-extract chmod and chown? To: freebsd-ports@freebsd.org References: <20180628082738.uv3bs6jmrrp52h5m@atuin.in.mat.cc> <20180628220559.hwwvidjzwlaxtq4x@atuin.in.mat.cc> From: Joseph Ward Message-ID: <9a359e4c-f1ca-4ee5-45fc-8dd96283695a@hilltopgroup.com> Date: Fri, 29 Jun 2018 09:51:41 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 13:53:53 -0000 Thank you, I'll look into that tool and will reply back (for future seekers) if it does what I need. -Joseph On 06/28/2018 19:00, Freddie Cash wrote: > On Thu, Jun 28, 2018, 3:06 PM Mathieu Arnold, wrote: > >> On Thu, Jun 28, 2018 at 01:43:41PM -0400, Joseph Ward wrote: >>> Thank you. I found that to be the case; even though changing the >>> "do-extract" target successfully staged the files and directories with >>> the original permissions, pkg create seems to strip them out again >>> without the pkg-plist additions. >>> >>> Are you aware of an easy/already existing command to create the >>> pkg-plist with the user/group/permissions items for each file, or is >>> that a script I'm going to have to write manually? I'm currently using >>> the makeplist target as there are no subsitutions or anything else that >>> would screw up the default scenario. >> I am not aware of anything. But if you already have "stuff" creating a >> big hierarchy with many users and groups, it may be easier to adapt >> "stuff" to generate a pkg-plist file, or maybe to split your ports into >> smaller, more manageable bits. >> >> make makeplist will give you a correct listing of files and >> directories, but as everything runs as a regular user, it cannot be >> aware of the users/groups you intend on using in the plist. >> > Isn't this something mtree can be used for? > > Use it to generate a listing of the files, permissions, and ownership of a > tree, include the mtree output file in the port, and use a post-install > script to run mtree to set ownership/permission. > > Cheers, > Freddie > > Typos courtesy of my phone's keyboard. > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"