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.

453 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. 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
  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. XSLTPROC=false \
  111. WAF_NO_PREFORK=1
  112. CONFIGURE_CMD = ./buildtools/bin/waf
  113. HOST_CONFIGURE_CMD = ./buildtools/bin/waf
  114. # Strip options that WAF configure script does not recognize
  115. CONFIGURE_ARGS:=$(filter-out \
  116. --target=% \
  117. --host=% \
  118. --build=% \
  119. --program-prefix=% \
  120. --program-suffix=% \
  121. --disable-nls \
  122. --disable-ipv6 \
  123. , $(CONFIGURE_ARGS))
  124. HOST_CONFIGURE_ARGS:=$(filter-out \
  125. --target=% \
  126. --host=% \
  127. --build=% \
  128. --program-prefix=% \
  129. --program-suffix=% \
  130. --disable-nls \
  131. --disable-ipv6 \
  132. , $(HOST_CONFIGURE_ARGS))
  133. # Waf needs the "configure" argument
  134. CONFIGURE_ARGS:=configure $(CONFIGURE_ARGS)
  135. HOST_CONFIGURE_ARGS:=configure $(HOST_CONFIGURE_ARGS)
  136. CONFIGURE_ARGS += \
  137. --hostcc="$(HOSTCC)" \
  138. --cross-compile \
  139. --cross-answers=cross-answers.txt \
  140. --disable-cups \
  141. --disable-iprint \
  142. --disable-cephfs \
  143. --disable-fault-handling \
  144. --disable-glusterfs \
  145. --disable-spotlight \
  146. --enable-fhs \
  147. --without-automount \
  148. --without-iconv \
  149. --without-lttng \
  150. --without-ntvfs-fileserver \
  151. --without-pam \
  152. --without-systemd \
  153. --without-utmp \
  154. --without-dmapi \
  155. --without-fam \
  156. --without-gettext \
  157. --without-regedit \
  158. --without-gpgme
  159. HOST_CONFIGURE_ARGS += \
  160. --hostcc="$(HOSTCC)" \
  161. --disable-cups \
  162. --disable-iprint \
  163. --disable-cephfs \
  164. --disable-fault-handling \
  165. --disable-glusterfs \
  166. --disable-spotlight \
  167. --disable-rpath \
  168. --disable-rpath-install \
  169. --disable-rpath-private-install \
  170. --enable-fhs \
  171. --without-automount \
  172. --without-iconv \
  173. --without-lttng \
  174. --without-ntvfs-fileserver \
  175. --without-pam \
  176. --without-systemd \
  177. --without-utmp \
  178. --without-dmapi \
  179. --without-fam \
  180. --without-gettext \
  181. --without-regedit \
  182. --without-gpgme
  183. HOST_CONFIGURE_ARGS += --disable-avahi --without-quotas --without-acl-support --without-winbind \
  184. --without-ad-dc --without-json --without-libarchive --disable-python --nopyc --nopyo \
  185. --without-dnsupdate --without-ads --without-ldap --without-ldb-lmdb
  186. # Optional AES-NI support - https://lists.samba.org/archive/samba-technical/2017-September/122738.html
  187. # Support for Nettle wasn't comitted
  188. ifdef CONFIG_TARGET_x86_64
  189. CONFIGURE_ARGS += --accel-aes=intelaesni
  190. else
  191. CONFIGURE_ARGS += --accel-aes=none
  192. endif
  193. CONFIGURE_ARGS += \
  194. --with-lockdir=/var/lock \
  195. --with-logfilebase=/var/log \
  196. --with-piddir=/var/run \
  197. --with-privatedir=/etc/samba
  198. # features
  199. ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
  200. CONFIGURE_ARGS += --with-quotas
  201. else
  202. CONFIGURE_ARGS += --without-quotas
  203. endif
  204. ifeq ($(CONFIG_SAMBA4_SERVER_AVAHI),y)
  205. CONFIGURE_ARGS += --enable-avahi
  206. else
  207. CONFIGURE_ARGS += --disable-avahi
  208. endif
  209. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  210. CONFIGURE_ARGS += --without-winbind --without-ldb-lmdb --with-acl-support
  211. else
  212. CONFIGURE_ARGS += --without-winbind --without-ads --without-ldap --without-ldb-lmdb --without-ad-dc \
  213. --without-json --without-libarchive --disable-python --nopyc --nopyo --without-dnsupdate --without-acl-support
  214. endif
  215. SAMBA4_PDB_MODULES :=pdb_smbpasswd,pdb_tdbsam,
  216. SAMBA4_AUTH_MODULES :=auth_builtin,auth_sam,auth_unix,
  217. SAMBA4_VFS_MODULES :=vfs_default,
  218. SAMBA4_VFS_MODULES_SHARED :=auth_script,
  219. # always build if kernel supports io_uring
  220. ifdef CONFIG_KERNEL_IO_URING
  221. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_io_uring,
  222. endif
  223. ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
  224. 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,
  225. ifdef CONFIG_PACKAGE_kmod-fs-btrfs
  226. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_btrfs,
  227. endif
  228. endif
  229. ifeq ($(CONFIG_SAMBA4_SERVER_VFSX),y)
  230. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_virusfilter,vfs_shell_snap,vfs_commit,vfs_worm,vfs_netatalk,vfs_dirsort,vfs_fileid,
  231. ifdef CONFIG_PACKAGE_kmod-fs-xfs
  232. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_linux_xfs_sgid,
  233. endif
  234. endif
  235. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  236. SAMBA4_PDB_MODULES :=$(SAMBA4_PDB_MODULES)pdb_samba_dsdb,pdb_ldapsam,
  237. SAMBA4_AUTH_MODULES :=$(SAMBA4_AUTH_MODULES)auth_samba4,
  238. SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_posixacl,
  239. SAMBA4_VFS_MODULES_SHARED :=$(SAMBA4_VFS_MODULES_SHARED)vfs_audit,vfs_extd_audit,vfs_full_audit,vfs_acl_xattr,vfs_acl_tdb,
  240. # vfs_zfsacl needs https://github.com/zfsonlinux/zfs/tree/master/include/sys/zfs_acl.h
  241. # vfs_nfs4acl_xattr needs https://github.com/notriddle/libdrpc/blob/master/rpc/xdr.h
  242. endif
  243. SAMBA4_MODULES :=${SAMBA4_VFS_MODULES}${SAMBA4_AUTH_MODULES}${SAMBA4_PDB_MODULES}
  244. SAMBA4_MODULES_SHARDED :=${SAMBA4_VFS_MODULES_SHARED}
  245. CONFIGURE_ARGS += \
  246. --with-static-modules=$(SAMBA4_MODULES)!DEFAULT,!FORCED \
  247. --with-shared-modules=$(SAMBA4_MODULES_SHARDED)!DEFAULT,!FORCED
  248. HOST_CONFIGURE_ARGS += \
  249. --with-static-modules=!DEFAULT,!FORCED \
  250. --with-shared-modules=!DEFAULT,!FORCED
  251. # lib bundling
  252. PY_VER:=$(PYTHON3_VERSION_MAJOR)$(PYTHON3_VERSION_MINOR)
  253. # NOTE: bundle + make private, we want to avoid version configuration (build, link) conflicts
  254. HOST_CONFIGURE_ARGS += --builtin-libraries=replace --nonshared-binary=asn1_compile,compile_et
  255. SYSTEM_PRIVATE_BUNDLED_LIBS:=talloc,tevent,tevent-util,texpect,tdb,ldb,tdr,cmocka,replace,com_err
  256. SYSTEM_BUNDLED_LIBS:=
  257. PYTHON_BUNDLED_LIBS:=pytalloc-util.cpython-$(PY_VER),pyldb-util.cpython-$(PY_VER)
  258. # CONFIGURE_ARGS += --builtin-libraries=talloc,tevent,tevent-util,texpect,tdb,ldb,tdr,cmocka,com_err
  259. ifdef CONFIG_KERNEL_IO_URING
  260. SYSTEM_BUNDLED_LIBS:=,uring
  261. endif
  262. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  263. CONFIGURE_ARGS += --bundled-libraries=NONE,$(SYSTEM_PRIVATE_BUNDLED_LIBS)$(SYSTEM_BUNDLED_LIBS),$(PYTHON_BUNDLED_LIBS)
  264. else
  265. CONFIGURE_ARGS += --bundled-libraries=NONE,$(SYSTEM_PRIVATE_BUNDLED_LIBS)$(SYSTEM_BUNDLED_LIBS)
  266. endif
  267. CONFIGURE_ARGS += --private-libraries=$(SYSTEM_PRIVATE_BUNDLED_LIBS)
  268. export COMPILE_ET=$(STAGING_DIR_HOSTPKG)/bin/compile_et_samba
  269. export ASN1_COMPILE=$(STAGING_DIR_HOSTPKG)/bin/asn1_compile_samba
  270. # make sure we use the hostpkg build toolset and we need to find host 'yapp'
  271. HOST_CONFIGURE_VARS+= \
  272. PATH="$(STAGING_DIR_HOSTPKG)/bin:$(STAGING_DIR_HOSTPKG)/usr/bin:$(PATH)"
  273. CONFIGURE_VARS += \
  274. PATH="$(STAGING_DIR_HOSTPKG)/bin:$(STAGING_DIR_HOSTPKG)/usr/bin:$(PATH)"
  275. # we need hostpkg bin and target config
  276. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  277. CONFIGURE_VARS += \
  278. PYTHON_CONFIG="$(STAGING_DIR)/host/bin/$(PYTHON3)-config"
  279. endif
  280. # we dont need GnuTLS for the host helpers
  281. define Host/Prepare
  282. $(call Host/Prepare/Default)
  283. $(SED) 's,mandatory=True,mandatory=False,g' $(HOST_BUILD_DIR)/wscript_configure_system_gnutls
  284. $(SED) 's,gnutls_version =.*,gnutls_version = gnutls_min_required_version,g' $(HOST_BUILD_DIR)/wscript_configure_system_gnutls
  285. endef
  286. define Host/Compile
  287. (cd $(HOST_BUILD_DIR); \
  288. ./buildtools/bin/waf build \
  289. --targets=asn1_compile,compile_et \
  290. )
  291. endef
  292. define Host/Install
  293. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
  294. # add host tools suffix, prevent conflicts with krb5
  295. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/asn1_compile $(STAGING_DIR_HOSTPKG)/bin/asn1_compile_samba
  296. $(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/compile_et $(STAGING_DIR_HOSTPKG)/bin/compile_et_samba
  297. endef
  298. define Build/Prepare
  299. $(Build/Prepare/Default)
  300. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),)
  301. # un-bundle dnspython
  302. $(SED) '/"dns.resolver":/d' $(PKG_BUILD_DIR)/third_party/wscript
  303. # unbundle iso8601
  304. $(SED) '/"iso8601":/d' $(PKG_BUILD_DIR)/third_party/wscript
  305. endif
  306. endef
  307. define Build/Configure
  308. $(CP) ./waf-cross-answers/$(ARCH).txt $(PKG_BUILD_DIR)/cross-answers.txt
  309. echo 'Checking uname sysname type: "$(VERSION_DIST)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  310. echo 'Checking uname machine type: "$(ARCH)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  311. echo 'Checking uname release type: "$(LINUX_VERSION)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  312. echo 'Checking uname version type: "$(VERSION_DIST) Linux-$(LINUX_VERSION) $(shell date +%Y-%m-%d)"' >> $(PKG_BUILD_DIR)/cross-answers.txt
  313. # NOTE: special answers for freeBSD/CircleCI
  314. echo 'checking for clnt_create(): OK' >> $(PKG_BUILD_DIR)/cross-answers.txt
  315. $(call Build/Configure/Default)
  316. endef
  317. # Build via "waf install", avoid the make wrapper. (Samba logic is 'waf install' = build + install)
  318. define Build/Compile
  319. (cd $(PKG_BUILD_DIR); \
  320. ./buildtools/bin/waf install \
  321. --jobs=$(shell nproc) \
  322. --destdir="$(PKG_INSTALL_DIR)" \
  323. )
  324. endef
  325. # No default install see above
  326. define Build/Install
  327. endef
  328. define Package/samba4-libs/install
  329. $(INSTALL_DIR) $(1)/usr/lib
  330. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  331. # rpath-install
  332. $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba $(1)/usr/lib/
  333. endef
  334. define Package/samba4-client/install
  335. $(INSTALL_DIR) $(1)/usr/bin
  336. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{cifsdd,smbclient,smbget} $(1)/usr/bin/
  337. endef
  338. define Package/samba4-admin/install
  339. $(INSTALL_DIR) $(1)/usr/bin
  340. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{net,smbcontrol,profiles,rpcclient,dbwrap_tool} $(1)/usr/bin/
  341. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{ldbadd,ldbdel,ldbedit,ldbmodify,ldbrename,ldbsearch} $(1)/usr/bin/
  342. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{tdbbackup,tdbdump,tdbrestore,tdbtool} $(1)/usr/bin/
  343. $(INSTALL_DIR) $(1)/usr/sbin
  344. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/eventlogadm $(1)/usr/sbin/
  345. endef
  346. define Package/samba4-utils/install
  347. $(INSTALL_DIR) $(1)/usr/bin
  348. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{smbstatus,smbtree,mvxattr,smbtar} $(1)/usr/bin/
  349. ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y)
  350. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/smbcquotas $(1)/usr/bin/
  351. endif
  352. endef
  353. define Package/samba4-server/install
  354. $(INSTALL_DIR) $(1)/usr/bin
  355. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{smbpasswd,pdbedit,testparm} $(1)/usr/bin/
  356. $(INSTALL_DIR) $(1)/usr/sbin
  357. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/smbd $(1)/usr/sbin/
  358. ifeq ($(CONFIG_SAMBA4_SERVER_NETBIOS),y)
  359. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nmbd $(1)/usr/sbin/
  360. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nmblookup $(1)/usr/bin/
  361. endif
  362. ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y)
  363. $(INSTALL_DIR) $(1)/usr/lib
  364. $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PYTHON3) $(1)/usr/lib/
  365. $(INSTALL_DIR) $(1)/usr/share/
  366. $(CP) $(PKG_INSTALL_DIR)/usr/share/samba $(1)/usr/share/
  367. # fix wrong hardcoded python3 location
  368. $(SED) '1s,^#!/.*python3.*,#!/usr/bin/python3,' $(PKG_INSTALL_DIR)/usr/bin/samba-tool
  369. $(SED) '1s,^#!/.*python3.*,#!/usr/bin/python3,' $(PKG_INSTALL_DIR)/usr/sbin/{samba-gpupdate,samba_dnsupdate,samba_kcc,samba_spnupdate,samba_upgradedns,samba_downgrade_db}
  370. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{samba-tool,ntlm_auth,oLschema2ldif} $(1)/usr/bin/
  371. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sharesec,smbcacls} $(1)/usr/bin/
  372. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{samba,samba-gpupdate,samba_dnsupdate,samba_kcc,samba_spnupdate,samba_upgradedns,samba_downgrade_db} $(1)/usr/sbin/
  373. endif
  374. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/samba $(1)/etc/init.d
  375. $(INSTALL_CONF) ./files/samba.config $(1)/etc/config/samba4
  376. $(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/samba
  377. $(INSTALL_BIN) ./files/samba.init $(1)/etc/init.d/samba4
  378. endef
  379. define Package/samba4-server/conffiles
  380. /etc/config/samba4
  381. /etc/samba/smb.conf.template
  382. /etc/samba/smb.conf
  383. /etc/samba/smbpasswd
  384. /etc/samba/secrets.tdb
  385. /etc/samba/passdb.tdb
  386. /etc/samba/lmhosts
  387. /etc/nsswitch.conf
  388. /etc/krb5.conf
  389. endef
  390. $(eval $(call HostBuild))
  391. $(eval $(call BuildPackage,samba4-libs))
  392. $(eval $(call BuildPackage,samba4-server))
  393. $(eval $(call BuildPackage,samba4-client))
  394. $(eval $(call BuildPackage,samba4-admin))
  395. $(eval $(call BuildPackage,samba4-utils))