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.

433 lines
15 KiB

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