From owner-freebsd-ports@freebsd.org Tue Sep 6 14:46:54 2016 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 61A13BC79A9; Tue, 6 Sep 2016 14:46:54 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay105.isp.belgacom.be (mailrelay105.isp.belgacom.be [195.238.20.132]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6AFE2139; Tue, 6 Sep 2016 14:46:52 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CnAwCV1c5X/9SdgG1dGgEFAYMwAQEBA?= =?us-ascii?q?QEeSYEKuDaCAoYcAoFZORQBAgEBAQEBAQFeJ4RiAQEEOhweBRALGAklDyoeBhO?= =?us-ascii?q?IMAMbuHodgwsBAQEBBgIBJIp9ihwBBJlTjyxxgQeNa4ZyhVqDeh42gl8bgU86N?= =?us-ascii?q?IZpAQEB?= Received: from 212.157-128-109.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([109.128.157.212]) by relay.skynet.be with ESMTP; 06 Sep 2016 16:46:49 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id u86Ekl9H007614; Tue, 6 Sep 2016 16:46:48 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Tue, 6 Sep 2016 16:46:47 +0200 From: Tijl Coosemans To: CeDeROM Cc: freebsd-ports@freebsd.org, freebsd-questions@freebsd.org Subject: Re: ports: on the fly pkg-plist creation from git pull Message-ID: <20160906164647.1d9c9af7@kalimero.tijl.coosemans.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Tue, 06 Sep 2016 14:46:54 -0000 On Mon, 5 Sep 2016 15:52:34 +0200 CeDeROM wrote: > I am creating a port from a GIT repository. I would like to keep the > GIT file structure to user can update the project with GIT tools. I > know this is not the best and not even the valid way to update, but in > this particular case there is no other choice yet.. and the project > changes really fast so updates from GIT are reasonable and desired. > Hopefully it will change in a next major release and we can simply > create a package. > > I did the simple automation of project clone, submodiles clone, > initial configuration, etc, inside port Makefile. > > The problem is with the pkg-plist. I can create one with `make plist` > based on the staged filesystem and it works until update. I would like > make to create a plist file after fetch and build as a part of > automation. How can I call `make makeplis` on each build? pkg-plist is processed before the staging area is created so running makeplist from post-install or post-stage is too late. You'll have to do something like this instead: post-install: (cd ${STAGEDIR}${PREFIX} && ${FIND} -s * -not -type d >> ${TMPPLIST})