Enable directory creation with FILESDIR.
This is part of packaging base work. Reviewed by: will Approved by: bapt (mentor), allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D15130
This commit is contained in:
parent
c54e0abbc6
commit
c74ace92a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333407
@ -67,7 +67,7 @@ STAGE_AS_${file:T}= ${${group}NAME_${file:T}}
|
|||||||
STAGE_DIR.${file:T}= ${STAGE_OBJTOP}${${group}DIR_${file:T}}
|
STAGE_DIR.${file:T}= ${STAGE_OBJTOP}${${group}DIR_${file:T}}
|
||||||
stage_as.${file:T}: ${file}
|
stage_as.${file:T}: ${file}
|
||||||
|
|
||||||
installfiles-${group}: _${group}INS_${file:T}
|
installfiles-${group}: installdirs-${group} _${group}INS_${file:T}
|
||||||
_${group}INS_${file:T}: ${file}
|
_${group}INS_${file:T}: ${file}
|
||||||
${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN_${.ALLSRC:T}} \
|
${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN_${.ALLSRC:T}} \
|
||||||
-g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \
|
-g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \
|
||||||
@ -77,10 +77,24 @@ _${group}INS_${file:T}: ${file}
|
|||||||
_${group}FILES+= ${file}
|
_${group}FILES+= ${file}
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
|
||||||
|
installdirs-${group}:
|
||||||
|
@echo installing dirs ${group}DIR ${${group}DIR}
|
||||||
|
.for dir in ${${group}DIR}
|
||||||
|
.if defined(NO_ROOT)
|
||||||
|
${INSTALL} ${${group}TAG_ARGS} -d ${DESTDIR}${dir}
|
||||||
|
.else
|
||||||
|
${INSTALL} ${${group}TAG_ARGS} -d -o ${DIROWN} -g ${DIRGRP} \
|
||||||
|
-m ${DIRMODE} ${DESTDIR}${dir}
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
|
||||||
|
|
||||||
.if !empty(_${group}FILES)
|
.if !empty(_${group}FILES)
|
||||||
stage_files.${group}: ${_${group}FILES}
|
stage_files.${group}: ${_${group}FILES}
|
||||||
|
|
||||||
installfiles-${group}: _${group}INS
|
installfiles-${group}: installdirs-${group} _${group}INS
|
||||||
_${group}INS: ${_${group}FILES}
|
_${group}INS: ${_${group}FILES}
|
||||||
.if defined(${group}NAME)
|
.if defined(${group}NAME)
|
||||||
${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \
|
${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \
|
||||||
|
@ -75,6 +75,13 @@
|
|||||||
# CONFMODE Configuration file mode. [644]
|
# CONFMODE Configuration file mode. [644]
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
# DIROWN Directory owner. [root]
|
||||||
|
#
|
||||||
|
# DIRGRP Directory group. [wheel]
|
||||||
|
#
|
||||||
|
# DIRMODE Directory mode. [755]
|
||||||
|
#
|
||||||
|
#
|
||||||
# DOCDIR Base path for system documentation (e.g. PSD, USD,
|
# DOCDIR Base path for system documentation (e.g. PSD, USD,
|
||||||
# handbook, FAQ etc.). [${SHAREDIR}/doc]
|
# handbook, FAQ etc.). [${SHAREDIR}/doc]
|
||||||
#
|
#
|
||||||
@ -186,6 +193,10 @@ MANOWN?= ${SHAREOWN}
|
|||||||
MANGRP?= ${SHAREGRP}
|
MANGRP?= ${SHAREGRP}
|
||||||
MANMODE?= ${NOBINMODE}
|
MANMODE?= ${NOBINMODE}
|
||||||
|
|
||||||
|
DIROWN?= root
|
||||||
|
DIRGRP?= wheel
|
||||||
|
DIRMODE?= 755
|
||||||
|
|
||||||
DOCDIR?= ${SHAREDIR}/doc
|
DOCDIR?= ${SHAREDIR}/doc
|
||||||
DOCOWN?= ${SHAREOWN}
|
DOCOWN?= ${SHAREOWN}
|
||||||
DOCGRP?= ${SHAREGRP}
|
DOCGRP?= ${SHAREGRP}
|
||||||
|
Loading…
Reference in New Issue
Block a user