Writing a port that simply installs a bunch of files
Andrea Venturoli
ml at netfence.it
Thu Mar 9 10:58:27 UTC 2017
On 03/06/17 17:45, Andrea Venturoli wrote:
>> 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}.
That should be "${STAGEDIR}${PREFIX}", anyway.
Now files have correct permissions, owner and group in ${STAGEDIR};
however the group is lost in ${PREFIX} after "make install".
Is specifying "@group" in pkg-plist the only way to keep that?
bye & Thanks
av.
More information about the freebsd-ports
mailing list