summaryrefslogtreecommitdiffstats
path: root/share/examples
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-12-14 12:17:03 +0000
committersheldonh <sheldonh@FreeBSD.org>2001-12-14 12:17:03 +0000
commit7897c278e033495df5edd766f1b896e9c738b712 (patch)
tree8dc9d839f697f120a4bddcdd94729c9c272a97d8 /share/examples
parent551d694f64492d4841014ae147153c9ca632408c (diff)
downloadFreeBSD-src-7897c278e033495df5edd766f1b896e9c738b712.zip
FreeBSD-src-7897c278e033495df5edd766f1b896e9c738b712.tar.gz
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 <re@FreeBSD.org> approval priod to 4.5-RELEASE. MFC after: 1 week
Diffstat (limited to 'share/examples')
-rw-r--r--share/examples/Makefile5
-rw-r--r--share/examples/smbfs/Makefile5
-rw-r--r--share/examples/smbfs/print/Makefile13
3 files changed, 21 insertions, 2 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile
index 1f1b7e4..35f3546 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 <bsd.subdir.mk>
diff --git a/share/examples/smbfs/Makefile b/share/examples/smbfs/Makefile
new file mode 100644
index 0000000..daa8355
--- /dev/null
+++ b/share/examples/smbfs/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR= print
+
+.include <bsd.subdir.mk>
diff --git a/share/examples/smbfs/print/Makefile b/share/examples/smbfs/print/Makefile
new file mode 100644
index 0000000..9db1f94
--- /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 <bsd.prog.mk>
OpenPOWER on IntegriCloud