You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

446 lines
15 KiB

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