Date: Mon, 6 Mar 2017 17:45:42 +0100 From: Andrea Venturoli <ml@netfence.it> To: Michael Gmelin <freebsd@grem.de> Cc: freebsd-ports@freebsd.org Subject: Re: Writing a port that simply installs a bunch of files Message-ID: <03dbd850-c6d5-f7e9-9b6a-41e38da5b485@netfence.it> In-Reply-To: <20170306170505.7e043310@bsd64.grem.de> References: <66d50818-f00e-9033-4c93-f159c38d04ba@netfence.it> <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de> <5e3354dc-b597-7622-dbae-07d4119d1b7a@netfence.it> <20170306165104.51c4f071@bsd64.grem.de> <20170306170505.7e043310@bsd64.grem.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03/06/17 17:05, Michael Gmelin wrote: >> What about something like this (your files are in files/input.tgz)? >> ... > NO_WRKSUBDIR= yes > NO_BUILD= yes > NO_INSTALL= yes > > post-install: > @${TAR} -xf ${FILESDIR}/input.tgz -C ${STAGEDIR} > @${FIND} ${STAGEDIR} -type f | \ > ${SED} "s|^${STAGEDIR}||" >> ${TMPPLIST} > > .include <bsd.port.mk> Guess this is what I was looking for (just the ${TAR} part)... basically overriding the "extract" phase. I modified ${STAGEDIR} to ${STAGEDIR}/${PREFIX}. Just why post-install and not do-install? bye & Thanks av.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03dbd850-c6d5-f7e9-9b6a-41e38da5b485>