diff options
author | gjb <gjb@FreeBSD.org> | 2016-05-10 00:51:50 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2016-05-10 00:51:50 +0000 |
commit | 214f3b8bf1669c26162fb1f48f3321812c59a24a (patch) | |
tree | c5f1a54de70f91bb8560424f32338dfc1151d1fa /share/examples/Makefile | |
parent | b3ef210088efd911da25b4f4848ebda83869d069 (diff) | |
download | FreeBSD-src-214f3b8bf1669c26162fb1f48f3321812c59a24a.zip FreeBSD-src-214f3b8bf1669c26162fb1f48f3321812c59a24a.tar.gz |
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
Diffstat (limited to 'share/examples/Makefile')
-rw-r--r-- | share/examples/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile index f926107..03b2952 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 |