From owner-freebsd-ports@freebsd.org Sat Jun 23 22:24:09 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 992421007DDA for ; Sat, 23 Jun 2018 22:24:09 +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 42B3B94ACD for ; Sat, 23 Jun 2018 22:24:09 +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 171BF37BDC3 for ; Sat, 23 Jun 2018 18:24:08 -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 8EDBE1215F for ; Sat, 23 Jun 2018 18:24:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hilltopgroup.com; s=mail; t=1529792647; bh=YwJlrWKohoMKM5oJbGL42X0fPqRFpo5oniW9MzGSTOg=; h=Subject:To:References:From:Date:In-Reply-To; b=SwJj+ZkR8GxbYanAICDBWAcfb3qoUxHhkmZQHZI17xi+3ezyKyUxSHWzQ8r9y8191 tzmcZRmdV+W76usLMd6KqHNvwJRkgvk0vUTxoXyYzBkVnaGioa4ov4qnNRvKYPCjIl lGUiR/bjXSA3iJ2GPujWhTFq3u+tdOnjA+9bsbnM= Subject: Re: make[1]: cannot open Makefile for new custom port To: freebsd-ports@freebsd.org References: <8334d290-ba31-111e-6d14-804016b2267a@hilltopgroup.com> <0668390b-31e9-80e6-6261-590bff577bef@FreeBSD.org> From: Joseph Ward Message-ID: <107670ff-1ea5-9518-0793-99f9bc0bce26@hilltopgroup.com> Date: Sat, 23 Jun 2018 18:22:06 -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: <0668390b-31e9-80e6-6261-590bff577bef@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Sat, 23 Jun 2018 22:24:09 -0000 This was the problem, thank you!  I added the following lines and it worked. do-install:         @cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}/ On 06/23/2018 17:45, Matthew Seaman wrote: > On 23/06/2018 19:36, Joseph Ward wrote: >> I'm attempting to use make makeplist to create the initial pkg-plist as >> there are a lot of files present, and I'm getting the following error: >> >> # make makeplist >> ===>  License BSD4CLAUSE accepted by the user >> ===>   nebula-db-0.1 depends on file: /usr/local/sbin/pkg - found >> ===> Fetching all distfiles required by nebula-db-0.1 for building >> ===>  Extracting for nebula-db-0.1 >> => SHA256 Checksum OK for nebula-db-0.1.tar.gz. >> ===>  Patching for nebula-db-0.1 >> ===>  Configuring for nebula-db-0.1 >> ===>  Staging for nebula-db-0.1 >> ===>   Generating temporary packing list >> make[1]: cannot open Makefile. >> >> make[1]: stopped in >> /usr/local/poudriere/ports/nebula/misc/nebula-db/work/nebula-db-0.1 >> *** Error code 2 >> >> Stop. >> make: stopped in /usr/local/poudriere/ports/nebula/misc/nebula-db >> >> >> >> I get this when I do "make stage" as well. >> >> >> I tried tracing what's going on in bsd.port.mk, but I have to admit that >> I got pretty lost. >> >> >> my Makefile is (using "set list" in vi in case non-printable characters >> matter): >> >> # $FreeBSD$$ >> $ >> PORTNAME=^Inebula-db$ >> DISTVERSION=^I0.1$ >> CATEGORIES=^Imisc$ >> MASTER_SITES=^Ifile:///root/jail_ports/files/$ >> $ >> MAINTAINER=^Ime@hilltopgroup.com$ >> COMMENT=^IJail containing postgres for the nebula system$ >> $ >> LICENSE=^IBSD4CLAUSE$ >> $ >> NO_BUILD=^Iyes$ >> ONLY_FOR_ARCHS=^Iamd64$ >> ONLY_FOR_ARCHS_REASON=^Ipre-built jail on amd64$ >> $ >> NO_WRKSUBDIR=^Iyes$ >> $ >> .include $ >> >> >> And at that.. I'm stuck.  If it would help, I can post the actual >> distfile on a server and provide the link, but it's a tar.gz file >> containing a /usr/local/jail/db directory which is just a populated jail. >> >> Thanks in advance for any help you can provide, > You haven't specified an install target in your Makefile, so the ports > is going to try the default action of 'make install ...' in your > extracted $WRKSRC directory. That won't work without a Makefile; hence > the error you're seeing. Note that the 'install' target is used to copy > the files into /staging/ -- there are historical reasons why this target > is called 'install' rather than anything to do with the word staging. > > There's a NO_INSTALL variable you could use, analogously to NO_BUILD, to > prevent the ports doing anything at all for that step. > > However, NO_INSTALL is usually used for meta-ports that only exist for > their dependencies and that don't install any actual files, so it may > not be the right answer for you. > > You will need to arrange for all your extracted files to end up in > $STAGEDIR somehow if you want 'makeplist' to work -- a typical way of > doing that is using one or more of the COPYTREE_* macros as part of the > install target. This is the way that many ports which don't do any > actual compilation work. See www/phpsysinfo as a nice and simple example. > > Cheers, > > Matthew > > > >