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.

434 lines
15 KiB

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