aboutsummaryrefslogtreecommitdiff
path: root/share/examples/Makefile
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-05-10 00:51:50 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-05-10 00:51:50 +0000
commita5921bc3653e2e286715e6fe8d473ec0d02da38c (patch)
treec5f1a54de70f91bb8560424f32338dfc1151d1fa /share/examples/Makefile
parent381fcf101dcedbe13df2d886d2532375245a59ce (diff)
Update share/examples/* to properly install /usr/share/examples.
As result of this, a new examples package is now created. Note, this is only effective with 'SHARED=copies' (the default), as the 'SHARED=symlinks' mechanism will create a symlink to the source tree version of the file(s). Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=299293
Diffstat (limited to 'share/examples/Makefile')
-rw-r--r--share/examples/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile
index f92610786e6e..03b295286380 100644
--- a/share/examples/Makefile
+++ b/share/examples/Makefile
@@ -4,6 +4,15 @@
.include <src.opts.mk>
+PACKAGE=examples
+FILESDIR= ${SHAREDIR}/examples
+
+.for _XFILE in ${XFILES}
+FILESGROUPS+= ${_XFILE}
+PACKAGE_${_XFILE}?=examples
+${_XFILE}DIR= ${SHAREDIR}/examples/${_XFILE:H}
+.endfor
+
LDIRS= BSD_daemon \
FreeBSD_version \
IPv6 \
@@ -232,7 +241,7 @@ copies:
mtree -deU ${MTREE_FOLLOWS_SYMLINKS} \
-f ${.CURDIR}/../../etc/mtree/BSD.usr.dist -p ${DESTDIR}/usr
.for file in ${XFILES}
- ${INSTALL} -T package=${PACKAGE_${file}:Uruntime} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
+ ${INSTALL} -T package=${PACKAGE_${file}:Uexamples} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
${.CURDIR}/${file} ${DESTDIR}${BINDIR}/${file}
.endfor