diff options
author | bp <bp@FreeBSD.org> | 2001-04-13 12:11:19 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2001-04-13 12:11:19 +0000 |
commit | 592766811bc0a1b2062232e01733cb8e9e26d8be (patch) | |
tree | e0706a76b4f5a64a10eb0a3ad4cb5806124c0c81 /sys | |
parent | f9931b90b2954412c7cd6c13e6b52762719dad83 (diff) | |
download | FreeBSD-src-592766811bc0a1b2062232e01733cb8e9e26d8be.zip FreeBSD-src-592766811bc0a1b2062232e01733cb8e9e26d8be.tar.gz |
Add smbfs module. Currently it includes smbfs, netsmb and DES parts.
Kernel should be compiled with options LIBMCHAIN and LIBICONV.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/modules/Makefile | 2 | ||||
-rw-r--r-- | sys/modules/smbfs/Makefile | 62 |
2 files changed, 63 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 0b504bc..e17f6b7 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -19,7 +19,7 @@ SUBDIR= 3dfx accf_data accf_http agp aha amr an aue \ # XXX some of these can move to the general case when de-i386'ed .if ${MACHINE_ARCH} == "i386" SUBDIR+=aac aic ar asr atspeaker bktr coff el fpu gnufpu ibcs2 linprocfs mly \ - pecoff ray s3 splash sr streams vesa wi + pecoff ray s3 smbfs splash sr streams vesa wi .endif .if ${MACHINE} == "pc98" diff --git a/sys/modules/smbfs/Makefile b/sys/modules/smbfs/Makefile new file mode 100644 index 0000000..800a634 --- /dev/null +++ b/sys/modules/smbfs/Makefile @@ -0,0 +1,62 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../crypto/des \ + ${.CURDIR}/../../kern \ + ${.CURDIR}/../../libkern \ + ${.CURDIR}/../../netsmb \ + ${.CURDIR}/../../fs/smbfs + +KMOD= smbfs + +SRCS= vnode_if.h \ + opt_inet.h opt_ipx.h \ + opt_netsmb.h opt_smbfs.h opt_vmpage.h \ + iconv_converter_if.h \ + md4c.c \ + smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \ + smb_usr.c smb_crypt.c smb_iod.c \ + smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \ + smbfs_subr.c smbfs_smb.c + +NOMAN=true + +NETSMBCRYPTO=yes + +.if defined(NETSMBCRYPTO) +SRCS+= des_ecb.c des_setkey.c +.endif + +# Build with IPX support (1|0) +SMB_IPX?= 0 + +# Build with INET support (1|0) +SMB_INET?= 1 + +CFLAGS+= ${KDEBUG} + +.if defined(VNPRINT) +CFLAGS+= -DVNPRINT +.endif + +opt_inet.h: + touch ${.TARGET} +.if ${SMB_INET} > 0 + echo "#define INET 1" > ${.TARGET} +.endif + +opt_ipx.h: + touch ${.TARGET} +.if ${SMB_IPX} > 0 + echo "#define IPX 1" > ${.TARGET} +.endif + +opt_netsmb.h: + echo "#define NETSMB 1" > ${.TARGET} +.if defined(NETSMBCRYPTO) + echo "#define NETSMBCRYPTO 1" >> ${.TARGET} +.endif + +unload: + @(if kldunload ${KMOD}; then true; else true; fi) + +.include <bsd.kmod.mk> |