distfiles location

Hello all,

I'm trying to get the actual distfiles location in the user environment. I've tried ${PORTSDIR}${DISTDIR} which defaults to /usr/ports/distfiles. However, in some environment like poudriere that would be different. How do I get the distfiles location specified in the environment?

Thanks,
Tommy
 
In poudriere.conf:
Code:
# If set the given directory will be used for the distfiles
# This allows to share the distfiles between jails and ports tree
# If this is "no", poudriere must be supplied a ports tree that already has
# the required distfiles.
DISTFILES_CACHE=/usr/ports/distfiles
 
Hi SirDice,

I apologize for not being clear. I was trying to get distfiles location in the user environment from within the Makefile for a port.

Thanks,
Tommy
 
I have the port configured to download multiple files and extract the primary for updating. The other files need to go into
Makefile:
${WRKSRC}/lib
or
Makefile:
${STAGEDIR}${APP_HOME}/lib
for packaging. Since I wasn't able to find in the porter's handbook on how to copy the other files nor are they in ${WRKDIR}, this is what I have to copy the files
Makefile:
post-patch:
.for file in ${DISTFILES}
.    if "${file:C/^(.*)(\:.*)/\1/}" != "${EXTRACT_ONLY}"
        ${CP} ${PORTSDIR}${DISTDIR}/${DIST_SUBDIR}/${file:C/^(.*)(\:.*)/\1/} ${WRKSRC}/lib
.    endif
.endfor
It errors because of file not found in poudriere due to the distfiles location is not the default /usr/ports/distfiles
 
Back
Top