From owner-freebsd-ports@FreeBSD.ORG Sat May 24 15:27:05 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDB7F1065674 for ; Sat, 24 May 2008 15:27:05 +0000 (UTC) (envelope-from ganael.laplanche@martymac.com) Received: from data.galacsys.net (data.galacsys.net [217.24.81.1]) by mx1.freebsd.org (Postfix) with ESMTP id ADFAB8FC0A for ; Sat, 24 May 2008 15:27:05 +0000 (UTC) (envelope-from ganael.laplanche@martymac.com) Received: from martymac.com (webmail.galacsys.net [217.24.81.215]) by data.galacsys.net (Postfix) with ESMTP id 7320916B9ED; Sat, 24 May 2008 17:27:04 +0200 (CEST) From: "Ganael LAPLANCHE" To: Boris Samorodov , "Ganael LAPLANCHE" X-Openwebmail-Date: Sat, 24 May 2008 17:27:04 +0100 Message-Id: <20080524150909.M12444@martymac.com> In-Reply-To: <07923414@ipt.ru> References: <20080524073145.M76509@martymac.com> <07923414@ipt.ru> X-Mailer: Open WebMail 2.01 20030425 X-OriginatingIP: 82.246.139.206 (ganael.laplanche@martymac.com) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Date: Sat, 24 May 2008 17:27:04 +0200 (CEST) Cc: ports@freebsd.org, emulation@FreeBSD.org Subject: Re: USE_LINUX_RPM and PORTDOCS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2008 15:27:06 -0000 On Sat, 24 May 2008 13:04:57 +0400, Boris Samorodov wrote > I'd suggest another option. What about fixing bsd.linux-rpm.mk? Ex., > one may introduce, say, a pre-install target (or even do it at the > very beginning of a do-install stage) and conditionally delete > unneeded files from WRKDIR (so they won't get installed at do-install > stage). Thanks for your answer :) Of course, fixing bsd.linux-rpm.mk would be the best option ! Your idea is good, but PORTDOCS would not be useable for that purpose. It cannot be used to identify files to delete because it is relative to the destination target (DOCSDIR), not to WRKDIR or WRKSRC. A good idea may be to introduce a new variable, say RMWRKDIRFILES= (something like that) and a target, as you suggest, that would delete all those files relative to WRKDIR, before the install target. Note that this idea is not limited to bsd.linux.mk and could be introduced more generally in bsd.port.mk. Of course, considering my original post and port problem, I can do this manually if this idea is not a good one :p Ganaël LAPLANCHE ganael.laplanche@martymac.com http://www.martymac.com