Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2018 14:30:11 -0700
From:      "Chris H" <portmaster@BSDforge.com>
To:        "Joseph Ward" <jbwlists@hilltopgroup.com>
Cc:        <freebsd-ports@freebsd.org>
Subject:   Re: make[1]: cannot open Makefile for new custom port
Message-ID:  <305b4545c2a43158e04deab710caa09f@udns.ultimatedns.net>
In-Reply-To: <8334d290-ba31-111e-6d14-804016b2267a@hilltopgroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 23 Jun 2018 14:36:05 -0400 "Joseph Ward" <jbwlists@hilltopgroup=2Ecom=
> said

> Hi all,
>=20
> I'm attempting to make my first port which is attempting to literally
> unpack a tgz into the correct location=2E=C2=A0 I'm wanting a port, as I wa=
nt
> this to be versioned and upgradable on all my systems via pkg (as well
> as to handle dependencies, etc)=2E=C2=A0
>=20
> 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:
>=20
> # make makeplist
> =3D=3D=3D>=C2=A0 License BSD4CLAUSE accepted by the user
> =3D=3D=3D>=C2=A0=C2=A0 nebula-db-0=2E1 depends on file: /usr/local/sbin/pkg=
 - found
> =3D=3D=3D> Fetching all distfiles required by nebula-db-0=2E1 for building
> =3D=3D=3D>=C2=A0 Extracting for nebula-db-0=2E1
> =3D> SHA256 Checksum OK for nebula-db-0=2E1=2Etar=2Egz=2E
> =3D=3D=3D>=C2=A0 Patching for nebula-db-0=2E1
> =3D=3D=3D>=C2=A0 Configuring for nebula-db-0=2E1
> =3D=3D=3D>=C2=A0 Staging for nebula-db-0=2E1
> =3D=3D=3D>=C2=A0=C2=A0 Generating temporary packing list
> make[1]: cannot open Makefile=2E
>=20
> make[1]: stopped in
> /usr/local/poudriere/ports/nebula/misc/nebula-db/work/nebula-db-0=2E1
> *** Error code 2
>=20
> Stop=2E
> make: stopped in /usr/local/poudriere/ports/nebula/misc/nebula-db
>=20
>=20
>=20
> I get this when I do "make stage" as well=2E
>=20
Greetings Joseph,
I'm not sure if I follow you exactly=2E But if I understand you correctly;
you're looking to create a pkg-plist file via make makeplist, and your
port doesn't actually build anything (contains installation files?)=2E
You need a minimum of
Makefile
distindo
pkg-descr
in your port directory=2E
for a minimum Makefile for what I understand your port to do=2E The
following should work:
# $FreeBSD$

PORTNAME=3D
PORTVERSION=3D
CATEGORIES=3D
MASTER_SITES=3D

MAINTAINER=3D
COMMENT=3D

LICENSE=3D
LICENSE_FILE=3D=09(if necessary)

USES=3D=09=09tar:txz
NO_BUILD=3D=09yes

=2Einclude <bsd=2Eport=2Emk>

note the key here is NO_BUILD
you mention your distfile uses tar(1) and xz(1)=2E The above example
assumes the extension name is =2Etxz ; adjust as needed=2E You will
(of couse) need to fill all the empty fields as needed, as well as
add || subtract them, as needed=2E

Hope this helps=2E

--Chris





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?305b4545c2a43158e04deab710caa09f>