On 2020/04/13 17:20, Denis Fondras wrote:
> On Mon, Apr 13, 2020 at 08:29:23AM -0600, j...@bitminer.ca wrote:
> > Hi Denis,
> > 
> > I think there is still an issue with the nimble install (thanks for
> > that by the way, I was thinking of this myself):
> > 
> > > do-install:
> > >   ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
> > >   ${INSTALL_PROGRAM} ${WRKSRC}/bin/nim ${PREFIX}/bin
> > > + ${INSTALL_PROGRAM} ${WRKSRC}/bin/nimble ${PREFIX}/bin
> > >   ${INSTALL_DATA_DIR} ${PREFIX}/lib/nim
> > >   cp -R ${WRKSRC}/lib/* ${PREFIX}/lib/nim
> > >   chown -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/nim
> > >   ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nim
> > >   ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/nim
> > > + ${INSTALL_DATA_DIR} ${WRKINST}/etc/nim
> > > + ${INSTALL_DATA} ${WRKSRC}/config/*.cfg ${WRKINST}/etc/nim
> > 
> > The right-hand-side of ${INSTALL_DATA} or _DIR should include ${PREFIX}
> > not ${WRKINST}, no?
> > 
> 
> I don't know what I am doing, this is very "trial-and-error".
> What I noticed is that using ${WRKINST} allows to copy files to /etc instead 
> of
> /usr/local/etc.
> 

They aren't included in the package though. Those files are already handled
by copying them to share/examples and then @sample'd to ${SYSCONFDIR}/nim.cfg 
etc.
in the PLIST.

Reply via email to