Merge pull request #15950 from rsalvaterra/lolcat
[feed/packages.git] / net / samba4 / Makefile
1 # Based partially on (wongsyrone/hbl0307106015) versions
2 include $(TOPDIR)/rules.mk
3
4 PKG_NAME:=samba
5 PKG_VERSION:=4.14.5
6 PKG_RELEASE:=$(AUTORELEASE)
7
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9 PKG_SOURCE_URL:= \
10 https://ftp.gwdg.de/pub/samba/stable/ \
11 https://ftp.heanet.ie/mirrors/ftp.samba.org/stable/ \
12 https://ftp.riken.jp/net/samba/samba/stable/ \
13 http://www.nic.funet.fi/index/samba/pub/samba/stable/ \
14 http://samba.mirror.bit.nl/samba/ftp/stable/ \
15 https://download.samba.org/pub/samba/stable/
16 PKG_HASH:=bb6ef5d2f16b85288d823578abc453d9a80514c42e5a2ea2c4e3c60dc42335c3
17
18 PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
19 PKG_LICENSE:=GPL-3.0-only
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:samba:samba
22
23 # samba4=(asn1_compile,compile_et) rpcsvc-proto=(rpcgen)
24 HOST_BUILD_DEPENDS:=python3/host rpcsvc-proto/host perl/host perl-parse-yapp/host
25 PKG_BUILD_DEPENDS:=samba4/host libtasn1/host
26
27 PKG_CONFIG_DEPENDS:= \
28 CONFIG_SAMBA4_SERVER_NETBIOS \
29 CONFIG_SAMBA4_SERVER_AVAHI \
30 CONFIG_SAMBA4_SERVER_VFS \
31 CONFIG_SAMBA4_SERVER_VFSX \
32 CONFIG_SAMBA4_SERVER_AD_DC \
33 CONFIG_PACKAGE_kmod-fs-btrfs \
34 CONFIG_PACKAGE_kmod-fs-xfs \
35 CONFIG_KERNEL_IO_URING
36
37 PYTHON3_PKG_BUILD:=0
38
39 include $(INCLUDE_DIR)/package.mk
40 include $(INCLUDE_DIR)/host-build.mk
41 include $(INCLUDE_DIR)/kernel.mk
42 include $(INCLUDE_DIR)/version.mk
43 include ../../lang/python/python3-host.mk
44 include ../../lang/python/python3-package.mk
45 include ../../lang/perl/perlver.mk
46
47 define Package/samba4/Default
48 SECTION:=net
49 CATEGORY:=Network
50 TITLE:=Samba $(PKG_VERSION)
51 URL:=https://www.samba.org/
52 endef
53
54 define Package/samba4/Default/description
55 The Samba software suite is a collection of programs that implements the
56 SMB/CIFS protocol for UNIX systems, allowing you to serve files and printers.
57
58 Samba 4 implements up-to protocol version SMB v3.1.1 (Win10), supports mDNS via AVAHI and a AD-DC setup via krb5.
59 NOTE: No cluster and printer support.
60 endef
61
62 define Package/samba4-libs
63 $(call Package/samba4/Default)
64 TITLE+= libs
65 DEPENDS:= +libtirpc +libreadline +libpopt +libcap +zlib +libgnutls +libtasn1 +libuuid +libopenssl +libpthread +KERNEL_IO_URING:liburing \
66 +PACKAGE_libpam:libpam \
67 +SAMBA4_SERVER_VFS:attr \
68 +SAMBA4_SERVER_AVAHI:libavahi-client \
69 +SAMBA4_SERVER_AD_DC:python3-cryptodome +SAMBA4_SERVER_AD_DC:libopenldap +SAMBA4_SERVER_AD_DC:jansson +SAMBA4_SERVER_AD_DC:libarchive +SAMBA4_SERVER_AD_DC:acl +SAMBA4_SERVER_AD_DC:attr
70 endef
71
72 define Package/samba4-server
73 $(call Package/samba4/Default)
74 TITLE+= server
75 DEPENDS:= +samba4-libs
76 CONFLICTS:=samba36-server
77 endef
78
79 define Package/samba4-server/description
80 installs: smbd (nmbd) smbpasswd pdbedit testparm (nmblookup) (smbcacls sharesec)
81 (samba samba-tool ntlm_auth samba-gpupdate samba_dnsupdate samba_kcc samba_spnupdate samba_upgradedns samba_downgrade_db)
82
83 This provides the basic fileserver service and is the minimum needed to serve file shares.
84 HINT: https://fitzcarraldoblog.wordpress.com/2016/10/17/a-correct-method-of-configuring-samba-for-browsing-smb-shares-in-a-home-network/
85 endef
86
87 define Package/samba4-server/config
88 select PACKAGE_wsdd2
89 source "$(SOURCE)/Config.in"
90 endef
91
92 define Package/samba4-client
93 $(call Package/samba4/Default)
94 TITLE+= client
95 DEPENDS:= +samba4-libs
96 endef
97
98 define Package/samba4-client/description
99 installs: cifsdd smbclient smbget
100
101 The smbclient program implements a simple ftp-like client for accessing SMB shares
102 endef
103
104 define Package/samba4-admin
105 $(call Package/samba4/Default)
106 TITLE+= admin tools
107 DEPENDS:= +samba4-libs
108 endef
109
110 define Package/samba4-admin/description
111 installs: net smbcontrol profiles rpcclient dbwrap_tool eventlogadm
112 ldbadd ldbdel ldbedit ldbmodify ldbrename ldbsearch
113 tdbbackup tdbdump tdbrestore tdbtool
114
115 Administration tools collection
116 endef
117
118 define Package/samba4-utils
119 $(call Package/samba4/Default)
120 TITLE+= utils
121 DEPENDS:= +samba4-libs
122 endef
123
124 define Package/samba4-utils/description
125 installs: smbstatus smbtree mvxattr smbtar smbcquotas
126
127 Utilities collection
128 endef
129
130 TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
131 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
132 # dont mess with sambas private rpath!
133 RSTRIP:=:
134
135 CONFIGURE_VARS += \
136 CPP="$(TARGET_CROSS)cpp" \
137 XSLTPROC=false \
138 WAF_NO_PREFORK=1
139
140 CONFIGURE_CMD = ./buildtools/bin/waf
141 HOST_CONFIGURE_CMD = ./buildtools/bin/waf
142
143 # Strip options that WAF configure script does not recognize
144 CONFIGURE_ARGS:=$(filter-out \
145 --target=% \
146 --host=% \
147 --build=% \
148 --program-prefix=% \
149 --program-suffix=% \
150 --disable-nls \
151 --disable-ipv6 \
152 , $(CONFIGURE_ARGS))
153
154 HOST_CONFIGURE_ARGS:=$(filter-out \
155 --target=% \
156 --host=% \
157 --build=% \
158 --program-prefix=% \
159 --program-suffix=% \
160 --disable-nls \
161 --disable-ipv6 \
162 , $(HOST_CONFIGURE_ARGS))
163
164 # Waf needs the "configure" argument
165 CONFIGURE_ARGS:=configure $(CONFIGURE_ARGS)
166 HOST_CONFIGURE_ARGS:=configure $(HOST_CONFIGURE_ARGS)
167
168 CONFIGURE_ARGS += \
169 --hostcc="$(HOSTCC)" \
170 --cross-compile \
171 --cross-answers=cross-answers.txt \
172 --disable-cups \
173 --disable-iprint \
174 --disable-cephfs \
175 --disable-fault-handling \
176 --disable-glusterfs \
177 --disable-spotlight \
178 --enable-fhs \
179 --without-automount \
180 --without-iconv \
181 --without-lttng \
182 --without-ntvfs-fileserver \
183 --without-pam \
184 --without-systemd \
185 --without-utmp \
186 --without-dmapi \
187 --without-fam \
188 --without-gettext \
189 --without-regedit \
190 --without-gpgme
191
192 HOST_CONFIGURE_ARGS += \
193 --hostcc="$(HOSTCC)" \
194 --disable-cups \
195 --disable-iprint \
196 --disable-cephfs \
197 --disable-fault-handling \
198 --disable-glusterfs \
199 --disable-spotlight \
200 --disable-rpath \
201 --disable-rpath-install \
202 --disable-rpath-private-install \
203 --enable-fhs \
204 --without-automount \
205 --without-iconv \
206 --without-lttng \
207 --without-ntvfs-fileserver \
208 --without-pam \
209 --without-systemd \
210 --without-utmp \
211 --without-dmapi \
212 --without-fam \
213 --without-gettext \
214 --without-regedit \
215 --without-gpgme
216
217 HOST_CONFIGURE_ARGS += --disable-avahi --without-quotas --without-acl-support --without-winbind \
218 --without-ad-dc --without-json --without-libarchive --disable-python --nopyc --nopyo \
219 --without-dnsupdate --without-ads --without-ldap --without-ldb-lmdb
220
221 # Optional AES-NI support - https://lists.samba.org/archive/samba-technical/2017-September/122738.html
222 # Support for Nettle wasn't comitted
223 ifdef CONFIG_TARGET_x86_64
224 CONFIGURE_ARGS += --accel-aes=intelaesni
225 else
226 CONFIGURE_ARGS += --accel-aes=none
227 endif
228
229 CONFIGURE_ARGS += \
230 --with-lockdir=/var/lock \
231 --with-logfilebase=/var/log \
232 --with-piddir=/var/run \
233 --with-privatedir=/etc/samba
234
235 # features
236 ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
237 CONFIGURE_ARGS += --with-quotas
238 else
239 CONFIGURE_ARGS += --without-quotas
240 endif
241 ifeq ($(CONFIG_SAMBA4_SERVER_AVAHI),y)
242 CONFIGURE_ARGS += --enable-avahi
243 else
244 CONFIGURE_ARGS += --disable-avahi
245 endif
246
247 ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
248 CONFIGURE_ARGS += --without-winbind --without-ldb-lmdb --with-acl-support
249 else
250 CONFIGURE_ARGS += --without-winbind --without-ads --without-ldap --without-ldb-lmdb --without-ad-dc \
251 --without-json --without-libarchive --disable-python --nopyc --nopyo --without-dnsupdate --without-acl-support
252 endif
253
254 SAMBA4_PDB_MODULES :=pdb_smbpasswd,pdb_tdbsam,
255 SAMBA4_AUTH_MODULES :=auth_builtin,auth_sam,auth_unix,
256 SAMBA4_VFS_MODULES :=vfs_default,
257 SAMBA4_VFS_MODULES_SHARED :=auth_script,
258 # always build if kernel supports io_uring
259 ifdef CONFIG_KERNEL_IO_URING
260 SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_io_uring,
261 endif
262 ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
263 SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_fruit,vfs_shadow_copy2,vfs_recycle,vfs_fake_perms,vfs_readonly,vfs_cap,vfs_offline,vfs_crossrename,vfs_catia,vfs_streams_xattr,vfs_xattr_tdb,vfs_default_quota,
264 ifdef CONFIG_PACKAGE_kmod-fs-btrfs
265 SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_btrfs,
266 endif
267 endif
268 ifeq ($(CONFIG_SAMBA4_SERVER_VFSX),y)
269 SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_virusfilter,vfs_shell_snap,vfs_commit,vfs_worm,vfs_netatalk,vfs_dirsort,vfs_fileid,
270 ifdef CONFIG_PACKAGE_kmod-fs-xfs
271 SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_linux_xfs_sgid,
272 endif
273 endif
274 ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
275 SAMBA4_PDB_MODULES :=$(SAMBA4_PDB_MODULES)pdb_samba_dsdb,pdb_ldapsam,
276 SAMBA4_AUTH_MODULES :=$(SAMBA4_AUTH_MODULES)auth_samba4,
277 SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_posixacl,
278 SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_audit,vfs_extd_audit,vfs_full_audit,vfs_acl_xattr,vfs_acl_tdb,
279 # vfs_zfsacl needs https://github.com/zfsonlinux/zfs/tree/master/include/sys/zfs_acl.h
280 # vfs_nfs4acl_xattr needs https://github.com/notriddle/libdrpc/blob/master/rpc/xdr.h
281 endif
282
283 SAMBA4_MODULES :=${SAMBA4_VFS_MODULES}${SAMBA4_AUTH_MODULES}${SAMBA4_PDB_MODULES}
284 SAMBA4_MODULES_SHARDED :=${SAMBA4_VFS_MODULES_SHARED}
285
286 CONFIGURE_ARGS += \
287 --with-static-modules=$(SAMBA4_MODULES)!DEFAULT,!FORCED \
288 --with-shared-modules=$(SAMBA4_MODULES_SHARDED)!DEFAULT,!FORCED
289
290 HOST_CONFIGURE_ARGS += \
291 --with-static-modules=!DEFAULT,!FORCED \
292 --with-shared-modules=!DEFAULT,!FORCED
293
294 # lib bundling
295 PY_VER:=$(PYTHON3_VERSION_MAJOR)$(PYTHON3_VERSION_MINOR)
296 # NOTE: bundle + make private, we want to avoid version configuration (build, link) conflicts
297 HOST_CONFIGURE_ARGS += --builtin-libraries=replace --nonshared-binary=asn1_compile,compile_et
298 SYSTEM_PRIVATE_BUNDLED_LIBS:=talloc,tevent,tevent-util,texpect,tdb,ldb,tdr,cmocka,replace,com_err
299 SYSTEM_BUNDLED_LIBS:=
300 PYTHON_BUNDLED_LIBS:=pytalloc-util.cpython-$(PY_VER),pyldb-util.cpython-$(PY_VER)
301 # CONFIGURE_ARGS += --builtin-libraries=talloc,tevent,tevent-util,texpect,tdb,ldb,tdr,cmocka,com_err
302 ifdef CONFIG_KERNEL_IO_URING
303 SYSTEM_BUNDLED_LIBS:=,uring
304 endif
305 ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
306 CONFIGURE_ARGS += --bundled-libraries=NONE,$(SYSTEM_PRIVATE_BUNDLED_LIBS)$(SYSTEM_BUNDLED_LIBS),$(PYTHON_BUNDLED_LIBS)
307 else
308 CONFIGURE_ARGS += --bundled-libraries=NONE,$(SYSTEM_PRIVATE_BUNDLED_LIBS)$(SYSTEM_BUNDLED_LIBS)
309 endif
310 CONFIGURE_ARGS += --private-libraries=$(SYSTEM_PRIVATE_BUNDLED_LIBS)
311
312 export COMPILE_ET=$(STAGING_DIR_HOSTPKG)/bin/compile_et_samba
313 export ASN1_COMPILE=$(STAGING_DIR_HOSTPKG)/bin/asn1_compile_samba
314
315 # make sure we use the hostpkg build toolset and we need to find host 'yapp'
316 HOST_CONFIGURE_VARS+= \
317 PATH="$(STAGING_DIR_HOSTPKG)/bin:$(STAGING_DIR_HOSTPKG)/usr/bin:$(PATH)"
318 CONFIGURE_VARS += \
319 PATH="$(STAGING_DIR_HOSTPKG)/bin:$(STAGING_DIR_HOSTPKG)/usr/bin:$(PATH)"
320
321 # we need hostpkg bin and target config
322 ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
323 CONFIGURE_VARS += \
324 PYTHON_CONFIG="$(STAGING_DIR)/host/bin/$(PYTHON3)-config"
325 endif
326
327 # we dont need GnuTLS for the host helpers
328 define Host/Prepare
329 $(call Host/Prepare/Default)
330 $(SED) 's,mandatory=True,mandatory=False,g' $(HOST_BUILD_DIR)/wscript_configure_system_gnutls
331 $(SED) 's,gnutls_version =.*,gnutls_version = gnutls_min_required_version,g' $(HOST_BUILD_DIR)/wscript_configure_system_gnutls
332 endef
333 define Host/Compile
334 (cd $(HOST_BUILD_DIR); \
335 ./buildtools/bin/waf build \
336 --targets=asn1_compile,compile_et \
337 )
338 endef
339
340 define Host/Install
341 $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
342 # add host tools suffix, prevent conflicts with krb5
343 $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/asn1_compile $(STAGING_DIR_HOSTPKG)/bin/asn1_compile_samba
344 $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/compile_et $(STAGING_DIR_HOSTPKG)/bin/compile_et_samba
345 endef
346
347 define Build/Prepare
348 $(Build/Prepare/Default)
349 ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),)
350 # un-bundle dnspython
351 $(SED) '/"dns.resolver":/d' $(PKG_BUILD_DIR)/third_party/wscript
352 # unbundle iso8601
353 $(SED) '/"iso8601":/d' $(PKG_BUILD_DIR)/third_party/wscript
354 endif
355 endef
356
357 define Build/Configure
358 $(CP) ./waf-cross-answers/$(ARCH).txt $(PKG_BUILD_DIR)/cross-answers.txt
359 echo 'Checking uname sysname type: "$(VERSION_DIST)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
360 echo 'Checking uname machine type: "$(ARCH)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
361 echo 'Checking uname release type: "$(LINUX_VERSION)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
362 echo 'Checking uname version type: "$(VERSION_DIST) Linux-$(LINUX_VERSION) $(shell date +%Y-%m-%d)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
363 # NOTE: special answers for freeBSD/CircleCI
364 echo 'checking for clnt_create(): OK' >> $(PKG_BUILD_DIR)/cross-answers.txt
365 $(call Build/Configure/Default)
366 endef
367
368 # Build via "waf install", avoid the make wrapper. (Samba logic is 'waf install' = build + install)
369 define Build/Compile
370 (cd $(PKG_BUILD_DIR); \
371 ./buildtools/bin/waf install \
372 --jobs=$(shell nproc) \
373 --destdir="$(PKG_INSTALL_DIR)" \
374 )
375 endef
376
377 # No default install see above
378 define Build/Install
379 endef
380
381 define Package/samba4-libs/install
382 $(INSTALL_DIR) $(1)/usr/lib
383 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
384 # rpath-install
385 $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba $(1)/usr/lib/
386 endef
387
388 define Package/samba4-client/install
389 $(INSTALL_DIR) $(1)/usr/bin
390 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{cifsdd,smbclient,smbget} $(1)/usr/bin/
391 endef
392
393 define Package/samba4-admin/install
394 $(INSTALL_DIR) $(1)/usr/bin
395 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{net,smbcontrol,profiles,rpcclient,dbwrap_tool} $(1)/usr/bin/
396 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{ldbadd,ldbdel,ldbedit,ldbmodify,ldbrename,ldbsearch} $(1)/usr/bin/
397 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{tdbbackup,tdbdump,tdbrestore,tdbtool} $(1)/usr/bin/
398 $(INSTALL_DIR) $(1)/usr/sbin
399 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/eventlogadm $(1)/usr/sbin/
400 endef
401
402 define Package/samba4-utils/install
403 $(INSTALL_DIR) $(1)/usr/bin
404 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{smbstatus,smbtree,mvxattr,smbtar} $(1)/usr/bin/
405 ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
406 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbcquotas $(1)/usr/bin/
407 endif
408 endef
409
410 define Package/samba4-server/install
411 $(INSTALL_DIR) $(1)/usr/bin
412 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{smbpasswd,pdbedit,testparm} $(1)/usr/bin/
413 $(INSTALL_DIR) $(1)/usr/sbin
414 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/smbd $(1)/usr/sbin/
415 ifeq ($(CONFIG_SAMBA4_SERVER_NETBIOS),y)
416 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nmbd $(1)/usr/sbin/
417 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmblookup $(1)/usr/bin/
418 endif
419 ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
420 $(INSTALL_DIR) $(1)/usr/lib
421 $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PYTHON3) $(1)/usr/lib/
422 $(INSTALL_DIR) $(1)/usr/share/
423 $(CP) $(PKG_INSTALL_DIR)/usr/share/samba $(1)/usr/share/
424 # fix wrong hardcoded python3 location
425 $(SED) '1s,^#!/.*python3.*,#!/usr/bin/python3,' $(PKG_INSTALL_DIR)/usr/bin/samba-tool
426 $(SED) '1s,^#!/.*python3.*,#!/usr/bin/python3,' $(PKG_INSTALL_DIR)/usr/sbin/{samba-gpupdate,samba_dnsupdate,samba_kcc,samba_spnupdate,samba_upgradedns,samba_downgrade_db}
427 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{samba-tool,ntlm_auth,oLschema2ldif} $(1)/usr/bin/
428 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sharesec,smbcacls} $(1)/usr/bin/
429 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{samba,samba-gpupdate,samba_dnsupdate,samba_kcc,samba_spnupdate,samba_upgradedns,samba_downgrade_db} $(1)/usr/sbin/
430 endif
431 $(INSTALL_DIR) $(1)/etc/config $(1)/etc/samba $(1)/etc/init.d
432 $(INSTALL_CONF) ./files/samba.config $(1)/etc/config/samba4
433 $(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/samba
434 $(INSTALL_BIN) ./files/samba.init $(1)/etc/init.d/samba4
435 endef
436
437 define Package/samba4-server/conffiles
438 /etc/config/samba4
439 /etc/samba/smb.conf.template
440 /etc/samba/smb.conf
441 /etc/samba/smbpasswd
442 /etc/samba/secrets.tdb
443 /etc/samba/passdb.tdb
444 /etc/samba/lmhosts
445 /etc/nsswitch.conf
446 /etc/krb5.conf
447 endef
448
449 $(eval $(call HostBuild))
450 $(eval $(call BuildPackage,samba4-libs))
451 $(eval $(call BuildPackage,samba4-server))
452 $(eval $(call BuildPackage,samba4-client))
453 $(eval $(call BuildPackage,samba4-admin))
454 $(eval $(call BuildPackage,samba4-utils))