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.

454 lines
16 KiB

  1. # Based partially on (wongsyrone/hbl0307106015) versions
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=samba
  4. PKG_VERSION:=4.14.5
  5. PKG_RELEASE:=$(AUTORELEASE)
  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:=bb6ef5d2f16b85288d823578abc453d9a80514c42e5a2ea2c4e3c60dc42335c3
  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. CONFIG_KERNEL_IO_URING
  31. PYTHON3_PKG_BUILD:=0
  32. include $(INCLUDE_DIR)/package.mk
  33. include $(INCLUDE_DIR)/host-build.mk
  34. include $(INCLUDE_DIR)/kernel.mk
  35. include $(INCLUDE_DIR)/version.mk
  36. include ../../lang/python/python3-host.mk
  37. include ../../lang/python/python3-package.mk
  38. include ../../lang/perl/perlver.mk
  39. define Package/samba4/Default
  40. SECTION:=net
  41. CATEGORY:=Network
  42. TITLE:=Samba $(PKG_VERSION)
  43. URL:=https://www.samba.org/
  44. endef
  45. define Package/samba4/Default/description
  46. The Samba software suite is a collection of programs that implements the
  47. SMB/CIFS protocol for UNIX systems, allowing you to serve files and printers.
  48. Samba 4 implements up-to protocol version SMB v3.1.1 (Win10), supports mDNS via AVAHI and a AD-DC setup via krb5.
  49. NOTE: No cluster and printer support.
  50. endef
  51. define Package/samba4-libs
  52. $(call Package/samba4/Default)
  53. TITLE+= libs
  54. DEPENDS:= +libtirpc +libreadline +libpopt +libcap +zlib +libgnutls +libtasn1 +libuuid +libopenssl +libpthread +KERNEL_IO_URING:liburing \
  55. +PACKAGE_libpam:libpam \
  56. +SAMBA4_SERVER_VFS:attr \
  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. # always build if kernel supports io_uring
  221. ifdef CONFIG_KERNEL_IO_URING
  222. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_io_uring,
  223. endif
  224. ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
  225. 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,
  226. ifdef CONFIG_PACKAGE_kmod-fs-btrfs
  227. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_btrfs,
  228. endif
  229. endif
  230. ifeq ($(CONFIG_SAMBA4_SERVER_VFSX),y)
  231. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_virusfilter,vfs_shell_snap,vfs_commit,vfs_worm,vfs_netatalk,vfs_dirsort,vfs_fileid,
  232. ifdef CONFIG_PACKAGE_kmod-fs-xfs
  233. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_linux_xfs_sgid,
  234. endif
  235. endif
  236. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  237. SAMBA4_PDB_MODULES :=$(SAMBA4_PDB_MODULES)pdb_samba_dsdb,pdb_ldapsam,
  238. SAMBA4_AUTH_MODULES :=$(SAMBA4_AUTH_MODULES)auth_samba4,
  239. SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_posixacl,
  240. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_audit,vfs_extd_audit,vfs_full_audit,vfs_acl_xattr,vfs_acl_tdb,
  241. # vfs_zfsacl needs https://github.com/zfsonlinux/zfs/tree/master/include/sys/zfs_acl.h
  242. # vfs_nfs4acl_xattr needs https://github.com/notriddle/libdrpc/blob/master/rpc/xdr.h
  243. endif
  244. SAMBA4_MODULES :=${SAMBA4_VFS_MODULES}${SAMBA4_AUTH_MODULES}${SAMBA4_PDB_MODULES}
  245. SAMBA4_MODULES_SHARDED :=${SAMBA4_VFS_MODULES_SHARED}
  246. CONFIGURE_ARGS += \
  247. --with-static-modules=$(SAMBA4_MODULES)!DEFAULT,!FORCED \
  248. --with-shared-modules=$(SAMBA4_MODULES_SHARDED)!DEFAULT,!FORCED
  249. HOST_CONFIGURE_ARGS += \
  250. --with-static-modules=!DEFAULT,!FORCED \
  251. --with-shared-modules=!DEFAULT,!FORCED
  252. # lib bundling
  253. PY_VER:=$(PYTHON3_VERSION_MAJOR)$(PYTHON3_VERSION_MINOR)
  254. # NOTE: bundle + make private, we want to avoid version configuration (build, link) conflicts
  255. HOST_CONFIGURE_ARGS += --builtin-libraries=replace --nonshared-binary=asn1_compile,compile_et
  256. SYSTEM_PRIVATE_BUNDLED_LIBS:=talloc,tevent,tevent-util,texpect,tdb,ldb,tdr,cmocka,replace,com_err
  257. SYSTEM_BUNDLED_LIBS:=
  258. PYTHON_BUNDLED_LIBS:=pytalloc-util.cpython-$(PY_VER),pyldb-util.cpython-$(PY_VER)
  259. # CONFIGURE_ARGS += --builtin-libraries=talloc,tevent,tevent-util,texpect,tdb,ldb,tdr,cmocka,com_err
  260. ifdef CONFIG_KERNEL_IO_URING
  261. SYSTEM_BUNDLED_LIBS:=,uring
  262. endif
  263. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  264. CONFIGURE_ARGS += --bundled-libraries=NONE,$(SYSTEM_PRIVATE_BUNDLED_LIBS)$(SYSTEM_BUNDLED_LIBS),$(PYTHON_BUNDLED_LIBS)
  265. else
  266. CONFIGURE_ARGS += --bundled-libraries=NONE,$(SYSTEM_PRIVATE_BUNDLED_LIBS)$(SYSTEM_BUNDLED_LIBS)
  267. endif
  268. CONFIGURE_ARGS += --private-libraries=$(SYSTEM_PRIVATE_BUNDLED_LIBS)
  269. export COMPILE_ET=$(STAGING_DIR_HOSTPKG)/bin/compile_et_samba
  270. export ASN1_COMPILE=$(STAGING_DIR_HOSTPKG)/bin/asn1_compile_samba
  271. # make sure we use the hostpkg build toolset and we need to find host 'yapp'
  272. HOST_CONFIGURE_VARS+= \
  273. PATH="$(STAGING_DIR_HOSTPKG)/bin:$(STAGING_DIR_HOSTPKG)/usr/bin:$(PATH)"
  274. CONFIGURE_VARS += \
  275. PATH="$(STAGING_DIR_HOSTPKG)/bin:$(STAGING_DIR_HOSTPKG)/usr/bin:$(PATH)"
  276. # we need hostpkg bin and target config
  277. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  278. CONFIGURE_VARS += \
  279. PYTHON_CONFIG="$(STAGING_DIR)/host/bin/$(PYTHON3)-config"
  280. endif
  281. # we dont need GnuTLS for the host helpers
  282. define Host/Prepare
  283. $(call Host/Prepare/Default)
  284. $(SED) 's,mandatory=True,mandatory=False,g' $(HOST_BUILD_DIR)/wscript_configure_system_gnutls
  285. $(SED) 's,gnutls_version =.*,gnutls_version = gnutls_min_required_version,g' $(HOST_BUILD_DIR)/wscript_configure_system_gnutls
  286. endef
  287. define Host/Compile
  288. (cd $(HOST_BUILD_DIR); \
  289. ./buildtools/bin/waf build \
  290. --targets=asn1_compile,compile_et \
  291. )
  292. endef
  293. define Host/Install
  294. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
  295. # add host tools suffix, prevent conflicts with krb5
  296. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/asn1_compile $(STAGING_DIR_HOSTPKG)/bin/asn1_compile_samba
  297. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/compile_et $(STAGING_DIR_HOSTPKG)/bin/compile_et_samba
  298. endef
  299. define Build/Prepare
  300. $(Build/Prepare/Default)
  301. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),)
  302. # un-bundle dnspython
  303. $(SED) '/"dns.resolver":/d' $(PKG_BUILD_DIR)/third_party/wscript
  304. # unbundle iso8601
  305. $(SED) '/"iso8601":/d' $(PKG_BUILD_DIR)/third_party/wscript
  306. endif
  307. endef
  308. define Build/Configure
  309. $(CP) ./waf-cross-answers/$(ARCH).txt $(PKG_BUILD_DIR)/cross-answers.txt
  310. echo 'Checking uname sysname type: "$(VERSION_DIST)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  311. echo 'Checking uname machine type: "$(ARCH)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  312. echo 'Checking uname release type: "$(LINUX_VERSION)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  313. echo 'Checking uname version type: "$(VERSION_DIST) Linux-$(LINUX_VERSION) $(shell date +%Y-%m-%d)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  314. # NOTE: special answers for freeBSD/CircleCI
  315. echo 'checking for clnt_create(): OK' >> $(PKG_BUILD_DIR)/cross-answers.txt
  316. $(call Build/Configure/Default)
  317. endef
  318. # Build via "waf install", avoid the make wrapper. (Samba logic is 'waf install' = build + install)
  319. define Build/Compile
  320. (cd $(PKG_BUILD_DIR); \
  321. ./buildtools/bin/waf install \
  322. --jobs=$(shell nproc) \
  323. --destdir="$(PKG_INSTALL_DIR)" \
  324. )
  325. endef
  326. # No default install see above
  327. define Build/Install
  328. endef
  329. define Package/samba4-libs/install
  330. $(INSTALL_DIR) $(1)/usr/lib
  331. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  332. # rpath-install
  333. $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba $(1)/usr/lib/
  334. endef
  335. define Package/samba4-client/install
  336. $(INSTALL_DIR) $(1)/usr/bin
  337. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{cifsdd,smbclient,smbget} $(1)/usr/bin/
  338. endef
  339. define Package/samba4-admin/install
  340. $(INSTALL_DIR) $(1)/usr/bin
  341. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{net,smbcontrol,profiles,rpcclient,dbwrap_tool} $(1)/usr/bin/
  342. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{ldbadd,ldbdel,ldbedit,ldbmodify,ldbrename,ldbsearch} $(1)/usr/bin/
  343. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{tdbbackup,tdbdump,tdbrestore,tdbtool} $(1)/usr/bin/
  344. $(INSTALL_DIR) $(1)/usr/sbin
  345. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/eventlogadm $(1)/usr/sbin/
  346. endef
  347. define Package/samba4-utils/install
  348. $(INSTALL_DIR) $(1)/usr/bin
  349. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{smbstatus,smbtree,mvxattr,smbtar} $(1)/usr/bin/
  350. ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
  351. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbcquotas $(1)/usr/bin/
  352. endif
  353. endef
  354. define Package/samba4-server/install
  355. $(INSTALL_DIR) $(1)/usr/bin
  356. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{smbpasswd,pdbedit,testparm} $(1)/usr/bin/
  357. $(INSTALL_DIR) $(1)/usr/sbin
  358. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/smbd $(1)/usr/sbin/
  359. ifeq ($(CONFIG_SAMBA4_SERVER_NETBIOS),y)
  360. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nmbd $(1)/usr/sbin/
  361. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmblookup $(1)/usr/bin/
  362. endif
  363. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  364. $(INSTALL_DIR) $(1)/usr/lib
  365. $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PYTHON3) $(1)/usr/lib/
  366. $(INSTALL_DIR) $(1)/usr/share/
  367. $(CP) $(PKG_INSTALL_DIR)/usr/share/samba $(1)/usr/share/
  368. # fix wrong hardcoded python3 location
  369. $(SED) '1s,^#!/.*python3.*,#!/usr/bin/python3,' $(PKG_INSTALL_DIR)/usr/bin/samba-tool
  370. $(SED) '1s,^#!/.*python3.*,#!/usr/bin/python3,' $(PKG_INSTALL_DIR)/usr/sbin/{samba-gpupdate,samba_dnsupdate,samba_kcc,samba_spnupdate,samba_upgradedns,samba_downgrade_db}
  371. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{samba-tool,ntlm_auth,oLschema2ldif} $(1)/usr/bin/
  372. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sharesec,smbcacls} $(1)/usr/bin/
  373. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{samba,samba-gpupdate,samba_dnsupdate,samba_kcc,samba_spnupdate,samba_upgradedns,samba_downgrade_db} $(1)/usr/sbin/
  374. endif
  375. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/samba $(1)/etc/init.d
  376. $(INSTALL_CONF) ./files/samba.config $(1)/etc/config/samba4
  377. $(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/samba
  378. $(INSTALL_BIN) ./files/samba.init $(1)/etc/init.d/samba4
  379. endef
  380. define Package/samba4-server/conffiles
  381. /etc/config/samba4
  382. /etc/samba/smb.conf.template
  383. /etc/samba/smb.conf
  384. /etc/samba/smbpasswd
  385. /etc/samba/secrets.tdb
  386. /etc/samba/passdb.tdb
  387. /etc/samba/lmhosts
  388. /etc/nsswitch.conf
  389. /etc/krb5.conf
  390. endef
  391. $(eval $(call HostBuild))
  392. $(eval $(call BuildPackage,samba4-libs))
  393. $(eval $(call BuildPackage,samba4-server))
  394. $(eval $(call BuildPackage,samba4-client))
  395. $(eval $(call BuildPackage,samba4-admin))
  396. $(eval $(call BuildPackage,samba4-utils))