From 3becbb252c733d3d09172a34d7d00d27f84d0e86 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Fri, 14 Dec 2001 12:17:03 +0000 Subject: [PATCH] Arrange for the smbfs examples to be installed. We don't install dot.nsmbrc or smbfs.sh.sample, since we already install the former as /etc/nsmb.conf and the latter is unnecessary, since boot-time mounts can be arranged directly within /etc/fstab without fear of breaking the boot when the smbfs port (now unnecessary is removed). The MFC reminder below is subject to approval priod to 4.5-RELEASE. MFC after: 1 week --- share/examples/Makefile | 5 +++-- share/examples/smbfs/Makefile | 5 +++++ share/examples/smbfs/print/Makefile | 13 +++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 share/examples/smbfs/Makefile create mode 100644 share/examples/smbfs/print/Makefile diff --git a/share/examples/Makefile b/share/examples/Makefile index 1f1b7e4fbd6..35f35464782 100644 --- a/share/examples/Makefile +++ b/share/examples/Makefile @@ -3,7 +3,8 @@ # Doing a make install builds /usr/share/examples DIRS!= for i in *; do \ - if test -d $$i -a $$i != CVS -a $$i != ipfilter; then \ + if test -d $$i -a $$i != CVS -a \ + $$i != ipfilter -a $$i != smbfs; then \ echo $$i; \ fi; \ done @@ -40,7 +41,7 @@ etc-examples: .endif .if ${SHARED} != "symlinks" -SUBDIR= ipfilter +SUBDIR= ipfilter smbfs .endif .include diff --git a/share/examples/smbfs/Makefile b/share/examples/smbfs/Makefile new file mode 100644 index 00000000000..daa83557cf5 --- /dev/null +++ b/share/examples/smbfs/Makefile @@ -0,0 +1,5 @@ +# $FreeBSD$ + +SUBDIR= print + +.include diff --git a/share/examples/smbfs/print/Makefile b/share/examples/smbfs/print/Makefile new file mode 100644 index 00000000000..9db1f9447ea --- /dev/null +++ b/share/examples/smbfs/print/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +NOOBJ= noobj +BINDIR= /usr/share/examples + +DISTFILES= lj6l ljspool printcap.sample tolj + +beforeinstall: + cd ${.CURDIR}/../../../../contrib/smbfs/examples/print; \ + ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \ + ${DISTFILES} ${DESTDIR}${BINDIR}/smbfs/print + +.include