summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.files.mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-03-05 12:39:18 +0000
committerbapt <bapt@FreeBSD.org>2015-03-05 12:39:18 +0000
commit06736b2230c5200ae83b6241f1030b1e752b47c6 (patch)
tree610b937ac3e1f1b76281f28e0803d75c01014909 /share/mk/bsd.files.mk
parent78dacb171d1f10f763824fd8eec2ff2d084aacc6 (diff)
downloadFreeBSD-src-06736b2230c5200ae83b6241f1030b1e752b47c6.zip
FreeBSD-src-06736b2230c5200ae83b6241f1030b1e752b47c6.tar.gz
Allow to tag the METALOG per file group
Diffstat (limited to 'share/mk/bsd.files.mk')
-rw-r--r--share/mk/bsd.files.mk21
1 files changed, 11 insertions, 10 deletions
diff --git a/share/mk/bsd.files.mk b/share/mk/bsd.files.mk
index a8b6bfc..7d0770a 100644
--- a/share/mk/bsd.files.mk
+++ b/share/mk/bsd.files.mk
@@ -13,13 +13,6 @@ FILESGROUPS?= FILES
buildfiles: ${${group}}
.endfor
-.if defined(NO_ROOT)
-.if !defined(TAGS) || ! ${TAGS:Mpackage=*}
-TAGS+= package=${PACKAGE:Uruntime}
-.endif
-TAG_ARGS= -T ${TAGS:[*]:S/ /,/g}
-.endif
-
all: buildfiles
.for group in ${FILESGROUPS}
@@ -31,6 +24,14 @@ ${group}GRP?= ${SHAREGRP}
${group}MODE?= ${SHAREMODE}
${group}DIR?= ${BINDIR}
+.if defined(NO_ROOT)
+.if !defined(${group}TAGS) || ! ${${group}TAGS:Mpackage=*}
+${group}TAGS+= package=${${group}PACKAGE:Uruntime}
+.endif
+${group}TAG_ARGS= -T ${${group}TAGS:[*]:S/ /,/g}
+.endif
+
+
_${group}FILES=
.for file in ${${group}}
.if defined(${group}OWN_${file:T}) || defined(${group}GRP_${file:T}) || \
@@ -47,7 +48,7 @@ ${group}NAME_${file:T}?= ${file:T}
.endif
installfiles-${group}: _${group}INS_${file:T}
_${group}INS_${file:T}: ${file}
- ${INSTALL} ${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}} \
${.ALLSRC} \
${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}}
@@ -59,11 +60,11 @@ _${group}FILES+= ${file}
installfiles-${group}: _${group}INS
_${group}INS: ${_${group}FILES}
.if defined(${group}NAME)
- ${INSTALL} ${TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \
+ ${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \
-m ${${group}MODE} ${.ALLSRC} \
${DESTDIR}${${group}DIR}/${${group}NAME}
.else
- ${INSTALL} ${TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \
+ ${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN} -g ${${group}GRP} \
-m ${${group}MODE} ${.ALLSRC} ${DESTDIR}${${group}DIR}
.endif
.endif
OpenPOWER on IntegriCloud