summaryrefslogtreecommitdiffstats
path: root/rules/samba.in
blob: 61409c276d3e277decc3ce60a0a03096c2596a0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# samba configuration

menuconfig SAMBA
	bool
	prompt "samba                         "
	select LIBC_NSL
	select LIBC_RESOLV
	help
	  Samba is an Open Source/Free Software suite that has, since
	  1992, provided file and print services to all manner of
	  SMB/CIFS clients, including the numerous versions of Microsoft
	  Windows operating systems. Samba is freely available under the
	  GNU General Public License

	  See http://www.samba.org for details.

# Optional Features:
#   --enable-static=PKGS    build static libraries default=no
#   --enable-shared=PKGS    build shared libraries default=yes
#   --enable-pie            Turn on pie support if available (default=yes)
#   --enable-debug          Turn on compiler debugging information (default=no)
#   --enable-socket-wrapper         Turn on socket wrapper library (default=no)
#   --enable-developer      Turn on developer warnings and debugging (default=no)
#   --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
#   --enable-dmalloc        Enable heap debugging default=no


#   --enable-iprint         Turn on iPrint support (default=yes if cups is yes)
#
# Optional Packages:
#   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
#   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
#   --with-fhs              Use FHS-compliant paths (default=no)
#   --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
#   --with-rootsbindir=DIR  Which directory to use for root sbin ($ac_default_prefix/sbin)
#   --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
#   --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
#   --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
#   --with-configdir=DIR    Where to put configuration files ($libdir)
#   --with-logfilebase=DIR  Where to put log files ($VARDIR)
#   --with-libdir=DIR       Where to put libdir ($libdir)
#   --with-pammodulesdir=DIR  Which directory to use for PAM modules ($ac_default_prefix/$libdir/security)
#   --with-mandir=DIR       Where to put man pages ($mandir)
#   --with-cfenc=HEADERDIR  Use internal CoreFoundation encoding API
# 			  for optimization (Mac OS X/Darwin only)
#   --with-selftest-prefix=DIR    The prefix where make test will be runned ($selftest_prefix)
#   --with-smbtorture4-path=PATH    The path to a samba4 smbtorture for make test (none)
#   --with-profiling-data   Include gathering source code profile information (default=no)
#   --with-readline=DIR     Look for readline include/libs in DIR (default=auto)
#   --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
#   --with-smbwrapper       Include SMB wrapper support (default=no)
#   --with-afs              Include AFS clear-text auth support (default=no)
#   --with-fake-kaserver    Include AFS fake-kaserver support (default=no)
#   --with-vfs-afsacl       Include AFS to NT ACL mapping module (default=no)
#   --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
#   --with-ldap             LDAP support (default yes)
#   --with-ads              Active Directory support (default auto)
#   --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
#   --with-automount        Include automount support (default=no)
#   --with-smbmount         Include smbmount (Linux only) support (default=no)
#   --with-cifsmount        Include mount.cifs and umount.cifs (Linux only) support (default=yes)
#   --with-pam              Include PAM support (default=no)
#   --with-pam_smbpass      Build PAM module for authenticating against passdb backends (default=no)
#   --with-nisplus-home     Include NISPLUS_HOME support (default=no)
#   --with-syslog           Include experimental SYSLOG support (default=no)
#   --with-quotas           Include disk-quota support (default=no)
#   --with-sys-quotas       Include lib/sysquotas.c support (default=auto)
#   --with-utmp             Include utmp accounting (default, if supported by OS)
#   --with-libmsrpc         Build the libmsrpc shared library (default=yes if shared libs supported)
#   --with-libsmbclient     Build the libsmbclient shared library (default=yes if shared libs supported)
#   --with-libsmbsharemodes     Build the libsmbsharemodes shared library (default=yes if shared libs supported)
#   --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
#   --with-cluster-support  Enable cluster extensions (default=no)
#   --with-acl-support      Include ACL support (default=no)
#   --with-aio-support      Include asynchronous io support (default=no)
#   --with-sendfile-support Check for sendfile support (default=yes)
#   --with-winbind          Build winbind (default, if supported by OS)
#   --with-included-popt    use bundled popt library, not from system
#   --with-included-iniparser    use bundled iniparser library, not from system
#   --with-python=PYTHONNAME  build Python libraries
#   --with-static-modules=MODULES  Comma-seperated list of names of modules to statically link in
#   --with-shared-modules=MODULES  Comma-seperated list of names of modules to build shared

	config SAMBA_COMMON
		bool
		depends on SAMBA
		default y
		prompt "Samba common files"
		help
		  Install smbd daemon on target.

	config ROOTFS_ETC_SAMBA_CONFIG
		bool
		depends on SAMBA
		depends on SAMBA_SERVER
	choice
		prompt "Kind of samba config file"
		depends on SAMBA
		depends on SAMBA_COMMON
		default ROOTFS_ETC_SAMBA_CONFIG_DEFAULT

		config ROOTFS_ETC_SAMBA_CONFIG_DEFAULT
			bool
			prompt "Use generic"
			help
			  Installs a generic /etc/samba/smb.conf file.

		config ROOTFS_ETC_SAMBA_CONFIG_USER
			bool
			prompt "User defined"
			help
			  This uses a user defined config file. Will use
			  the file out of projectroot/etc/samba/smb.conf
	endchoice

	config SAMBA_SERVER
		bool
		depends on SAMBA
		select SAMBA_COMMON
		prompt "Samba server"
		help
		  Installs samba server. ATTENTION: You need rw access to your
		  rootfs before starting the samba server!

	config ROOTFS_ETC_SAMBA_SECRETS_USER
		bool
		depends on SAMBA
		depends on SAMBA_SERVER
		prompt "User defined smb password Database"
		help
		  This will install the /etc/samba/secrets.tdb from
		  projectroot/etc/samba/secrets.tdb. If you wish to run samba
		  in user security level and use you own userdatabase. You will
		  have to enable this. If you say n here. The samba server will
		  generates his own secrets.tdb after initialisation.

	config ROOTFS_ETC_INITD_SAMBA
		bool
		depends on SAMBA
		depends on SAMBA_SERVER
		select BB_CONFIG_START_STOP_DAEMON      if BUSYBOX
		default y
		choice
			prompt "Kind of samba start script"
			depends on SAMBA
			depends on SAMBA_SERVER
			default ROOTFS_ETC_INITD_SAMBA_DEFAULT

			config ROOTFS_ETC_INITD_SAMBA_DEFAULT
				bool
				prompt "Use generic"
				help
			  	  Installs a generic /etc/init.d/samba file.

			config ROOTFS_ETC_INITD_SAMBA_USER
				bool
				prompt "User defined"
				help
				  This uses a user defined init file. Will use
				  the file out of projectroot/etc/init.d/samba
		endchoice

	config SAMBA_CLIENT
		bool
		depends on SAMBA
		select SAMBA_COMMON
		prompt "Samba client"
		help
		  Installs some client components of the Samba suite.

	config SAMBA_LIBCLIENT
		bool
		depends on SAMBA
		select SAMBA_COMMON
		prompt "Samba client library"
		help
		  Installs the libsmbclient shared library.

	config SAMBA_SMBFS
		bool
		depends on SAMBA
		select SAMBA_COMMON
		prompt "Samba file system"
		help
		  Enables the sytem to mount windows share via SMB protocol

	config SAMBA_CUPS
		bool
		depends on SAMBA
		depends on BROKEN
		prompt "cups support"
		help
		  Turn on CUPS support