From a5921bc3653e2e286715e6fe8d473ec0d02da38c Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Tue, 10 May 2016 00:51:50 +0000 Subject: 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 --- share/examples/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'share/examples/Makefile') 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 +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 -- cgit v1.2.3