how to install into staging area correctly?

2013-12-06 Thread Vick Khera
I have a port locally that does this to install a file so other ports that
depend on this can have something to depend on from the file system.

do-install:
${CP} /dev/null ${LOCALBASE}/etc/rwde-base-installed


Lately it seems that the ports does a staging step, and the above file is
not found when building the package for that process. I changed it to


do-install:
${CP} /dev/null ${STAGEDIR}${LOCALBASE}/etc/rwde-base-installed


Is this safe to use ${STAGEDIR} unconditionally like this? Should I be
using a different variable to install my file in the do-install step?
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install into staging area correctly?

2013-12-06 Thread Michael Gmelin
On Fri, 6 Dec 2013 11:06:59 -0500
Vick Khera vi...@khera.org wrote:

 I have a port locally that does this to install a file so other ports
 that depend on this can have something to depend on from the file
 system.
 
 do-install:
 ${CP} /dev/null ${LOCALBASE}/etc/rwde-base-installed
 
 
 Lately it seems that the ports does a staging step, and the above
 file is not found when building the package for that process. I
 changed it to
 
 
 do-install:
 ${CP} /dev/null
 ${STAGEDIR}${LOCALBASE}/etc/rwde-base-installed
 
 
 Is this safe to use ${STAGEDIR} unconditionally like this? Should I be
 using a different variable to install my file in the do-install step?

I think you should use ${STAGEDIR}${PREFIX}, not ${LOCALBASE}.

-- 
Michael Gmelin
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install into staging area correctly?

2013-12-06 Thread Vick Khera
On Fri, Dec 6, 2013 at 11:30 AM, Michael Gmelin free...@grem.de wrote:

 I think you should use ${STAGEDIR}${PREFIX}, not ${LOCALBASE}.


Thanks. that makes more sense.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install into staging area correctly?

2013-12-06 Thread Guido Falsi

On 12/06/13 17:38, Vick Khera wrote:

On Fri, Dec 6, 2013 at 11:30 AM, Michael Gmelin free...@grem.de wrote:


I think you should use ${STAGEDIR}${PREFIX}, not ${LOCALBASE}.



Thanks. that makes more sense.


Also, instead of ${CP} you should use the INSTALL_ macros:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/install.html

--
Guido Falsi m...@madpilot.net
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: how to install into staging area correctly?

2013-12-06 Thread Max Brazhnikov
On Fri, 06 Dec 2013 11:06:59 -0500 Vick Khera wrote:
 I have a port locally that does this to install a file so other ports that
 depend on this can have something to depend on from the file system.

You don't need any file, ports can depend on pkgname [1]:

p5-Spiffy=0.26:${PORTSDIR}/devel/p5-Spiffy

[1] 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-depend.html

Cheers,
Max
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org