diff options
Diffstat (limited to 'share/examples')
-rw-r--r-- | share/examples/Makefile | 37 | ||||
-rw-r--r-- | share/examples/etc/host.conf | 7 |
2 files changed, 44 insertions, 0 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile new file mode 100644 index 0000000..eadac57 --- /dev/null +++ b/share/examples/Makefile @@ -0,0 +1,37 @@ +# $Id$ +# +# Doing a make install builds /usr/share/examples +# +all clean cleandir depend lint tags: + +DIRS=sunrpc etc + +# Define SHARED to indicate whether you want symbolic links to the system +# source (``symlinks''), or a separate copy (``copies''); (latter useful +# in environments where it's not possible to keep /sys publicly readable) +SHARED?= copies + +beforeinstall: ${SHARED} + +copies: + @echo installing ${DESTDIR}/usr/share/examples + @rm -rf ${DESTDIR}/usr/share/examples + @-mkdir ${DESTDIR}/usr/share/examples + @tar cf - ${DIRS} | \ + (cd ${DESTDIR}/usr/share/examples; tar xpfB -); + @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples + @chmod -R a-w ${DESTDIR}/usr/share/examples + +symlinks: + @echo installing symlinks in ${DESTDIR}/usr/share/examples + @rm -rf ${DESTDIR}/usr/share/examples + @-mkdir ${DESTDIR}/usr/share/examples + @-for a in ${DIRS}; do \ + ln -s ${.CURDIR}/$$a ${DESTDIR}/usr/share/examples; \ + done + @chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/examples + @chmod -R a-w ${DESTDIR}/usr/share/examples + +.include <bsd.prog.mk> + + diff --git a/share/examples/etc/host.conf b/share/examples/etc/host.conf new file mode 100644 index 0000000..4c82560 --- /dev/null +++ b/share/examples/etc/host.conf @@ -0,0 +1,7 @@ +# $Id: host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp $ +# Default is to use the nameserver first +bind +# If that doesn't work, then try the /etc/hosts file +hosts +# If you have YP/NIS configured, uncomment the next line +# nis |