From owner-freebsd-questions@freebsd.org Tue Apr 4 14:06:51 2017 Return-Path: Delivered-To: freebsd-questions@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 7BEC7D2D4DD for ; Tue, 4 Apr 2017 14:06:51 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from hz.citrin.ru (hz.citrin.ru [88.198.212.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 444C91F5 for ; Tue, 4 Apr 2017 14:06:51 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from x220.lan (unknown [IPv6:2601:18a:c680:9888:24e9:c15f:a1c2:c1d7]) by hz.citrin.ru (Postfix) with ESMTPSA id A51EE29A361; Tue, 4 Apr 2017 14:06:46 +0000 (UTC) Subject: Re: No build test port problem To: Iskander Zemmouri , freebsd-questions@freebsd.org References: From: Anton Yuzhaninov Message-ID: <134039a3-c4a0-3e7d-a283-b0d65f00aaa2@citrin.ru> Date: Tue, 4 Apr 2017 10:06:45 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrin.ru; s=s0; t=1491314807; bh=L/ZgHKSxvtrJprXFAGOCpKj0iS4+4iqTySX0TVmVzHc=; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=FpNG/nOhnbxyqqBmUiMr0dnda8wT6NCrR3zmC9c/Jk57v1dFT6BrDnyOET9aWjROQoBvRFII1UTKFUoScqzmEFiwY3Zx0kTSzOU2bK+Ed8ERSKCXuR2JusyfL2GUEzIQLIc3so0CB81rTU1LP4ZiUNagOL0Zbtd1Mlj9nasclOU= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2017 14:06:51 -0000 On 04/02/17 16:10, Iskander Zemmouri wrote: > I'm trying to package some scripts together. I run into problems because my > do-install target installs the necessary files from ${WRKSRC}, so when I > try to make the package, it complains that the appropriate files are not in > the 'stage' directory. > > How can I fix this? > > I might help to know what the makefile looks like, so it's as simple as > this: > > NO_BUILD=yes > > do-instasll: > ${INSTALL_DATA} ${WRKSRC}/foo ${PREFIX}/foo > > .include You should install files to the stage directory, e.g. ${INSTALL_DATA} ${WRKSRC}/foo ${STAGEDIR}${PREFIX}/foo