Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2016 13:34:30 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Aristedes Maniatis <amaniatis@apache.org>, freebsd-ports@FreeBSD.org
Subject:   Re: ${INSTALL_DATA} problems
Message-ID:  <2b42c68c-94a6-8f4b-415d-68cd24a6f46d@infracaninophile.co.uk>
In-Reply-To: <cb59dad8-c6a0-ffc1-4705-9e8a66ca2679@apache.org>
References:  <cb59dad8-c6a0-ffc1-4705-9e8a66ca2679@apache.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--SH5IoP3XNdh0Gjpu83i3hp5vdVJPt8Kn2
Content-Type: multipart/mixed; boundary="Qie85IB8AtwVDMK4w6hcsDGuh5hHLSqGq"
From: Matthew Seaman <m.seaman@infracaninophile.co.uk>
To: Aristedes Maniatis <amaniatis@apache.org>, freebsd-ports@FreeBSD.org
Message-ID: <2b42c68c-94a6-8f4b-415d-68cd24a6f46d@infracaninophile.co.uk>
Subject: Re: ${INSTALL_DATA} problems
References: <cb59dad8-c6a0-ffc1-4705-9e8a66ca2679@apache.org>
In-Reply-To: <cb59dad8-c6a0-ffc1-4705-9e8a66ca2679@apache.org>

--Qie85IB8AtwVDMK4w6hcsDGuh5hHLSqGq
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 09/08/16 13:27, Aristedes Maniatis wrote:
> I'm trying to create a port with a command like this:
>=20
> do-install:
>         ${MKDIR} ${STAGEDIR}${SOLR_HOME}
>         ${INSTALL_DATA} ${WRKSRC}/dist ${STAGEDIR}${SOLR_HOME}
>=20
> However the output is
>=20
> /bin/mkdir -p /var/poudriere/ports/default/textproc/apache-solr/work/st=
age/usr/local/solr
> install  -m 0644 /var/poudriere/ports/default/textproc/apache-solr/work=
/solr-5.5.2/dist /var/poudriere/ports/default/textproc/apache-solr/work/s=
tage/usr/local/solr
> install: /var/poudriere/ports/default/textproc/apache-solr/work/solr-5.=
5.2/dist: Inappropriate file type or format
> *** Error code 71
>=20
> {CP} works fine, but I want to use {INSTALL_DATA} so I can also add the=
 -o flag.
>=20
>=20
> What am I doing wrong?
>=20
>=20
>=20
> Please cc me as I'm not on the list.

If ${WRKSRC}/dist is a directory and you want to copy it and its
contents recursively into the staging area, then you want one of
COPYTREE_BIN or COPYTREE_SHARE instead of INSTALL_DATA

	Cheers,

	Matthew



--Qie85IB8AtwVDMK4w6hcsDGuh5hHLSqGq--

--SH5IoP3XNdh0Gjpu83i3hp5vdVJPt8Kn2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJX0VrWAAoJEABRPxDgqeTnztcP/RB/e45J5uB0FlXEbdqTSAvH
Qd9ALpyDO2g4d8jqrjTdpTaqNGb/Uh+VQGkIqkW4Mirwz9NasSUjEZMZoROPlvQO
hzEDpTpekP+/Nh2q2wgQTCc6VpoldeS9u3Zdsnfs6r4BkicQU4R9wAA7IWiFG2n4
W3TXBIsvNNNIUQ5fBajKyc1O6c4kG//qqI00pKDGl24texDYp36atAPPDzCF+4x3
GhqsZIsivhuZ23Jlyag7ZCxdIwQjUAELcixxq9KiPZSOt2A6c9/vAHD6ZX3QBU+H
UOGbO4o+e8ucsCuZ0tf0qc22H74kqeIHecWQnGWrngoZ+xYVoZ74PVYlr7seUDyV
pQvSqSsPCbDXGSb7lxmxMkKovcyvhB3ck05jUwZfPSGoc99q8ackhpusOE6k1Lje
v8lE2ONBYItX77yCL+LK8SsQ6QUeO00j9aAvT8vvpc3ZAVpYpdde2KYeTPlZiDRS
p/bSyjVA7WcKVIWwum97dknce+sJHXk2xO4wOPwnMYv6grZ7a6dZ/Y7VZ1nc9yDm
egIgfd5n47bd2sXhAaRAl/KDPh3DvKaK+B2zn3LLm2MoWBgNU4bl3+oCWxNZ8RkL
mh4xtccUpdwcoGYSCy6sNxLfqcni/hPxcA7Y9UQOmcnJTU/w1QQgdC3sgsff3krh
Yf3xex4YEFl4DxrrQF9v
=UA3l
-----END PGP SIGNATURE-----

--SH5IoP3XNdh0Gjpu83i3hp5vdVJPt8Kn2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2b42c68c-94a6-8f4b-415d-68cd24a6f46d>