From a099df69b3904ce40631448a08d56e77c7c8958b Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 21 May 2018 13:47:52 +0800 Subject: [PATCH] add samba 4.8.x and luci-app-samba4 packages (please update feeds --- feeds.conf.default | 3 +- package/lean/luci-app-samba4/Makefile | 14 + .../luasrc/controller/samba4.lua | 16 + .../luasrc/model/cbi/samba4.lua | 96 ++++++ package/lean/luci-app-samba4/po/ca/samba4.po | 103 ++++++ package/lean/luci-app-samba4/po/cs/samba4.po | 91 ++++++ package/lean/luci-app-samba4/po/de/samba4.po | 95 ++++++ package/lean/luci-app-samba4/po/el/samba4.po | 86 +++++ package/lean/luci-app-samba4/po/en/samba4.po | 90 ++++++ package/lean/luci-app-samba4/po/es/samba4.po | 100 ++++++ package/lean/luci-app-samba4/po/fr/samba4.po | 92 ++++++ package/lean/luci-app-samba4/po/he/samba4.po | 81 +++++ package/lean/luci-app-samba4/po/hu/samba4.po | 92 ++++++ package/lean/luci-app-samba4/po/it/samba4.po | 95 ++++++ package/lean/luci-app-samba4/po/ja/samba4.po | 91 ++++++ package/lean/luci-app-samba4/po/ms/samba4.po | 80 +++++ package/lean/luci-app-samba4/po/no/samba4.po | 80 +++++ package/lean/luci-app-samba4/po/pl/samba4.po | 91 ++++++ .../lean/luci-app-samba4/po/pt-br/samba4.po | 101 ++++++ package/lean/luci-app-samba4/po/pt/samba4.po | 101 ++++++ package/lean/luci-app-samba4/po/ro/samba4.po | 90 ++++++ package/lean/luci-app-samba4/po/ru/samba4.po | 96 ++++++ package/lean/luci-app-samba4/po/sk/samba4.po | 81 +++++ package/lean/luci-app-samba4/po/sv/samba4.po | 83 +++++ .../luci-app-samba4/po/templates/samba4.pot | 74 +++++ package/lean/luci-app-samba4/po/tr/samba4.po | 81 +++++ package/lean/luci-app-samba4/po/uk/samba4.po | 92 ++++++ package/lean/luci-app-samba4/po/vi/samba4.po | 104 ++++++ .../lean/luci-app-samba4/po/zh-cn/samba4.po | 94 ++++++ .../lean/luci-app-samba4/po/zh-tw/samba4.po | 94 ++++++ package/lean/samba4/Config.in | 108 +++++++ package/lean/samba4/Makefile | 297 ++++++++++++++++++ package/lean/samba4/files/samba.config | 7 + package/lean/samba4/files/samba.init | 193 ++++++++++++ package/lean/samba4/files/smb.conf.template | 92 ++++++ .../samba4/patches/001-samba-4.4.0-pam.patch | 29 ++ .../002-samba-4.6.2-netdb_defines.patch | 19 ++ .../samba4/patches/003-dnsserver-4.7.0.patch | 19 ++ .../patches/004-samba-4.7.4-no_ads.patch | 22 ++ .../010-source3-msgsock-nvram-fix.patch | 20 ++ .../011-source4-msgsock-nvram-fix.patch | 11 + .../patches/012-makefile-targets-fix.patch | 19 ++ ...rt-target-module-while-cross-compile.patch | 58 ++++ .../101-do-not-check-xsltproc-manpages.patch | 43 +++ target/linux/x86/Makefile | 2 +- 45 files changed, 3424 insertions(+), 2 deletions(-) create mode 100644 package/lean/luci-app-samba4/Makefile create mode 100644 package/lean/luci-app-samba4/luasrc/controller/samba4.lua create mode 100644 package/lean/luci-app-samba4/luasrc/model/cbi/samba4.lua create mode 100644 package/lean/luci-app-samba4/po/ca/samba4.po create mode 100644 package/lean/luci-app-samba4/po/cs/samba4.po create mode 100644 package/lean/luci-app-samba4/po/de/samba4.po create mode 100644 package/lean/luci-app-samba4/po/el/samba4.po create mode 100644 package/lean/luci-app-samba4/po/en/samba4.po create mode 100644 package/lean/luci-app-samba4/po/es/samba4.po create mode 100644 package/lean/luci-app-samba4/po/fr/samba4.po create mode 100644 package/lean/luci-app-samba4/po/he/samba4.po create mode 100644 package/lean/luci-app-samba4/po/hu/samba4.po create mode 100644 package/lean/luci-app-samba4/po/it/samba4.po create mode 100644 package/lean/luci-app-samba4/po/ja/samba4.po create mode 100644 package/lean/luci-app-samba4/po/ms/samba4.po create mode 100644 package/lean/luci-app-samba4/po/no/samba4.po create mode 100644 package/lean/luci-app-samba4/po/pl/samba4.po create mode 100644 package/lean/luci-app-samba4/po/pt-br/samba4.po create mode 100644 package/lean/luci-app-samba4/po/pt/samba4.po create mode 100644 package/lean/luci-app-samba4/po/ro/samba4.po create mode 100644 package/lean/luci-app-samba4/po/ru/samba4.po create mode 100644 package/lean/luci-app-samba4/po/sk/samba4.po create mode 100644 package/lean/luci-app-samba4/po/sv/samba4.po create mode 100644 package/lean/luci-app-samba4/po/templates/samba4.pot create mode 100644 package/lean/luci-app-samba4/po/tr/samba4.po create mode 100644 package/lean/luci-app-samba4/po/uk/samba4.po create mode 100644 package/lean/luci-app-samba4/po/vi/samba4.po create mode 100644 package/lean/luci-app-samba4/po/zh-cn/samba4.po create mode 100644 package/lean/luci-app-samba4/po/zh-tw/samba4.po create mode 100644 package/lean/samba4/Config.in create mode 100644 package/lean/samba4/Makefile create mode 100644 package/lean/samba4/files/samba.config create mode 100644 package/lean/samba4/files/samba.init create mode 100644 package/lean/samba4/files/smb.conf.template create mode 100644 package/lean/samba4/patches/001-samba-4.4.0-pam.patch create mode 100644 package/lean/samba4/patches/002-samba-4.6.2-netdb_defines.patch create mode 100644 package/lean/samba4/patches/003-dnsserver-4.7.0.patch create mode 100644 package/lean/samba4/patches/004-samba-4.7.4-no_ads.patch create mode 100644 package/lean/samba4/patches/010-source3-msgsock-nvram-fix.patch create mode 100644 package/lean/samba4/patches/011-source4-msgsock-nvram-fix.patch create mode 100644 package/lean/samba4/patches/012-makefile-targets-fix.patch create mode 100644 package/lean/samba4/patches/100-do-not-import-target-module-while-cross-compile.patch create mode 100644 package/lean/samba4/patches/101-do-not-check-xsltproc-manpages.patch diff --git a/feeds.conf.default b/feeds.conf.default index 6a1e674da..715917c79 100644 --- a/feeds.conf.default +++ b/feeds.conf.default @@ -1,4 +1,5 @@ -src-git packages https://git.openwrt.org/feed/packages.git^1b73f267eae2dedc18969b70ed7c5d9b02288bac +#src-git packages https://git.openwrt.org/feed/packages.git^1b73f267eae2dedc18969b70ed7c5d9b02288bac +src-git packages https://github.com/openwrt/packages.git src-git luci https://git.openwrt.org/project/luci.git^7d55be315d758b2a40494e732d7bdc300ee15c00 src-git routing https://git.openwrt.org/feed/routing.git^ba5d2fc76e1cee2cb656d955514c8aa526875a6a src-git telephony https://git.openwrt.org/feed/telephony.git diff --git a/package/lean/luci-app-samba4/Makefile b/package/lean/luci-app-samba4/Makefile new file mode 100644 index 000000000..1030dca9c --- /dev/null +++ b/package/lean/luci-app-samba4/Makefile @@ -0,0 +1,14 @@ +# +# Copyright (C) 2008-2014 The LuCI Team +# +# This is free software, licensed under the Apache License, Version 2.0 . +# + +include $(TOPDIR)/rules.mk + +LUCI_TITLE:=Network Shares - Samba 4.x SMB/CIFS module +LUCI_DEPENDS:=+samba4 + +include $(TOPDIR)/feeds/luci/luci.mk + +# call BuildPackage - OpenWrt buildroot signature diff --git a/package/lean/luci-app-samba4/luasrc/controller/samba4.lua b/package/lean/luci-app-samba4/luasrc/controller/samba4.lua new file mode 100644 index 000000000..8fac46be9 --- /dev/null +++ b/package/lean/luci-app-samba4/luasrc/controller/samba4.lua @@ -0,0 +1,16 @@ +-- Copyright 2008 Steven Barth +-- Copyright 2008 Jo-Philipp Wich +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.samba4", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/samba4") then + return + end + + local page + + page = entry({"admin", "services", "samba4"}, cbi("samba4"), _("Network Shares")) + page.dependent = true +end diff --git a/package/lean/luci-app-samba4/luasrc/model/cbi/samba4.lua b/package/lean/luci-app-samba4/luasrc/model/cbi/samba4.lua new file mode 100644 index 000000000..da5499b53 --- /dev/null +++ b/package/lean/luci-app-samba4/luasrc/model/cbi/samba4.lua @@ -0,0 +1,96 @@ +-- Copyright 2008 Steven Barth +-- Copyright 2008 Jo-Philipp Wich +-- Licensed to the public under the Apache License 2.0. + +m = Map("samba4", translate("Network Shares")) + +s = m:section(TypedSection, "samba", "Samba") +s.anonymous = true + +s:tab("general", translate("General Settings")) +s:tab("template", translate("Edit Template")) + +s:taboption("general", Value, "name", translate("Hostname")) +s:taboption("general", Value, "description", translate("Description")) +s:taboption("general", Value, "workgroup", translate("Workgroup")) +h = s:taboption("general", Flag, "homes", translate("Share home-directories"), + translate("Allow system users to reach their home directories via " .. + "network shares")) +h.rmempty = false +s:taboption("general", Flag, "disable_netbios", translate("Disable netbios")) +s:taboption("general", Flag, "disable_ad_dc", translate("Disable AD-DC")) +s:taboption("general", Flag, "disable_winbind", translate("Disable Winbind")) + +tmpl = s:taboption("template", Value, "_tmpl", + translate("Edit the template that is used for generating the samba configuration."), + translate("This is the content of the file '/etc/samba/smb.conf.template' from which your samba configuration will be generated. " .. + "Values enclosed by pipe symbols ('|') should not be changed. They get their values from the 'General Settings' tab.")) + +tmpl.template = "cbi/tvalue" +tmpl.rows = 20 + +function tmpl.cfgvalue(self, section) + return nixio.fs.readfile("/etc/samba/smb.conf.template") +end + +function tmpl.write(self, section, value) + value = value:gsub("\r\n?", "\n") + nixio.fs.writefile("//etc/samba/smb.conf.template", value) +end + + +s = m:section(TypedSection, "sambashare", translate("Shared Directories") + , translate("Please add directories to share. Each directory refers to a folder on a mounted device.")) +s.anonymous = true +s.addremove = true +s.template = "cbi/tblsection" + +s:option(Value, "name", translate("Name")) +pth = s:option(Value, "path", translate("Path")) +if nixio.fs.access("/etc/config/fstab") then + pth.titleref = luci.dispatcher.build_url("admin", "system", "fstab") +end + +s:option(Value, "users", translate("Allowed users")).rmempty = true + +ro = s:option(Flag, "read_only", translate("Read-only")) +ro.rmempty = false +ro.enabled = "yes" +ro.disabled = "no" + +br = s:option(Flag, "browseable", translate("Browseable")) +br.rmempty = false +br.default = "yes" +br.enabled = "yes" +br.disabled = "no" + +go = s:option(Flag, "guest_ok", translate("Allow Guests")) +go.rmempty = false +go.enabled = "yes" +go.disabled = "no" + +gon = s:option(Flag, "guest_only", translate("Guests only")) +gon.rmempty = false +gon.enabled = "yes" +gon.disabled = "no" + +io = s:option(Flag, "inherit_owner", translate("Inherit Owner")) +io.rmempty = false +io.enabled = "yes" +io.disabled = "no" + +cm = s:option(Value, "create_mask", translate("Create Mask")) +cm.rmempty = true +cm.size = 4 + +dm = s:option(Value, "dir_mask", translate("Directory Mask")) +dm.rmempty = true +dm.size = 4 + +s:option(Value, "vfs_objects", translate("Vfs Objects")).rmempty = true + +function m.on_commit(self,map) + require("luci.sys").call('/sbin/reload_config') +end + +return m diff --git a/package/lean/luci-app-samba4/po/ca/samba4.po b/package/lean/luci-app-samba4/po/ca/samba4.po new file mode 100644 index 000000000..eb6be15cd --- /dev/null +++ b/package/lean/luci-app-samba4/po/ca/samba4.po @@ -0,0 +1,103 @@ +# samba.pot +# generated from ./applications/luci-samba/luasrc/i18n/samba.en.lua +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-06-10 03:40+0200\n" +"PO-Revision-Date: 2014-07-01 05:47+0200\n" +"Last-Translator: Alex \n" +"Language-Team: LANGUAGE \n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.6\n" + +msgid "Allow guests" +msgstr "Permet convidats" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Permet que els usuaris del sistema pugin arribar als seus directoris d'inici " +"via comparticions de xarxa" + +msgid "Allowed users" +msgstr "Usuaris permesos" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Crea màscara" + +msgid "Description" +msgstr "Descripció" + +msgid "Directory mask" +msgstr "Màscara de directori" + +msgid "Edit Template" +msgstr "Edita plantilla" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Edita la plantilla que s'usa per generar la configuració de samba." + +msgid "General Settings" +msgstr "Ajusts generals" + +msgid "Hostname" +msgstr "Nom de màquina" + +msgid "Mask for new directories" +msgstr "Màscara per directoris nous" + +msgid "Mask for new files" +msgstr "Màscara per fitxers nous" + +msgid "Name" +msgstr "Nom" + +msgid "Network Shares" +msgstr "Comparticions de xarxa" + +msgid "Path" +msgstr "Ruta" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Només lectura" + +msgid "Share home-directories" +msgstr "Comparteix directoris d'inici" + +msgid "Shared Directories" +msgstr "Directoris compartits" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Això és el contingut del fitxer '/etc/samba/smb.conf.template' del qual la " +"vostra configuració de samba es generarà. Valors encerclats per símbols de " +"barra ('|') no es deuen canviar. Reben els seus valors de la pestanya " +"'Ajusts generals'." + +msgid "Workgroup" +msgstr "Grup de treball" + +#~ msgid "Shared Directory" +#~ msgstr "Directori compartit" + +#~ msgid "Physical Path" +#~ msgstr "Ruta física" + +#~ msgid "optional" +#~ msgstr "opcional" diff --git a/package/lean/luci-app-samba4/po/cs/samba4.po b/package/lean/luci-app-samba4/po/cs/samba4.po new file mode 100644 index 000000000..d66d87674 --- /dev/null +++ b/package/lean/luci-app-samba4/po/cs/samba4.po @@ -0,0 +1,91 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2014-05-31 13:56+0200\n" +"Last-Translator: koli \n" +"Language-Team: none\n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" +"X-Generator: Pootle 2.0.6\n" + +msgid "Allow guests" +msgstr "Povolení hosté" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Povoluje systémovým uživatelům přístup do jejich domácích adresářů skrze " +"sdílení přes síť." + +msgid "Allowed users" +msgstr "Povolení uživatelé" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Vytvořit masku" + +msgid "Description" +msgstr "Popis" + +msgid "Directory mask" +msgstr "Maska adresáře" + +msgid "Edit Template" +msgstr "Editovat šablonu" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" +"Editovat šablonu, která je použita pro generování konfiguračního souboru pro " +"sambu." + +msgid "General Settings" +msgstr "Obecné nastavení" + +msgid "Hostname" +msgstr "Název počítače." + +msgid "Mask for new directories" +msgstr "Maska pro nové adresáře" + +msgid "Mask for new files" +msgstr "Maska pro nové soubory" + +msgid "Name" +msgstr "Jméno" + +msgid "Network Shares" +msgstr "Síťová sdílení" + +msgid "Path" +msgstr "Cesta" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Pouze pro čtení" + +msgid "Share home-directories" +msgstr "Sdílet domácí adresáře" + +msgid "Shared Directories" +msgstr "Sdílené adresáře" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Toto je obsah souboru \"/etc/samba/smb.conf.template\", ze kterého je " +"konfigurace samby generována. Hodnoty uzavřené rourou (\"|\"), by se neměly " +"měnit. Tyto hodnoty jsou brány ze záložky \"Obecná nastavení\"." + +msgid "Workgroup" +msgstr "Skupina" diff --git a/package/lean/luci-app-samba4/po/de/samba4.po b/package/lean/luci-app-samba4/po/de/samba4.po new file mode 100644 index 000000000..4e8da53b5 --- /dev/null +++ b/package/lean/luci-app-samba4/po/de/samba4.po @@ -0,0 +1,95 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-05-26 17:57+0200\n" +"PO-Revision-Date: 2011-10-18 13:13+0200\n" +"Last-Translator: Manuel \n" +"Language-Team: LANGUAGE \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Gastzugang" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Systembenutzer dürfen ihre Heimatverzeichnis über Netzwerkfreigaben " +"erreichen." + +msgid "Allowed users" +msgstr "Legitimierte Benutzer" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Berechtigungsmaske für neue Dateien" + +msgid "Description" +msgstr "Beschreibung" + +msgid "Directory mask" +msgstr "Verzeichnismaske" + +msgid "Edit Template" +msgstr "Template bearbeiten" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" +"Hier kann das Template bearbeitet werden, das zur Erstellung der Samba-" +"Konfigurationsdateien verwendet wird." + +msgid "General Settings" +msgstr "Allgemeine Einstellungen" + +msgid "Hostname" +msgstr "Hostname" + +msgid "Mask for new directories" +msgstr "Maske für neue Verzeichnisse" + +msgid "Mask for new files" +msgstr "Maske für neue Dateien" + +msgid "Name" +msgstr "Name" + +msgid "Network Shares" +msgstr "Netzwerkfreigaben" + +msgid "Path" +msgstr "Pfad" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Nur Lesen" + +msgid "Share home-directories" +msgstr "Heimatverzeichnisse freigeben" + +msgid "Shared Directories" +msgstr "Freigegebene Verzeichnisse" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Dieses Fenster zeigt den Inhalt der Datei '/etc/samba/smb.conf.template', " +"die als Template zum Erstellen der Samba-Konfiguration verwendet wird. Werte " +"die von Pipe Symbolen (|) eingeschlossen sind sollten nicht verändert " +"werden, da diese beim Erstellen der Konfiguration mit den Werten aus dem Tab " +"'Allgemeine Einstellungen' ersetzt werden." + +msgid "Workgroup" +msgstr "Arbeitsgruppe" diff --git a/package/lean/luci-app-samba4/po/el/samba4.po b/package/lean/luci-app-samba4/po/el/samba4.po new file mode 100644 index 000000000..878416a63 --- /dev/null +++ b/package/lean/luci-app-samba4/po/el/samba4.po @@ -0,0 +1,86 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-05-28 02:08+0200\n" +"PO-Revision-Date: 2012-03-18 15:31+0200\n" +"Last-Translator: Vasilis \n" +"Language-Team: LANGUAGE \n" +"Language: el\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" + +msgid "Allowed users" +msgstr "" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "Directory mask" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" + +msgid "General Settings" +msgstr "" + +msgid "Hostname" +msgstr "" + +msgid "Mask for new directories" +msgstr "" + +msgid "Mask for new files" +msgstr "" + +msgid "Name" +msgstr "Όνομα" + +msgid "Network Shares" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "" + +msgid "Share home-directories" +msgstr "" + +msgid "Shared Directories" +msgstr "" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "" diff --git a/package/lean/luci-app-samba4/po/en/samba4.po b/package/lean/luci-app-samba4/po/en/samba4.po new file mode 100644 index 000000000..642580e9d --- /dev/null +++ b/package/lean/luci-app-samba4/po/en/samba4.po @@ -0,0 +1,90 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-03-22 15:23+0100\n" +"PO-Revision-Date: 2011-10-25 21:26+0200\n" +"Last-Translator: awm1 \n" +"Language-Team: LANGUAGE \n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Allow guests" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "Allow system users to reach their home directories via network shares" + +msgid "Allowed users" +msgstr "Allowed users" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Create mask" + +msgid "Description" +msgstr "Description" + +msgid "Directory mask" +msgstr "Directory mask" + +msgid "Edit Template" +msgstr "Edit template" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Edit the template that is used for generating the Samba configuration." + +msgid "General Settings" +msgstr "General settings" + +msgid "Hostname" +msgstr "Hostname" + +msgid "Mask for new directories" +msgstr "Mask for new directories" + +msgid "Mask for new files" +msgstr "Mask for new files" + +msgid "Name" +msgstr "Name" + +msgid "Network Shares" +msgstr "Network Shares" + +msgid "Path" +msgstr "Path" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Read-only" + +msgid "Share home-directories" +msgstr "Share home-directories" + +msgid "Shared Directories" +msgstr "Shared Directories" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your Samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"settings' tab." + +msgid "Workgroup" +msgstr "Workgroup" diff --git a/package/lean/luci-app-samba4/po/es/samba4.po b/package/lean/luci-app-samba4/po/es/samba4.po new file mode 100644 index 000000000..57c4b862d --- /dev/null +++ b/package/lean/luci-app-samba4/po/es/samba4.po @@ -0,0 +1,100 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-06-10 03:41+0200\n" +"PO-Revision-Date: 2012-08-22 17:45+0200\n" +"Last-Translator: José Vicente \n" +"Language-Team: LANGUAGE \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.6\n" + +msgid "Allow guests" +msgstr "Permitir invitados" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Permitir a los usuarios acceder a sus directorios de inicio vía " +"comparticiones de red" + +msgid "Allowed users" +msgstr "Usuarios permitidos" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Crear máscara" + +msgid "Description" +msgstr "Descripción" + +msgid "Directory mask" +msgstr "Máscara de directorio" + +msgid "Edit Template" +msgstr "Editar plantilla" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Editar la plantilla usada para generar la configuración de samba." + +msgid "General Settings" +msgstr "Configuración general" + +msgid "Hostname" +msgstr "Nombre de máquina" + +msgid "Mask for new directories" +msgstr "Máscara para directorios nuevos" + +msgid "Mask for new files" +msgstr "Máscara para archivos nuevos" + +msgid "Name" +msgstr "Nombre" + +msgid "Network Shares" +msgstr "Comparticiones de red" + +msgid "Path" +msgstr "Dirección" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Solo lectura" + +msgid "Share home-directories" +msgstr "Compartir directorios personales" + +msgid "Shared Directories" +msgstr "Directorios compartidos" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Contenido del fichero '/etc/samba/smb.conf.template' desde el que se " +"generará la configuración de samba. Los valores entre tuberías ('|') no " +"deben cambiarse. Su valor se toma desde la pestaña 'Configuración General'." + +msgid "Workgroup" +msgstr "Grupo de trabajo" + +#~ msgid "Shared Directory" +#~ msgstr "Directorio compatido" + +#~ msgid "Physical Path" +#~ msgstr "Ruta Física" + +#~ msgid "optional" +#~ msgstr "opcional" diff --git a/package/lean/luci-app-samba4/po/fr/samba4.po b/package/lean/luci-app-samba4/po/fr/samba4.po new file mode 100644 index 000000000..63960fca1 --- /dev/null +++ b/package/lean/luci-app-samba4/po/fr/samba4.po @@ -0,0 +1,92 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-05-19 19:36+0200\n" +"PO-Revision-Date: 2011-11-23 22:36+0200\n" +"Last-Translator: fredb \n" +"Language-Team: LANGUAGE \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Invités autorisés" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Autoriser les utilisateurs système à atteindre leurs dossiers personnels via " +"les partages réseau" + +msgid "Allowed users" +msgstr "Utilisateurs autorisés" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Maque de création" + +msgid "Description" +msgstr "Description" + +msgid "Directory mask" +msgstr "Masque des dossiers" + +msgid "Edit Template" +msgstr "Éditer le modèle" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Éditer le modèle utilisé pour générer la configuration Samba." + +msgid "General Settings" +msgstr "Paramètres généraux" + +msgid "Hostname" +msgstr "Nom d'hôte" + +msgid "Mask for new directories" +msgstr "Masque pour les nouveaux dossiers" + +msgid "Mask for new files" +msgstr "Masque pour les nouveaux fichiers" + +msgid "Name" +msgstr "Nom" + +msgid "Network Shares" +msgstr "Partages réseau" + +msgid "Path" +msgstr "Chemin" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Lecture seule" + +msgid "Share home-directories" +msgstr "Partager les dossiers personnels" + +msgid "Shared Directories" +msgstr "Dossiers partagés" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Voici le contenu du fichier '/etc/samba/smb.conf.template' d'où sera généré " +"votre configuration Samba. Les valeurs entre les symboles barre-verticale " +" (« | ») ne doivent pas être modifiées, elles proviennent de l'onglet " +"« Paramètres généraux »." + +msgid "Workgroup" +msgstr "Groupe de travail" diff --git a/package/lean/luci-app-samba4/po/he/samba4.po b/package/lean/luci-app-samba4/po/he/samba4.po new file mode 100644 index 000000000..010d2b248 --- /dev/null +++ b/package/lean/luci-app-samba4/po/he/samba4.po @@ -0,0 +1,81 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Allow guests" +msgstr "" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" + +msgid "Allowed users" +msgstr "" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "Directory mask" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" + +msgid "General Settings" +msgstr "" + +msgid "Hostname" +msgstr "" + +msgid "Mask for new directories" +msgstr "" + +msgid "Mask for new files" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Network Shares" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "" + +msgid "Share home-directories" +msgstr "" + +msgid "Shared Directories" +msgstr "" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "" diff --git a/package/lean/luci-app-samba4/po/hu/samba4.po b/package/lean/luci-app-samba4/po/hu/samba4.po new file mode 100644 index 000000000..0263edb6c --- /dev/null +++ b/package/lean/luci-app-samba4/po/hu/samba4.po @@ -0,0 +1,92 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2012-04-06 10:56+0200\n" +"Last-Translator: juhosg \n" +"Language-Team: none\n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Vendég hozzáférés" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"A rendszerfelhasználók hálózati megosztáson keresztül hozzáférhetnek a home " +"könyvtárukhoz." + +msgid "Allowed users" +msgstr "Engedélyezett felhasználók" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Létrehozási maszk" + +msgid "Description" +msgstr "Leírás" + +msgid "Directory mask" +msgstr "Könyvtár maszk" + +msgid "Edit Template" +msgstr "Sablon szerkesztése" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" +"Itt szerkesztheti a sablont, ami a végleges samba konfiguráció " +"elkészítéséhez kerül felhasználásra." + +msgid "General Settings" +msgstr "Általános beállítások" + +msgid "Hostname" +msgstr "Gépnév" + +msgid "Mask for new directories" +msgstr "Új könyvtárak maszkja" + +msgid "Mask for new files" +msgstr "Új fájlok maszkja" + +msgid "Name" +msgstr "Név" + +msgid "Network Shares" +msgstr "Hálózati megosztások" + +msgid "Path" +msgstr "Elérési út" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Csak olvasható" + +msgid "Share home-directories" +msgstr "Home könyvtárak megosztása" + +msgid "Shared Directories" +msgstr "Megosztott könyvtárak" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Itt látható a /etc/samba/smb.conf.template file tartalma, ami a samba " +"konfiguráció előállításához kerül felhasználásra. A pipe szimbólumok ('|') " +"közé zárt értékek módosítása nem szükséges, az értéküket az általános " +"beállítások fülről kapják." + +msgid "Workgroup" +msgstr "Munkacsoport" diff --git a/package/lean/luci-app-samba4/po/it/samba4.po b/package/lean/luci-app-samba4/po/it/samba4.po new file mode 100644 index 000000000..872590203 --- /dev/null +++ b/package/lean/luci-app-samba4/po/it/samba4.po @@ -0,0 +1,95 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-05-19 19:36+0200\n" +"PO-Revision-Date: 2017-09-06 01:28+0200\n" +"Last-Translator: bubu83 \n" +"Language-Team: LANGUAGE \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Permetti ospiti" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Autorizza gli utenti del sistema a raggiungere la loro cartella home " +"attraverso le condivisioni di rete" + +msgid "Allowed users" +msgstr "Utenti ammessi" + +msgid "Browseable" +msgstr "Sfogliabile" + +msgid "Create mask" +msgstr "Crea maschera" + +msgid "Description" +msgstr "Descrizione" + +msgid "Directory mask" +msgstr "Maschera della cartella" + +msgid "Edit Template" +msgstr "Modifica Template" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" +"Modifica il template utilizzato per generare la configurazione di samba." + +msgid "General Settings" +msgstr "Opzioni Generali" + +msgid "Hostname" +msgstr "Hostname" + +msgid "Mask for new directories" +msgstr "Maschera per le nuove cartelle" + +msgid "Mask for new files" +msgstr "Maschera per i nuovi files" + +msgid "Name" +msgstr "Nome" + +msgid "Network Shares" +msgstr "Condivisioni di rete" + +msgid "Path" +msgstr "Percorso" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" +"Per favore aggiungi le directory da condividere. Ogni directory si riferisce a una " +"cartella su un dispositivo montato." + +msgid "Read-only" +msgstr "Solo lettura" + +msgid "Share home-directories" +msgstr "Condividi cartelle home" + +msgid "Shared Directories" +msgstr "Cartelle Condivise" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Questo è il contenuto del file '/etc/samba/smb.conf.template' dal quale sarà " +"generata la tua configurazione di samba. I valori racchiusi tra il simbolo " +"('|') non dovrebbero essere toccati. Essi vengono generati dalla schermata " +"'Opzioni Generali'." + +msgid "Workgroup" +msgstr "Gruppo di lavoro" diff --git a/package/lean/luci-app-samba4/po/ja/samba4.po b/package/lean/luci-app-samba4/po/ja/samba4.po new file mode 100644 index 000000000..eca10efcc --- /dev/null +++ b/package/lean/luci-app-samba4/po/ja/samba4.po @@ -0,0 +1,91 @@ +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-05-19 19:36+0200\n" +"PO-Revision-Date: 2017-08-16 00:41+0900\n" +"Last-Translator: INAGAKI Hiroshi \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Poedit 2.0.3\n" +"Language-Team: \n" + +msgid "Allow guests" +msgstr "ゲストアクセスを許可" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "sambaを介してユーザーのホームディレクトリへのアクセスを許可します" + +msgid "Allowed users" +msgstr "許可されたユーザー" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "マスクの作成" + +msgid "Description" +msgstr "説明" + +msgid "Directory mask" +msgstr "ディレクトリのマスク" + +msgid "Edit Template" +msgstr "テンプレートの編集" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "samba設定を生成するテンプレートを編集します。" + +msgid "General Settings" +msgstr "一般設定" + +msgid "Hostname" +msgstr "ホスト名" + +msgid "Mask for new directories" +msgstr "新規ディレクトリのマスク" + +msgid "Mask for new files" +msgstr "新規ファイルのマスク" + +msgid "Name" +msgstr "名前" + +msgid "Network Shares" +msgstr "ネットワーク共有" + +msgid "Path" +msgstr "パス" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" +"共有するディレクトリを追加してください。マウントされたデバイス等のディレクト" +"リを設定し、公開することができます。" + +msgid "Read-only" +msgstr "読み込みのみ" + +msgid "Share home-directories" +msgstr "ホームディレクトリの共有" + +msgid "Shared Directories" +msgstr "共有ディレクトリ" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"これは、samba設定を生成するための'/etc/samba/smb.conf.template' ファイルの内" +"容です。パイプ('|')で閉じられた値は変更しないでください。これらの値は'一般設" +"定'タブ内の値によって置き換えられます。" + +msgid "Workgroup" +msgstr "ワークグループ" diff --git a/package/lean/luci-app-samba4/po/ms/samba4.po b/package/lean/luci-app-samba4/po/ms/samba4.po new file mode 100644 index 000000000..d5f1ce15e --- /dev/null +++ b/package/lean/luci-app-samba4/po/ms/samba4.po @@ -0,0 +1,80 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Allow guests" +msgstr "" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" + +msgid "Allowed users" +msgstr "" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "Directory mask" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" + +msgid "General Settings" +msgstr "" + +msgid "Hostname" +msgstr "" + +msgid "Mask for new directories" +msgstr "" + +msgid "Mask for new files" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Network Shares" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "" + +msgid "Share home-directories" +msgstr "" + +msgid "Shared Directories" +msgstr "" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "" diff --git a/package/lean/luci-app-samba4/po/no/samba4.po b/package/lean/luci-app-samba4/po/no/samba4.po new file mode 100644 index 000000000..349f6b9de --- /dev/null +++ b/package/lean/luci-app-samba4/po/no/samba4.po @@ -0,0 +1,80 @@ +msgid "" +msgstr "" +"Last-Translator: Lars Hardy \n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Allow guests" +msgstr "Tillat gjester" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "Tillat systembrukere å nå sine hjemmekataloger via nettverks mapper." + +msgid "Allowed users" +msgstr "Tillatte brukere" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Opprett Maske" + +msgid "Description" +msgstr "Beskrivelse" + +msgid "Directory mask" +msgstr "Katalog maske" + +msgid "Edit Template" +msgstr "Rediger Mal" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Rediger malen som brukes til å generere samba konfigurasjonen." + +msgid "General Settings" +msgstr "Generelle Innstillinger" + +msgid "Hostname" +msgstr "Vertsnavn" + +msgid "Mask for new directories" +msgstr "Maske for nye kataloger" + +msgid "Mask for new files" +msgstr "Maske for nye filer" + +msgid "Name" +msgstr "Navn" + +msgid "Network Shares" +msgstr "Nettverks Mapper" + +msgid "Path" +msgstr "Fysisk bane" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Skrivebeskyttet" + +msgid "Share home-directories" +msgstr "Del Hjemmekataloger" + +msgid "Shared Directories" +msgstr "Delte Kataloger" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Dette er innholdet av filen '/etc/samba/smb.conf.template' som din samba " +"konfigurasjon vil bli generert fra. Verdier omsluttet av ('|') bør ikke " +"endres. De får sine verdier fra 'Generelle Innstillinger' fanen." + +msgid "Workgroup" +msgstr "Arbeidsgruppe" diff --git a/package/lean/luci-app-samba4/po/pl/samba4.po b/package/lean/luci-app-samba4/po/pl/samba4.po new file mode 100644 index 000000000..d997268cd --- /dev/null +++ b/package/lean/luci-app-samba4/po/pl/samba4.po @@ -0,0 +1,91 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2011-08-26 09:51+0200\n" +"Last-Translator: Staszek \n" +"Language-Team: none\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Zezwalaj Gościom" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Użytkownicy systemu mogą dostać się do swoich katalogów domowych za " +"pośrednictwem udziałów sieciowych." + +msgid "Allowed users" +msgstr "Użytkownicy z prawem dostępu" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Utwórz maskę" + +msgid "Description" +msgstr "Opis" + +msgid "Directory mask" +msgstr "Maska katalogu" + +msgid "Edit Template" +msgstr "Edytuj szablon" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Edytuj szablon, który jest używany do generowania konfiguracji samby." + +msgid "General Settings" +msgstr "Ustawienia ogólne" + +msgid "Hostname" +msgstr "Nazwa hosta" + +msgid "Mask for new directories" +msgstr "Maska dla nowych katalogów" + +msgid "Mask for new files" +msgstr "Maska dla nowych plików" + +msgid "Name" +msgstr "Nazwa" + +msgid "Network Shares" +msgstr "Udziały sieciowe" + +msgid "Path" +msgstr "Ścieżka" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Tylko do odczytu" + +msgid "Share home-directories" +msgstr "Udostępniaj katalogi domowe" + +msgid "Shared Directories" +msgstr "Udostępniane katalogi" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"To jest zawartość pliku '/etc/samba/smb.conf.template\", na podstawie " +"którego zostanie wygenerowana konfiguracja samby. Wartości otoczone symbolem " +"kreski pionowej ('|') nie powinny być zmieniane. Wartości ich zostaną " +"pobrane z zakładki \"Ustawienia ogólne\"." + +msgid "Workgroup" +msgstr "Grupa robocza" diff --git a/package/lean/luci-app-samba4/po/pt-br/samba4.po b/package/lean/luci-app-samba4/po/pt-br/samba4.po new file mode 100644 index 000000000..a2e6e220c --- /dev/null +++ b/package/lean/luci-app-samba4/po/pt-br/samba4.po @@ -0,0 +1,101 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-06-10 03:41+0200\n" +"PO-Revision-Date: 2013-04-06 22:54+0200\n" +"Last-Translator: Luiz Angelo \n" +"Language-Team: LANGUAGE \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Pootle 2.0.6\n" + +msgid "Allow guests" +msgstr "Permitir convidados" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Usuários do sistema poderão acessar seu diretório home através dos " +"compartilhamentos de rede" + +msgid "Allowed users" +msgstr "Usuários permitidos" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Máscara de criação" + +msgid "Description" +msgstr "Descrição" + +msgid "Directory mask" +msgstr "Máscara do diretório" + +msgid "Edit Template" +msgstr "Editar modelo" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Edita o modelo que é usado para gerar a configuração do samba." + +msgid "General Settings" +msgstr "Configurações Gerais" + +msgid "Hostname" +msgstr "Nome do equipamento" + +msgid "Mask for new directories" +msgstr "Máscara para novos diretórios" + +msgid "Mask for new files" +msgstr "Máscara para novos arquivos" + +msgid "Name" +msgstr "Nome" + +msgid "Network Shares" +msgstr "Compartilhamentos de Rede" + +msgid "Path" +msgstr "Caminho" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Somente leitura" + +msgid "Share home-directories" +msgstr "Compartilhar diretórios home" + +msgid "Shared Directories" +msgstr "Diretórios Compartilhados" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Este é o conteúdo do arquivo '/etc/samba/smb.conf.template' a partir do qual " +"sua configuração do samba será gerada. Valores entre simbolos de pipe ('|') " +"não devem ser alterados. Estes valores serão obtidos a partir da aba " +"'Configurações Gerais'." + +msgid "Workgroup" +msgstr "Grupo de trabalho" + +#~ msgid "Shared Directory" +#~ msgstr "Diretório Compartilhado" + +#~ msgid "Physical Path" +#~ msgstr "Caminho Físico" + +#~ msgid "optional" +#~ msgstr "opcional" diff --git a/package/lean/luci-app-samba4/po/pt/samba4.po b/package/lean/luci-app-samba4/po/pt/samba4.po new file mode 100644 index 000000000..f58b58818 --- /dev/null +++ b/package/lean/luci-app-samba4/po/pt/samba4.po @@ -0,0 +1,101 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-05-26 19:03+0200\n" +"PO-Revision-Date: 2013-05-01 01:13+0200\n" +"Last-Translator: pedromrgoncalves \n" +"Language-Team: LANGUAGE \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Pootle 2.0.6\n" + +msgid "Allow guests" +msgstr "Permitir Convidados" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Utilizadores do sistema poderão aceder ao seu directório home através das " +"partilhas de rede." + +msgid "Allowed users" +msgstr "Utilizadores Permitidos" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Criar Máscara" + +msgid "Description" +msgstr "Descrição" + +msgid "Directory mask" +msgstr "Máscara do Directório" + +msgid "Edit Template" +msgstr "Editar Template" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Editar a template que é utilizada para gerar a configuração samba" + +msgid "General Settings" +msgstr "Definições Gerais" + +msgid "Hostname" +msgstr "Nome do host" + +msgid "Mask for new directories" +msgstr "Máscara para novos directórios" + +msgid "Mask for new files" +msgstr "Máscara para novos ficheiros" + +msgid "Name" +msgstr "Nome" + +msgid "Network Shares" +msgstr "Partilhas da Rede" + +msgid "Path" +msgstr "Caminho" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Apenas Leitura" + +msgid "Share home-directories" +msgstr "Partilha de directórios home" + +msgid "Shared Directories" +msgstr "Directórios Partilhados" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Isto é o conteúdo do ficheiro 'etc/samba/smb.conf.template' a partir do qual " +"será gerado o ficheiro de configuração do samba. Os valores entre o símbolo " +"| não devem ser alterados. Eles recebem os valores do separador 'Definições " +"Gerais'." + +msgid "Workgroup" +msgstr "Grupo de trabalho" + +#~ msgid "Shared Directory" +#~ msgstr "Diretório Compartilhado" + +#~ msgid "Physical Path" +#~ msgstr "Caminho Físico" + +#~ msgid "optional" +#~ msgstr "opcional" diff --git a/package/lean/luci-app-samba4/po/ro/samba4.po b/package/lean/luci-app-samba4/po/ro/samba4.po new file mode 100644 index 000000000..7cfcda7d1 --- /dev/null +++ b/package/lean/luci-app-samba4/po/ro/samba4.po @@ -0,0 +1,90 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2011-10-07 17:16+0200\n" +"Last-Translator: Daniel \n" +"Language-Team: none\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " +"20)) ? 1 : 2);;\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Permite oaspeti" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Permite utilizatorii de sistem sa acceseze directoarele lor peste " +"partajarile de retea" + +msgid "Allowed users" +msgstr "Utilizatori acceptati" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Creaza masca" + +msgid "Description" +msgstr "Descriere" + +msgid "Directory mask" +msgstr "Masca director" + +msgid "Edit Template" +msgstr "Editeaza sablon" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Editeaza sablonul care e folosit pentru generarea configuratiei samba." + +msgid "General Settings" +msgstr "Setari generale" + +msgid "Hostname" +msgstr "Numele de host" + +msgid "Mask for new directories" +msgstr "Masca pentru directoarele noi" + +msgid "Mask for new files" +msgstr "Masca pentru fisierele noi" + +msgid "Name" +msgstr "Nume" + +msgid "Network Shares" +msgstr "Partajari pe retea" + +msgid "Path" +msgstr "Cale" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Doar citire" + +msgid "Share home-directories" +msgstr "Partajeaza directoarele proprii" + +msgid "Shared Directories" +msgstr "Directoare partajate" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Acesta este continutul fisierului '/etc/samba/smb.conf.template' din care se " +"genereaza configuratia samba. Valorile dintre liniuta verticala ('|') n-ar " +"trebui schimbate, ele iau valorile direct din tab-ul de \"Setari generale\"." + +msgid "Workgroup" +msgstr "Workgroup" diff --git a/package/lean/luci-app-samba4/po/ru/samba4.po b/package/lean/luci-app-samba4/po/ru/samba4.po new file mode 100644 index 000000000..f2c4df54a --- /dev/null +++ b/package/lean/luci-app-samba4/po/ru/samba4.po @@ -0,0 +1,96 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: LuCI: samba\n" +"POT-Creation-Date: 2009-05-19 19:36+0200\n" +"PO-Revision-Date: 2018-01-14 11:43+0300\n" +"Language-Team: http://cyber-place.ru\n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.7.1\n" +"Last-Translator: Vladimir aka sunny \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: ru\n" +"Project-Info: Это технический перевод, не дословный. Главное-удобный русский " +"интерфейс, все проверялось в графическом режиме, совместим с другими apps\n" + +msgid "Allow guests" +msgstr "Разрешить гостевой вход" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Разрешить пользователям получать доступ к их домашним папкам, через " +"локальную сеть." + +msgid "Allowed users" +msgstr "Разрешенные пользователи" + +msgid "Browseable" +msgstr "Виден в списке доступных ресурсов" + +msgid "Create mask" +msgstr "Создать маску" + +msgid "Description" +msgstr "Описание" + +msgid "Directory mask" +msgstr "Маска папок" + +msgid "Edit Template" +msgstr "Настройка config файла" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "Настройка config
файла samba." + +msgid "General Settings" +msgstr "Основные настройки" + +msgid "Hostname" +msgstr "Имя хоста" + +msgid "Mask for new directories" +msgstr "Маска для новых папок" + +msgid "Mask for new files" +msgstr "Маска для новых файлов" + +msgid "Name" +msgstr "Имя" + +msgid "Network Shares" +msgstr "Сетевые ресурсы" + +msgid "Path" +msgstr "Путь" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" +"Добавьте папки для совместного доступа. Каждая папка - соответствует разделу " +"на подключенном устройстве." + +msgid "Read-only" +msgstr "Только для чтения" + +msgid "Share home-directories" +msgstr "Совместно использовать домашние папки" + +msgid "Shared Directories" +msgstr "Совместно используемые папки" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Это содержимое файла '/etc/samba/smb.conf.template', из которого " +"генерируется config файл - samba.
Значения, заключенные в символы " +"('|'), не должны быть изменены.
Они будут автоматически заменены на " +"значения со страницы 'Основные настройки'." + +msgid "Workgroup" +msgstr "Рабочая группа" diff --git a/package/lean/luci-app-samba4/po/sk/samba4.po b/package/lean/luci-app-samba4/po/sk/samba4.po new file mode 100644 index 000000000..21f102d32 --- /dev/null +++ b/package/lean/luci-app-samba4/po/sk/samba4.po @@ -0,0 +1,81 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: PACKAGE VERSION\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +msgid "Allow guests" +msgstr "" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" + +msgid "Allowed users" +msgstr "" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "Directory mask" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" + +msgid "General Settings" +msgstr "" + +msgid "Hostname" +msgstr "" + +msgid "Mask for new directories" +msgstr "" + +msgid "Mask for new files" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Network Shares" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "" + +msgid "Share home-directories" +msgstr "" + +msgid "Shared Directories" +msgstr "" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "" diff --git a/package/lean/luci-app-samba4/po/sv/samba4.po b/package/lean/luci-app-samba4/po/sv/samba4.po new file mode 100644 index 000000000..f58f8b87d --- /dev/null +++ b/package/lean/luci-app-samba4/po/sv/samba4.po @@ -0,0 +1,83 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: PACKAGE VERSION\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Allow guests" +msgstr "Tillåt gäster" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "Tillåt systemanvändare att nå deras hem-mappar via nätverksdelningar" + +msgid "Allowed users" +msgstr "Tillåtna användare" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Skapa mask" + +msgid "Description" +msgstr "Beskrivning" + +msgid "Directory mask" +msgstr "Mask för mapp" + +msgid "Edit Template" +msgstr "Redigera mall" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" +"Redigera mallen som används för att generera konfigurationen för samba." + +msgid "General Settings" +msgstr "Generella inställningar" + +msgid "Hostname" +msgstr "Värdnamn" + +msgid "Mask for new directories" +msgstr "Mask för nya mappar" + +msgid "Mask for new files" +msgstr "Mask för nya filer" + +msgid "Name" +msgstr "Namn" + +msgid "Network Shares" +msgstr "Nätverksdelningar" + +msgid "Path" +msgstr "Genväg" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Endast läsbar" + +msgid "Share home-directories" +msgstr "Dela hem-mappar" + +msgid "Shared Directories" +msgstr "Delade mappar" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "Arbetsgrupp" diff --git a/package/lean/luci-app-samba4/po/templates/samba4.pot b/package/lean/luci-app-samba4/po/templates/samba4.pot new file mode 100644 index 000000000..674ed331c --- /dev/null +++ b/package/lean/luci-app-samba4/po/templates/samba4.pot @@ -0,0 +1,74 @@ +msgid "" +msgstr "Content-Type: text/plain; charset=UTF-8" + +msgid "Allow guests" +msgstr "" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" + +msgid "Allowed users" +msgstr "" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "Directory mask" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" + +msgid "General Settings" +msgstr "" + +msgid "Hostname" +msgstr "" + +msgid "Mask for new directories" +msgstr "" + +msgid "Mask for new files" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Network Shares" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "" + +msgid "Share home-directories" +msgstr "" + +msgid "Shared Directories" +msgstr "" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "" diff --git a/package/lean/luci-app-samba4/po/tr/samba4.po b/package/lean/luci-app-samba4/po/tr/samba4.po new file mode 100644 index 000000000..98d47beec --- /dev/null +++ b/package/lean/luci-app-samba4/po/tr/samba4.po @@ -0,0 +1,81 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +msgid "Allow guests" +msgstr "" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" + +msgid "Allowed users" +msgstr "" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "Directory mask" +msgstr "" + +msgid "Edit Template" +msgstr "" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" + +msgid "General Settings" +msgstr "" + +msgid "Hostname" +msgstr "" + +msgid "Mask for new directories" +msgstr "" + +msgid "Mask for new files" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Network Shares" +msgstr "" + +msgid "Path" +msgstr "" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "" + +msgid "Share home-directories" +msgstr "" + +msgid "Shared Directories" +msgstr "" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "" diff --git a/package/lean/luci-app-samba4/po/uk/samba4.po b/package/lean/luci-app-samba4/po/uk/samba4.po new file mode 100644 index 000000000..a4469f961 --- /dev/null +++ b/package/lean/luci-app-samba4/po/uk/samba4.po @@ -0,0 +1,92 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: 2012-03-18 20:35+0200\n" +"Last-Translator: YuriPet \n" +"Language-Team: none\n" +"Language: uk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Pootle 2.0.4\n" + +msgid "Allow guests" +msgstr "Дозволити гостьовий вхід" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Дозволити користувачам системи досягати своїх домашніх каталогів через " +"загальні мережеві ресурси" + +msgid "Allowed users" +msgstr "Дозволені користувачі" + +msgid "Browseable" +msgstr "" + +msgid "Create mask" +msgstr "Створити маску" + +msgid "Description" +msgstr "Опис" + +msgid "Directory mask" +msgstr "Маска каталогу" + +msgid "Edit Template" +msgstr "Редагувати шаблон" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" +"Редагувати шаблон, який використовується для створення конфігурації samba." + +msgid "General Settings" +msgstr "Загальні настройки" + +msgid "Hostname" +msgstr "Назва (ім'я) вузла" + +msgid "Mask for new directories" +msgstr "Маска для нових каталогів" + +msgid "Mask for new files" +msgstr "Маска для нових файлів" + +msgid "Name" +msgstr "Ім'я" + +msgid "Network Shares" +msgstr "Загальні мережеві ресурси" + +msgid "Path" +msgstr "Шлях" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +msgid "Read-only" +msgstr "Тільки читання" + +msgid "Share home-directories" +msgstr "Спільно використовувати домашні каталоги" + +msgid "Shared Directories" +msgstr "Загальні каталоги" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"Це вміст файлу '/etc/samba/smb.conf.template', з якого буде генеруватися " +"ваша конфігурація samba. Значення, укладені в символи \"вертикальна риска" +"\" (\"|\") не повинні змінюватися. Вони отримують свої значення з вкладки " +"\"Загальні налаштування\"." + +msgid "Workgroup" +msgstr "Робоча група" diff --git a/package/lean/luci-app-samba4/po/vi/samba4.po b/package/lean/luci-app-samba4/po/vi/samba4.po new file mode 100644 index 000000000..7c088cebe --- /dev/null +++ b/package/lean/luci-app-samba4/po/vi/samba4.po @@ -0,0 +1,104 @@ +# samba.pot +# generated from ./applications/luci-samba/luasrc/i18n/samba.en.lua +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-08-16 06:59+0200\n" +"PO-Revision-Date: 2009-08-13 03:54+0200\n" +"Last-Translator: Hong Phuc Dang \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Pootle 1.1.0\n" + +#, fuzzy +msgid "Allow guests" +msgstr "Cho phép khách" + +#, fuzzy +msgid "Allow system users to reach their home directories via network shares" +msgstr "" +"Những người sử dụng hệ thống có thể tiếp cận những thư mục tại nhà thông qua " +"mạng lưới chia sẻ trực tuyến." + +#, fuzzy +msgid "Allowed users" +msgstr "Người sử dụng được cho phép" + +msgid "Browseable" +msgstr "" + +#, fuzzy +msgid "Create mask" +msgstr "Tạo Mask" + +msgid "Description" +msgstr "Mô tả" + +#, fuzzy +msgid "Directory mask" +msgstr "Thư mục Mask" + +msgid "Edit Template" +msgstr "" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "" + +msgid "General Settings" +msgstr "" + +msgid "Hostname" +msgstr "tên máy chủ" + +msgid "Mask for new directories" +msgstr "Mask cho thư mục mới" + +msgid "Mask for new files" +msgstr "Mask cho tập tin mới" + +msgid "Name" +msgstr "" + +msgid "Network Shares" +msgstr "Mạng chia sẻ" + +msgid "Path" +msgstr "" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "" + +#, fuzzy +msgid "Read-only" +msgstr "Chỉ đọc " + +msgid "Share home-directories" +msgstr "Chia sẻ danh bạ chính" + +msgid "Shared Directories" +msgstr "Thư mục chia sẻ" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" + +msgid "Workgroup" +msgstr "Nhóm làm việc " + +#~ msgid "Shared Directory" +#~ msgstr "Đã chia sẻ thư mục" + +#~ msgid "Physical Path" +#~ msgstr "Đường dẫn vật lý" + +#~ msgid "optional" +#~ msgstr "Tùy thích" diff --git a/package/lean/luci-app-samba4/po/zh-cn/samba4.po b/package/lean/luci-app-samba4/po/zh-cn/samba4.po new file mode 100644 index 000000000..ea9d0489f --- /dev/null +++ b/package/lean/luci-app-samba4/po/zh-cn/samba4.po @@ -0,0 +1,94 @@ +# +# Yangfl , 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-06-10 03:40+0200\n" +"PO-Revision-Date: 2017-10-29 15:36+0800\n" +"Last-Translator: Yangfl \n" +"Language-Team: \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Gtranslator 2.91.7\n" + +msgid "Allow guests" +msgstr "允许匿名用户" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "允许系统用户通过网络共享访问他们的家目录" + +msgid "Allowed users" +msgstr "允许用户" + +msgid "Browseable" +msgstr "可浏览" + +msgid "Create mask" +msgstr "创建权限掩码" + +msgid "Description" +msgstr "描述" + +msgid "Directory mask" +msgstr "目录权限掩码" + +msgid "Edit Template" +msgstr "编辑模板" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "编辑用来生成 samba 设置的模板" + +msgid "General Settings" +msgstr "基本设置" + +msgid "Hostname" +msgstr "主机名" + +msgid "Mask for new directories" +msgstr "新目录权限掩码" + +msgid "Mask for new files" +msgstr "新文件权限掩码" + +msgid "Name" +msgstr "共享名" + +msgid "Network Shares" +msgstr "网络共享" + +msgid "Path" +msgstr "目录" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "请添加要共享的目录。每个目录指到已挂载设备上的文件夹。" + +msgid "Read-only" +msgstr "只读" + +msgid "Share home-directories" +msgstr "共享家目录" + +msgid "Shared Directories" +msgstr "共享目录" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"这是将从其上生成 samba 配置的文件“/etc/samba/smb.conf.template”的内容。由管道" +"符(“|”)包围的值不应更改。它们将从“常规设置”标签中获取其值。" + +msgid "Workgroup" +msgstr "工作组" + +#~ msgid "Physical Path" +#~ msgstr "物理路径" diff --git a/package/lean/luci-app-samba4/po/zh-tw/samba4.po b/package/lean/luci-app-samba4/po/zh-tw/samba4.po new file mode 100644 index 000000000..8461a6077 --- /dev/null +++ b/package/lean/luci-app-samba4/po/zh-tw/samba4.po @@ -0,0 +1,94 @@ +# +# Yangfl , 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-06-10 03:40+0200\n" +"PO-Revision-Date: 2017-10-29 15:36+0800\n" +"Last-Translator: Yangfl \n" +"Language-Team: \n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Gtranslator 2.91.7\n" + +msgid "Allow guests" +msgstr "允許匿名使用者" + +msgid "Allow system users to reach their home directories via network shares" +msgstr "允許系統使用者通過網路共享訪問他們的家目錄" + +msgid "Allowed users" +msgstr "允許使用者" + +msgid "Browseable" +msgstr "可瀏覽" + +msgid "Create mask" +msgstr "建立權限掩碼" + +msgid "Description" +msgstr "描述" + +msgid "Directory mask" +msgstr "目錄權限掩碼" + +msgid "Edit Template" +msgstr "編輯模板" + +msgid "Edit the template that is used for generating the samba configuration." +msgstr "編輯用來生成 samba 設定的模板" + +msgid "General Settings" +msgstr "基本設定" + +msgid "Hostname" +msgstr "主機名" + +msgid "Mask for new directories" +msgstr "新目錄權限掩碼" + +msgid "Mask for new files" +msgstr "新檔案權限掩碼" + +msgid "Name" +msgstr "共享名" + +msgid "Network Shares" +msgstr "網路共享" + +msgid "Path" +msgstr "目錄" + +msgid "" +"Please add directories to share. Each directory refers to a folder on a " +"mounted device." +msgstr "請新增要共享的目錄。每個目錄指到已掛載裝置上的資料夾。" + +msgid "Read-only" +msgstr "只讀" + +msgid "Share home-directories" +msgstr "共享家目錄" + +msgid "Shared Directories" +msgstr "共享目錄" + +msgid "" +"This is the content of the file '/etc/samba/smb.conf.template' from which " +"your samba configuration will be generated. Values enclosed by pipe symbols " +"('|') should not be changed. They get their values from the 'General " +"Settings' tab." +msgstr "" +"這是將從其上生成 samba 配置的檔案“/etc/samba/smb.conf.template”的內容。由管道" +"符(“|”)包圍的值不應更改。它們將從“常規設定”標籤中獲取其值。" + +msgid "Workgroup" +msgstr "工作組" + +#~ msgid "Physical Path" +#~ msgstr "物理路徑" diff --git a/package/lean/samba4/Config.in b/package/lean/samba4/Config.in new file mode 100644 index 000000000..f9c2a1ed2 --- /dev/null +++ b/package/lean/samba4/Config.in @@ -0,0 +1,108 @@ +if PACKAGE_samba4 + +config SAMBA4_SERVER + bool "Server (fileserver)" + help + installs: smbd (daemon) smbpasswd pdbedit testparm smbstatus smbtree + This provides the basic fileserver service and is the minimum needed to serve file-shares. + good guide: https://fitzcarraldoblog.wordpress.com/2016/10/17/a-correct-method-of-configuring-samba-for-browsing-smb-shares-in-a-home-network/ + default y + + config SAMBA4_SERVER_NETBIOS + bool "enable Netbios support" + depends on SAMBA4_SERVER + help + installs: nmbd (daemon) nmblookup + Builds the nmbd to announce samba resources via netbios. + NOTE: Windows 10 (1709+) will not display workgroup netbios resources anymore, unless the old SMB1 feature is reinstalled (not recommend). + Therefor this feature can be safely disabled, network shares can still be directly accessed via network paths '\\hostname\sharename' and mounted via 'map network drive'. + default y + + config SAMBA4_SERVER_VFS + bool "enable common VFS modules" + depends on SAMBA4_SERVER + help + provides commonly used vfs modules + installs: + modules: (vfs_btrfs) vfs_fruit vfs_shadow_copy2 vfs_recycle vfs_fake_perms vfs_readonly vfs_cap vfs_offline vfs_crossrename + default y + + config SAMBA4_SERVER_VFSX + bool "enable extended VFS modules" + depends on SAMBA4_SERVER + help + provides extra vfs modules + installs: + modules: vfs_virusfilter vfs_shell_snap vfs_commit vfs_worm vfs_xattr_tdb vfs_streams_xattr vfs_aio_fork vfs_aio_pthread (vfs_linux_xfs_sgid) vfs_netatalk vfs_dirsort vfs_fileid + default n + + config SAMBA4_SERVER_AVAHI + bool "enable AVAHI support" + depends on SAMBA4_SERVER + select PACKAGE_libavahi-client + select PACKAGE_avahi-dbus-daemon + help + Supports AVAHI daemon to announce samba resources, via mDNS/SD. + default n + + config SAMBA4_SERVER_QUOTAS + bool "enable QUOTAS support" + depends on SAMBA4_SERVER + help + installs: smbcquota + modules: vfs_default_quota + Supports linux sysquotas or windows via the vfs_default_quota module. + default n + + config SAMBA4_SERVER_ACL + bool "enable ACL support" + depends on SAMBA4_SERVER + select PACKAGE_acl + help + installs: mvxattr sharesec smbcacls + modules: vfs_acl_xattr vfs_acl_tdb vfs_posixacl + Supports extended access control lists for windows, linux shares. + default n + + config SAMBA4_SERVER_AD_DC + bool "enable AD-DC support, useing krb5-server (EXPERIMENTAL)" + depends on SAMBA4_SERVER + select PACKAGE_python-base + select PACKAGE_python-crypto + select PACKAGE_krb5-server + select PACKAGE_libopenssl + select PACKAGE_libgnutls + select PACKAGE_libopenldap + help + installs: samba (meta-daemon) python-crypt nsstest ntlm_auth + scripts: samba-tool + see: https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller + HINT: see section (# Using the Domain Controller as a File Server) + NOTE: Extroot is recommend for this setup, since it is not optimized to run completely from ram/tempfs! + default n + + config SAMBA4_SERVER_WINBIND + bool "enable Winbind support" + depends on SAMBA4_SERVER + depends on SAMBA4_SERVER_AD_DC + help + installs: winbindd (daemon) wbinfo winbind_krb5_locator + The Winbindd service enables you to: + Use domain users and groups in local commands, such as chown and chgrp. + Display domain users and groups in local command's output, such as ls. + see: https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC + default n + +config SAMBA4_CLIENT + bool "Client tool" + help + installs: smbclient smbstatus smbtree + default n + +config SAMBA4_NET + bool "Admin tools (net)" + help + installs: net smbcontrol smbget profiles rpcclient smbstatus smbtree + default n + +endif diff --git a/package/lean/samba4/Makefile b/package/lean/samba4/Makefile new file mode 100644 index 000000000..01a69f225 --- /dev/null +++ b/package/lean/samba4/Makefile @@ -0,0 +1,297 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=samba +PKG_VERSION:=4.8.1 +PKG_RELEASE:=1 + +PKG_SOURCE_URL:=https://download.samba.org/pub/samba/stable/ +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_HASH:=8ef7367507f16b7a5e2f6aed5bcdbd1143feca79aa2a07c9b21292b17d7f789d +PKG_LICENSE:=GPL-3.0 + +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 +PKG_BUILD_DEPENDS:=perl/host python/host qemu-userspace/host SAMBA4_SERVER_AD_DC:python-crypto + +PKG_CONFIG_DEPENDS:= \ + CONFIG_SAMBA4_SERVER \ + CONFIG_SAMBA4_CLIENT \ + CONFIG_SAMBA4_NET \ + CONFIG_SAMBA4_SERVER_NETBIOS \ + CONFIG_SAMBA4_SERVER_AVAHI \ + CONFIG_SAMBA4_SERVER_VFS \ + CONFIG_SAMBA4_SERVER_VFSX \ + CONFIG_SAMBA4_SERVER_QUOTAS \ + CONFIG_SAMBA4_SERVER_ACL \ + CONFIG_SAMBA4_SERVER_AD_DC \ + CONFIG_SAMBA4_SERVER_WINBIND \ + CONFIG_PACKAGE_kmod-fs-btrfs \ + CONFIG_PACKAGE_kmod-fs-xfs + +include $(INCLUDE_DIR)/package.mk + +define Package/samba4 + SECTION:=net + CATEGORY:=Network + TITLE:=Samba $(PKG_VERSION) SMB/CIFS (server/client/tools) + URL:=https://www.samba.org/ + MAINTAINER:=Andy Walsh + DEPENDS:=+zlib +libpthread +libpopt +libcap +libtirpc +libnettle +krb5-libs \ + +SAMBA4_SERVER_ACL:acl \ + +SAMBA4_SERVER_AVAHI:libavahi-client +SAMBA4_SERVER_AVAHI:avahi-dbus-daemon \ + +SAMBA4_SERVER_AD_DC:python-base +SAMBA4_SERVER_AD_DC:krb5-server +SAMBA4_SERVER_AD_DC:libopenssl +SAMBA4_SERVER_AD_DC:libgnutls +SAMBA4_SERVER_AD_DC:libopenldap + # buildroot bug? Cant add target deps via '+SAMBA4_SERVER_AD_DC:python-crypto' (as work-around we select via config.in) +endef + +define Package/samba4/config + source "$(SOURCE)/Config.in" +endef + +define Package/samba4/description + The Samba software suite is a collection of programs that implements the + SMB/CIFS protocol for UNIX systems, allowing you to serve files and printers. + + Samba4 implements to the latest SMB v3.1.1 version, supports mDNS via AVAHI and a AD-DC setup via krb5. + NOTE: Without Cluster and printer support. +endef + +CONFIGURE_VARS += \ + CPP="$(TARGET_CROSS)cpp" + +# WAF configure script does not recognize these options +CONFIGURE_ARGS:=$(filter-out \ + --host=% \ + --build=% \ + --program-suffix=% \ + --disable-nls \ + --disable-ipv6 \ + , $(CONFIGURE_ARGS)) + +CONFIGURE_ARGS += \ + --hostcc="$(HOSTCC)" \ + --cross-compile \ + --cross-execute="qemu-$(ARCH) -L $(STAGING_DIR_ROOT)" \ + --disable-cups \ + --disable-iprint \ + --disable-cephfs \ + --disable-fault-handling \ + --disable-glusterfs \ + --disable-rpath \ + --disable-rpath-install \ + --disable-rpath-private-install \ + --enable-fhs \ + --without-automount \ + --without-iconv \ + --without-lttng \ + --without-ntvfs-fileserver \ + --without-pam \ + --without-systemd \ + --without-utmp \ + --without-dmapi \ + --without-fam \ + --without-gettext \ + --without-regedit \ + --without-gpgme \ + --enable-auto-reconfigure + +CONFIGURE_ARGS += \ + --with-lockdir=/var/lock \ + --with-logfilebase=/var/log \ + --with-piddir=/var/run \ + --with-privatedir=/etc/samba + +ifeq ($(CONFIG_SAMBA4_SERVER_AVAHI),y) + CONFIGURE_ARGS += --enable-avahi +else + CONFIGURE_ARGS += --disable-avahi +endif +ifeq ($(CONFIG_SAMBA4_SERVER_QUOTAS),y) + CONFIGURE_ARGS += --with-quotas +else + CONFIGURE_ARGS += --without-quotas +endif +ifeq ($(CONFIG_SAMBA4_SERVER_ACL),y) + CONFIGURE_ARGS += --with-acl-support +else + CONFIGURE_ARGS += --without-acl-support +endif +ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y) + CONFIGURE_ARGS += --enable-gnutls --with-dnsupdate --with-ads --with-ldap + TARGET_CFLAGS := -I$(STAGING_DIR)/usr/include/python2.7 $(TARGET_CFLAGS) +else + CONFIGURE_ARGS += --without-ad-dc --disable-python --nopyc --nopyo --disable-gnutls --without-dnsupdate --without-ads --without-ldap + CONFIGURE_VARS += \ + python_LDFLAGS="" \ + python_LIBDIR="" +endif +ifeq ($(CONFIG_SAMBA4_SERVER_WINBIND),y) + CONFIGURE_ARGS += --with-winbind +else + CONFIGURE_ARGS += --without-winbind +endif +# lib bundling +ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y) + CONFIGURE_ARGS += \ + --bundled-libraries=talloc,tevent,tdb,ldb,cmocka,pytalloc-util,pyldb-util,NONE \ + --builtin-libraries=talloc,tevent,tdb,ldb,cmocka +else + CONFIGURE_ARGS += \ + --bundled-libraries=talloc,tevent,tdb,ldb,cmocka,NONE \ + --builtin-libraries=talloc,tevent,tdb,ldb,cmocka +endif + +CONFIGURE_ARGS += \ + --with-system-mitkrb5 "$(STAGING_DIR)/usr" \ + --with-system-mitkdc=/usr/sbin/krb5kdc + + ## embedded-heimdal + # --bundled-libraries=talloc,tevent,tdb,ldb,com_err,cmocka,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,NONE + +# idmap_tdb,idmap_passdb,idmap_nss (idmap_tdb2,idmap_script) # shared_only (idmap_ad idmap_rfc2307 idmap_autorid idmap_rid idmap_hash) +SAMBA4_IDMAP_MODULES := +SAMBA4_IDMAP_MODULES_SHARED := +# pdb_smbpasswd,pdb_tdbsam (pdb_samba_dsdb) #(pdb_ads,pdb_sam,pdb_samba4,pdb_wbc_sam) +SAMBA4_PDB_MODULES :=pdb_smbpasswd,pdb_tdbsam, +# auth_builtin,auth_sam,auth_winbind,auth_unix (auth_script) #(auth_samba4) +SAMBA4_AUTH_MODULES :=auth_builtin,auth_sam,auth_unix,auth_script, +# vfs_default (vfs_recycle,vfs_audit,vfs_extd_audit,vfs_full_audit,vfs_netatalk,vfs_fake_perms,vfs_default_quota,vfs_readonly,vfs_cap,vfs_expand_msdfs,vfs_posix_eadb,vfs_dfs_samba4 +# vfs_shadow_copy,vfs_shadow_copy2,vfs_readahead,vfs_xattr_tdb,vfs_streams_xattr,vfs_streams_depot,vfs_acl_xattr,vfs_acl_tdb,vfs_posixacl,vfs_preopen,vfs_catia,vfs_media_harmony +# vfs_unityed_media,vfs_fruit,vfs_shell_snap,vfs_commit,vfs_worm,vfs_crossrename,vfs_linux_xfs_sgid,vfs_time_audit,vfs_offline,vfs_syncops,vfs_dirsort,vfs_fileid,vfs_aio_fork,vfs_aio_pthread,vfs_btrfs +# vfs_snapper (needs libdbus) +# vfs_virusfilter +SAMBA4_VFS_MODULES :=vfs_default, +ifeq ($(CONFIG_SAMBA4_SERVER_VFS),y) + SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_fruit,vfs_shadow_copy2,vfs_recycle,vfs_fake_perms,vfs_readonly,vfs_cap,vfs_offline,vfs_crossrename, +ifeq ($(CONFIG_PACKAGE_kmod-fs-btrfs),y) + SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_btrfs, +endif +endif +ifeq ($(CONFIG_SAMBA4_SERVER_VFSX),y) + SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_virusfilter,vfs_shell_snap,vfs_commit,vfs_worm,vfs_xattr_tdb,vfs_streams_xattr,vfs_aio_fork,vfs_aio_pthread,vfs_netatalk,vfs_dirsort,vfs_fileid, +ifeq ($(CONFIG_PACKAGE_kmod-fs-xfs),y) + SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_linux_xfs_sgid, +endif +endif +ifeq ($(CONFIG_SAMBA4_SERVER_QUOTAS),y) + SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_default_quota, +endif +ifeq ($(CONFIG_SAMBA4_SERVER_ACL),y) + SAMBA4_VFS_MODULES :=$(SAMBA4_VFS_MODULES)vfs_posixacl,vfs_acl_xattr,vfs_acl_tdb, + # vfs_zfsacl needs https://github.com/zfsonlinux/zfs/tree/master/include/sys/zfs_acl.h + # vfs_nfs4acl_xattr needs https://github.com/notriddle/libdrpc/blob/master/rpc/xdr.h +endif +ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y) + SAMBA4_PDB_MODULES :=$(SAMBA4_PDB_MODULES)pdb_samba_dsdb, + SAMBA4_AUTH_MODULES :=$(SAMBA4_AUTH_MODULES)auth_samba4, +endif +ifeq ($(CONFIG_SAMBA4_SERVER_WINBIND),y) + SAMBA4_IDMAP_MODULES :=$(SAMBA4_IDMAP_MODULES)idmap_passdb,idmap_nss,idmap_tdb,idmap_tdb2,idmap_script,nss_info_template, + SAMBA4_IDMAP_MODULES_SHARED :=$(SAMBA4_IDMAP_MODULES_SHARED)idmap_autorid,idmap_rid,idmap_ad,idmap_rfc2307, + # idmap_ad needs --with-ads + # idmap_rfc2307 needs ldap headers + SAMBA4_AUTH_MODULES :=$(SAMBA4_AUTH_MODULES)auth_winbind, +endif + +SAMBA4_MODULES :=${SAMBA4_AUTH_MODULES}${SAMBA4_PDB_MODULES}${SAMBA4_IDMAP_MODULES}${SAMBA4_VFS_MODULES} +SAMBA4_MODULES_SHARDED :=${SAMBA4_IDMAP_MODULES_SHARED} + +CONFIGURE_ARGS += \ + --with-static-modules=$(SAMBA4_MODULES)!DEFAULT,!FORCED \ + --with-shared-modules=$(SAMBA4_MODULES_SHARDED)!DEFAULT,!FORCED + +TARGET_CFLAGS += -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections + +# setup build/install targets +BUILD_TARGETS :=smbstatus,smbtree +ifeq ($(CONFIG_SAMBA4_SERVER),y) + BUILD_TARGETS :=$(BUILD_TARGETS),smbd/smbd,smbpasswd,pdbedit,testparm +endif +ifeq ($(CONFIG_SAMBA4_SERVER_QUOTAS),y) + BUILD_TARGETS :=$(BUILD_TARGETS),smbcquotas +endif +ifeq ($(CONFIG_SAMBA4_SERVER_ACL),y) + BUILD_TARGETS :=$(BUILD_TARGETS),mvxattr,sharesec,smbcacls +endif +ifeq ($(CONFIG_SAMBA4_SERVER_NETBIOS),y) + BUILD_TARGETS :=$(BUILD_TARGETS),nmbd,nmblookup +endif +ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y) + BUILD_TARGETS :=$(BUILD_TARGETS),samba,nsstest,ntlm_auth +endif +ifeq ($(CONFIG_SAMBA4_SERVER_WINBIND),y) + BUILD_TARGETS :=$(BUILD_TARGETS),winbindd,wbinfo,winbind_krb5_locator +endif +ifeq ($(CONFIG_SAMBA4_CLIENT),y) + BUILD_TARGETS :=$(BUILD_TARGETS),client/smbclient +endif +ifeq ($(CONFIG_SAMBA4_NET),y) + BUILD_TARGETS :=$(BUILD_TARGETS),net,smbget,smbcontrol,profiles,rpcclient +endif + +# BUG: make install $(BUILD_TARGETS) is not supported, by the buggy waf/make wrapper atm and will instead trigger a full recompile (without -j4)! +# set targets to build/install (is used via makefile waf wrapper) NOTE: shared modules need to-be added to the targets list explicitly! +MAKE_VARS += WAF_TARGETS=--targets=$(SAMBA4_MODULES)$(SAMBA4_MODULES_SHARDED)$(BUILD_TARGETS) + +ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),) +define Build/Prepare + $(Build/Prepare/Default) + # un-bundle dnspython + $(SED) '/"dns.resolver":/d' $(PKG_BUILD_DIR)/third_party/wscript + # unbundle iso8601 + $(SED) '/"iso8601":/d' $(PKG_BUILD_DIR)/third_party/wscript +endef +endif + +define Package/samba4/install + # install libs + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba/*.so* $(1)/usr/lib + # install shared modules + $(INSTALL_DIR) $(1)/usr/lib/samba + if [ -d $(PKG_INSTALL_DIR)/usr/lib/samba/idmap ]; then \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba/idmap $(1)/usr/lib/samba/; \ + fi + if [ -d $(PKG_INSTALL_DIR)/usr/lib/samba/auth ]; then \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba/auth $(1)/usr/lib/samba/; \ + fi + if [ -d $(PKG_INSTALL_DIR)/usr/lib/samba/vfs ]; then \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba/vfs $(1)/usr/lib/samba/; \ + fi + if [ -d $(PKG_INSTALL_DIR)/usr/lib/samba/pdb ]; then \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/samba/pdb $(1)/usr/lib/samba/; \ + fi +ifeq ($(CONFIG_SAMBA4_SERVER_AD_DC),y) + $(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.7 $(1)/usr/lib/ +endif + # install build targets + $(INSTALL_DIR) $(1)/usr + if [ -d $(PKG_INSTALL_DIR)/usr/bin ]; then \ + $(CP) $(PKG_INSTALL_DIR)/usr/bin $(1)/usr/; \ + fi + if [ -d $(PKG_INSTALL_DIR)/usr/sbin ]; then \ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin $(1)/usr/; \ + fi + # install init, config +ifeq ($(CONFIG_SAMBA4_SERVER),y) + $(INSTALL_DIR) $(1)/etc/config $(1)/etc/samba $(1)/etc/init.d + $(INSTALL_DATA) ./files/samba.config $(1)/etc/config/samba4 + $(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/samba + $(INSTALL_BIN) ./files/samba.init $(1)/etc/init.d/samba4 +endif +endef + +define Package/samba4/conffiles +/etc/config/samba4 +/etc/samba/smb.conf.template +/etc/samba/smb.conf +/etc/samba/smbpasswd +/etc/samba/secrets.tdb +/etc/samba/passdb.tdb +/etc/samba/idmap.ldb +/etc/samba/lmhosts +/etc/nsswitch.conf +endef + +$(eval $(call BuildPackage,samba4)) diff --git a/package/lean/samba4/files/samba.config b/package/lean/samba4/files/samba.config new file mode 100644 index 000000000..1d62dcab7 --- /dev/null +++ b/package/lean/samba4/files/samba.config @@ -0,0 +1,7 @@ +config samba + option 'name' 'OpenWrt-SMB' + option 'workgroup' 'WORKGROUP' + option 'description' 'Samba on OpenWrt' + option 'charset' 'UTF-8' + option 'homes' '0' + diff --git a/package/lean/samba4/files/samba.init b/package/lean/samba4/files/samba.init new file mode 100644 index 000000000..ec7672bb3 --- /dev/null +++ b/package/lean/samba4/files/samba.init @@ -0,0 +1,193 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008-2018 OpenWrt.org + +START=60 +USE_PROCD=1 + +smb_header() { + config_get samba_iface $1 interface "loopback lan" + + # resolve interfaces + local interfaces=$( + . /lib/functions/network.sh + + local net + for net in $samba_iface; do + local device + network_is_up $net || continue + network_get_device device "$net" + echo -n "${device:-$net} " + done + ) + + local name workgroup description charset + local hostname="$(uci_get system.@system[0].hostname)" + + config_get name $1 name "${hostname:-OpenWrt}" + config_get workgroup $1 workgroup "${hostname:-WORKGROUP}" + config_get description $1 description "Samba on ${hostname:-OpenWrt}" + config_get charset $1 charset "UTF-8" + + config_get_bool DISABLE_NETBIOS $1 disable_netbios 0 + config_get_bool DISABLE_AD_DC $1 disable_ad_dc 0 + config_get_bool DISABLE_WINBIND $1 disable_winbind 0 + + mkdir -p /var/etc + sed -e "s#|NAME|#$name#g" \ + -e "s#|WORKGROUP|#$workgroup#g" \ + -e "s#|DESCRIPTION|#$description#g" \ + -e "s#|INTERFACES|#$interfaces#g" \ + -e "s#|CHARSET|#$charset#g" \ + /etc/samba/smb.conf.template > /var/etc/smb.conf + + echo -e "\n######### Dynamic written config options #########\n" >> /var/etc/smb.conf + if [ "$DISABLE_NETBIOS" -eq 1 ] || [ ! -x /usr/sbin/nmbd ]; then + echo -e "\tdisable netbios = yes" >> /var/etc/smb.conf + fi + + local homes + config_get_bool homes $1 homes 0 + [ $homes -gt 0 ] && { + cat <> /var/etc/smb.conf + +[homes] + comment = Home Directories + browsable = no + writable = yes + read only = no + create mask = 0750 +EOT + } + + [ -L /etc/samba/smb.conf ] || ln -nsf /var/etc/smb.conf /etc/samba/smb.conf +} + +smb_add_share() { + local name + local path + local users + local public + local writable + local printable + local create_mask + + local browseable + local read_only + local guest_ok + local guest_only + local inherit_owner + local vfs_objects + + config_get name $1 name + config_get path $1 path + config_get users $1 users + config_get public $1 public + config_get writable $1 writable + config_get printable $1 printable + config_get create_mask $1 create_mask + config_get dir_mask $1 dir_mask + + + config_get browseable $1 browseable + config_get read_only $1 read_only + config_get guest_ok $1 guest_ok + config_get guest_only $1 guest_only + config_get inherit_owner $1 inherit_owner + config_get vfs_objects $1 vfs_objects + + + [ -z "$name" -o -z "$path" ] && return + + echo -e "\n[$name]\n\tpath = $path" >> /var/etc/smb.conf + [ -n "$users" ] && echo -e "\tvalid users = $users" >> /var/etc/smb.conf + [ -n "$public" ] && echo -e "\tpublic = $public" >> /var/etc/smb.conf + [ -n "$writable" ] && echo -e "\twritable = $writable" >> /var/etc/smb.conf + [ -n "$printable" ] && echo -e "\tprintable = $printable" >> /var/etc/smb.conf + [ -n "$create_mask" ] && echo -e "\tcreate mask = $create_mask" >> /var/etc/smb.conf + [ -n "$dir_mask" ] && echo -e "\tdirectory mask = $dir_mask" >> /var/etc/smb.conf + + [ -n "$browseable" ] && echo -e "\tbrowseable = $browseable" >> /var/etc/smb.conf + [ -n "$read_only" ] && echo -e "\tread only = $read_only" >> /var/etc/smb.conf + [ -n "$guest_ok" ] && echo -e "\tguest ok = $guest_ok" >> /var/etc/smb.conf + [ -n "$guest_only" ] && echo -e "\tguest only = $guest_only" >> /var/etc/smb.conf + [ -n "$inherit_owner" ] && echo -e "\tinherit owner = $inherit_owner" >> /var/etc/smb.conf + [ -n "$vfs_objects" ] && echo -e "\tvfs objects = $vfs_objects" >> /var/etc/smb.conf +} + +init_config() { + # Create samba dirs + [ -d /var/lib/samba ] || mkdir -p /var/lib/samba + [ -d /var/cache/samba ] || mkdir -p /var/cache/samba + [ -d /var/run/samba ] || mkdir -p /var/run/samba + [ -d /var/log/samba ] || mkdir -p /var/log/samba + [ -d /var/lock ] && chmod 0755 /var/lock || { + mkdir -p /var/lock + chmod 0755 /var/lock + } + + config_load samba4 + config_foreach smb_header samba + config_foreach smb_add_share sambashare +} + +reload_service() { + init_config + + killall -HUP samba + killall -HUP smbd + killall -HUP nmbd + killall -HUP winbindd +} + +service_triggers() { + procd_add_reload_trigger samba4 + + local i + for i in $samba_iface; do + procd_add_reload_interface_trigger $i + done +} + +start_service() { + init_config + + # start main AC-DC daemon, will spawn (smbd,nmbd,winbindd) as needed/configured. + if [ "$DISABLE_AD_DC" -ne 1 ] && [ -x /usr/sbin/samba ]; then + procd_open_instance + procd_set_param command /usr/sbin/samba -F + procd_set_param respawn + procd_set_param file /var/etc/smb.conf + procd_close_instance + else + # start fileserver daemon + procd_open_instance + procd_set_param command /usr/sbin/smbd -F + procd_set_param respawn + procd_set_param file /var/etc/smb.conf + procd_close_instance + + # start netbios daemon + if [ "$DISABLE_NETBIOS" -ne 1 ] && [ -x /usr/sbin/nmbd ]; then + procd_open_instance + procd_set_param command /usr/sbin/nmbd -F + procd_set_param respawn + procd_set_param file /var/etc/smb.conf + procd_close_instance + fi + # start winbind daemon + if [ "$DISABLE_WINBIND" -ne 1 ] && [ -x /usr/sbin/winbindd ]; then + procd_open_instance + procd_set_param command /usr/sbin/winbindd -F + procd_set_param respawn + procd_set_param file /var/etc/smb.conf + procd_close_instance + fi + fi + # lower priority using renice (if found) + if [ -x /usr/bin/renice ]; then + [ -x /usr/sbin/samba ] && renice -n 2 $(pidof samba) + [ -x /usr/sbin/smbd ] && renice -n 2 $(pidof smbd) + [ -x /usr/sbin/nmbd ] && renice -n 2 $(pidof nmbd) + [ -x /usr/sbin/winbindd ] && renice -n 2 $(pidof winbindd) + fi +} diff --git a/package/lean/samba4/files/smb.conf.template b/package/lean/samba4/files/smb.conf.template new file mode 100644 index 000000000..19d6d0654 --- /dev/null +++ b/package/lean/samba4/files/smb.conf.template @@ -0,0 +1,92 @@ +[global] + netbios name = |NAME| + interfaces = |INTERFACES| + server string = |DESCRIPTION| + unix charset = |CHARSET| + workgroup = |WORKGROUP| + + ## This global parameter allows the Samba admin to limit what interfaces on a machine will serve SMB requests. + bind interfaces only = yes + + ## time for inactive connections to-be closed in minutes + deadtime = 30 + + ## disable core dumps + enable core files = no + + ## set security (auto, user, domain, ads) + security = user + + ## This parameter controls whether a remote client is allowed or required to use SMB encryption. + ## It has different effects depending on whether the connection uses SMB1 or SMB2 and newer: + ## If the connection uses SMB1, then this option controls the use of a Samba-specific extension to the SMB protocol introduced in Samba 3.2 that makes use of the Unix extensions. + ## If the connection uses SMB2 or newer, then this option controls the use of the SMB-level encryption that is supported in SMB version 3.0 and above and available in Windows 8 and newer. + ##(default/auto,desired,required,off) + #smb encrypt = default + + ## set invalid users + invalid users = root + + ## map unknow users to guest + map to guest = Bad User + + ## allow client access to accounts that have null passwords. + null passwords = yes + + ## Use the old plaintext passdb backend. + #passdb backend = smbpasswd + + ## Set location of smbpasswd ('smbd -b' will show default compiled location) + #smb passwd file = /etc/samba/smbpasswd + + ## LAN/WAN options (IPTOS_LOWDELAY TCP_NODELAY) WAN (IPTOS_THROUGHPUT) + socket options = IPTOS_LOWDELAY TCP_NODELAY + + ## lower CPU useage if supported + use sendfile = yes + + ## samba will behave as previous versions of Samba would and will fail the lock request immediately if the lock range cannot be obtained. + #blocking locks = No + + ## disable loading of all printcap printers by default (iprint, cups, lpstat) + load printers = No + printcap name = /dev/null + + ## Disable that nmbd is acting as a WINS server for unknow netbios names + #dns proxy = No + + ## win/unix user mapping backend + #idmap config * : backend = tdb + + ## Allows the server name that is advertised through MDNS to be set to the hostname rather than the Samba NETBIOS name. + ## This allows an administrator to make Samba registered MDNS records match the case of the hostname rather than being in all capitals. + ## (netbios, mdns) + #mdns name = mdns + + ## Clients that only support netbios won't be able to see your samba server when netbios support is disabled. + #disable netbios = Yes + + ## Setting this value to no will cause nmbd never to become a local master browser. + #local master = no + + ## (auto, yes) If this is set to yes, on startup, nmbd will force an election, and it will have a slight advantage in winning the election. It is recommended that this parameter is used in conjunction with domain master = yes, so that nmbd can guarantee becoming a domain master. + #preferred master = yes + + ## (445 139) Specifies which ports the server should listen on for SMB traffic. + ## 139 is netbios/nmbd + #smb ports = 445 139 + +################ Filesystem and creation rules ################ + ## reported filesystem type (NTFS,Samba,FAT) + #fstype = FAT + + ## Allows a user who has write access to the file (by whatever means, including an ACL permission) to modify the permissions (including ACL) on it. + #dos filemode = Yes + + ## file/dir creating rules + #create mask = 0666 + #directory mask = 0777 + #force group = root + #force user = root + #inherit owner = windows and unix +################################################################ diff --git a/package/lean/samba4/patches/001-samba-4.4.0-pam.patch b/package/lean/samba4/patches/001-samba-4.4.0-pam.patch new file mode 100644 index 000000000..451601383 --- /dev/null +++ b/package/lean/samba4/patches/001-samba-4.4.0-pam.patch @@ -0,0 +1,29 @@ +--- samba-4.4.0rc2/source3/wscript ++++ samba-4.4.0rc2/source3/wscript +@@ -870,7 +870,7 @@ + if conf.env.with_iconv: + conf.DEFINE('HAVE_ICONV', 1) + +- if Options.options.with_pam: ++ if Options.options.with_pam != False: + use_pam=True + conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h') + if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'): +@@ -943,6 +943,17 @@ + conf.DEFINE('WITH_PAM', 1) + conf.DEFINE('WITH_PAM_MODULES', 1) + ++ else: ++ Logs.warn("PAM disabled") ++ use_pam=False ++ conf.undefine('WITH_PAM') ++ conf.undefine('WITH_PAM_MODULES') ++ conf.undefine('HAVE_SECURITY_PAM_APPL_H') ++ conf.undefine('PAM_RHOST') ++ conf.undefine('PAM_TTY') ++ conf.undefine('HAVE_PAM_PAM_APPL_H') ++ ++ + seteuid = False + + # diff --git a/package/lean/samba4/patches/002-samba-4.6.2-netdb_defines.patch b/package/lean/samba4/patches/002-samba-4.6.2-netdb_defines.patch new file mode 100644 index 000000000..eb06866f4 --- /dev/null +++ b/package/lean/samba4/patches/002-samba-4.6.2-netdb_defines.patch @@ -0,0 +1,19 @@ +Index: samba-4.6.2/nsswitch/wins.c +=================================================================== +--- samba-4.6.2.orig/nsswitch/wins.c ++++ samba-4.6.2/nsswitch/wins.c +@@ -39,6 +39,14 @@ static pthread_mutex_t wins_nss_mutex = + #define INADDRSZ 4 + #endif + ++#ifndef NETDB_INTERNAL ++#define NETDB_INTERNAL (-1) ++#endif ++ ++#ifndef NETDB_SUCCESS ++#define NETDB_SUCCESS 0 ++#endif ++ + NSS_STATUS _nss_wins_gethostbyname_r(const char *hostname, + struct hostent *he, + char *buffer, diff --git a/package/lean/samba4/patches/003-dnsserver-4.7.0.patch b/package/lean/samba4/patches/003-dnsserver-4.7.0.patch new file mode 100644 index 000000000..0c7592f8e --- /dev/null +++ b/package/lean/samba4/patches/003-dnsserver-4.7.0.patch @@ -0,0 +1,19 @@ +samba: build dnsserver_common code + +Just 'install' does not seem to do it. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater + +--- a/source4/dns_server/wscript_build ++++ b/source4/dns_server/wscript_build +@@ -4,7 +4,7 @@ bld.SAMBA_LIBRARY('dnsserver_common', + source='dnsserver_common.c', + deps='samba-util samba-errors ldbsamba clidns', + private_library=True, +- install=bld.AD_DC_BUILD_IS_ENABLED() ++ enabled=bld.AD_DC_BUILD_IS_ENABLED() + ) + + bld.SAMBA_MODULE('service_dns', diff --git a/package/lean/samba4/patches/004-samba-4.7.4-no_ads.patch b/package/lean/samba4/patches/004-samba-4.7.4-no_ads.patch new file mode 100644 index 000000000..d4c26a39a --- /dev/null +++ b/package/lean/samba4/patches/004-samba-4.7.4-no_ads.patch @@ -0,0 +1,22 @@ +https://lists.samba.org/archive/samba-technical/2017-December/124629.html + +--- a/source3/libads/kerberos_keytab.c ++++ b/source3/libads/kerberos_keytab.c +@@ -32,8 +32,6 @@ + + #ifdef HAVE_KRB5 + +-#ifdef HAVE_ADS +- + /* This MAX_NAME_LEN is a constant defined in krb5.h */ + #ifndef MAX_KEYTAB_NAME_LEN + #define MAX_KEYTAB_NAME_LEN 1100 +@@ -85,6 +83,8 @@ + return ret; + } + ++#ifdef HAVE_ADS ++ + /********************************************************************** + Adds a single service principal, i.e. 'host' to the system keytab + ***********************************************************************/ diff --git a/package/lean/samba4/patches/010-source3-msgsock-nvram-fix.patch b/package/lean/samba4/patches/010-source3-msgsock-nvram-fix.patch new file mode 100644 index 000000000..c2e69d396 --- /dev/null +++ b/package/lean/samba4/patches/010-source3-msgsock-nvram-fix.patch @@ -0,0 +1,20 @@ +--- a/source3/lib/messages.c ++++ b/source3/lib/messages.c +@@ -221,7 +221,7 @@ struct messaging_context *messaging_init + return NULL; + } + +- priv_path = private_path("msg.sock"); ++ priv_path = lock_path("msg.sock"); + if (priv_path == NULL) { + TALLOC_FREE(ctx); + return NULL; +@@ -311,7 +311,7 @@ NTSTATUS messaging_reinit(struct messagi + + msg_ctx->msg_dgm_ref = messaging_dgm_ref( + msg_ctx, msg_ctx->event_ctx, &msg_ctx->id.unique_id, +- private_path("msg.sock"), lck_path, ++ lock_path("msg.sock"), lck_path, + messaging_recv_cb, msg_ctx, &ret); + + if (msg_ctx->msg_dgm_ref == NULL) { diff --git a/package/lean/samba4/patches/011-source4-msgsock-nvram-fix.patch b/package/lean/samba4/patches/011-source4-msgsock-nvram-fix.patch new file mode 100644 index 000000000..c9cf955fb --- /dev/null +++ b/package/lean/samba4/patches/011-source4-msgsock-nvram-fix.patch @@ -0,0 +1,11 @@ +--- a/source4/lib/messaging/messaging.c ++++ b/source4/lib/messaging/messaging.c +@@ -323,7 +323,7 @@ struct imessaging_context *imessaging_in + goto fail; + } + +- msg->sock_dir = lpcfg_private_path(msg, lp_ctx, "msg.sock"); ++ msg->sock_dir = lpcfg_lock_path(msg, lp_ctx, "msg.sock"); + if (msg->sock_dir == NULL) { + goto fail; + } diff --git a/package/lean/samba4/patches/012-makefile-targets-fix.patch b/package/lean/samba4/patches/012-makefile-targets-fix.patch new file mode 100644 index 000000000..a309a4b1d --- /dev/null +++ b/package/lean/samba4/patches/012-makefile-targets-fix.patch @@ -0,0 +1,19 @@ +--- a/Makefile ++++ b/Makefile +@@ -5,13 +5,13 @@ WAF_BINARY=$(PYTHON) ./buildtools/bin/wa + WAF=WAF_MAKE=1 $(WAF_BINARY) + + all: +- $(WAF) build ++ $(WAF) build $(WAF_TARGETS) + + install: +- $(WAF) install ++ $(WAF) install $(WAF_TARGETS) + + uninstall: +- $(WAF) uninstall ++ $(WAF) uninstall $(WAF_TARGETS) + + test: + $(WAF) test $(TEST_OPTIONS) diff --git a/package/lean/samba4/patches/100-do-not-import-target-module-while-cross-compile.patch b/package/lean/samba4/patches/100-do-not-import-target-module-while-cross-compile.patch new file mode 100644 index 000000000..e112b3b40 --- /dev/null +++ b/package/lean/samba4/patches/100-do-not-import-target-module-while-cross-compile.patch @@ -0,0 +1,58 @@ +Some modules such as dynamic library maybe cann't be imported while cross compile, +we just check whether does the module exist. + +Signed-off-by: Bian Naimeng + +Index: samba-4.4.2/buildtools/wafsamba/samba_bundled.py +=================================================================== +--- samba-4.4.2.orig/buildtools/wafsamba/samba_bundled.py ++++ samba-4.4.2/buildtools/wafsamba/samba_bundled.py +@@ -2,6 +2,7 @@ + + import sys + import Build, Options, Logs ++import imp, os + from Configure import conf + from samba_utils import TO_LIST + +@@ -230,17 +231,32 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li + # versions + minversion = minimum_library_version(conf, libname, minversion) + +- try: +- m = __import__(modulename) +- except ImportError: +- found = False +- else: ++ # Find module in PYTHONPATH ++ stuff = imp.find_module(modulename, [os.environ["PYTHONPATH"]]) ++ if stuff: + try: +- version = m.__version__ +- except AttributeError: ++ m = imp.load_module(modulename, stuff[0], stuff[1], stuff[2]) ++ except ImportError: + found = False ++ ++ if conf.env.CROSS_COMPILE: ++ # Some modules such as dynamic library maybe cann't be imported ++ # while cross compile, we just check whether the module exist ++ Logs.warn('Cross module[%s] has been found, but can not be loaded.' % (stuff[1])) ++ found = True + else: +- found = tuplize_version(version) >= tuplize_version(minversion) ++ try: ++ version = m.__version__ ++ except AttributeError: ++ found = False ++ else: ++ found = tuplize_version(version) >= tuplize_version(minversion) ++ finally: ++ if stuff[0]: ++ stuff[0].close() ++ else: ++ found = False ++ + if not found and not conf.LIB_MAY_BE_BUNDLED(libname): + Logs.error('ERROR: Python module %s of version %s not found, and bundling disabled' % (libname, minversion)) + sys.exit(1) diff --git a/package/lean/samba4/patches/101-do-not-check-xsltproc-manpages.patch b/package/lean/samba4/patches/101-do-not-check-xsltproc-manpages.patch new file mode 100644 index 000000000..c37cfcde4 --- /dev/null +++ b/package/lean/samba4/patches/101-do-not-check-xsltproc-manpages.patch @@ -0,0 +1,43 @@ +Don't check xsltproc manpages + +Signed-off-by: Bian Naimeng + +Index: samba-4.4.2/lib/ldb/wscript +=================================================================== +--- samba-4.4.2.orig/lib/ldb/wscript ++++ samba-4.4.2/lib/ldb/wscript +@@ -65,7 +65,7 @@ def configure(conf): + conf.define('USING_SYSTEM_LDB', 1) + + if conf.env.standalone_ldb: +- conf.CHECK_XSLTPROC_MANPAGES() ++ #conf.CHECK_XSLTPROC_MANPAGES() + + # we need this for the ldap backend + if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): +Index: samba-4.4.2/lib/talloc/wscript +=================================================================== +--- samba-4.4.2.orig/lib/talloc/wscript ++++ samba-4.4.2/lib/talloc/wscript +@@ -56,7 +56,7 @@ def configure(conf): + if conf.env.standalone_talloc: + conf.env.TALLOC_COMPAT1 = Options.options.TALLOC_COMPAT1 + +- conf.CHECK_XSLTPROC_MANPAGES() ++ #conf.CHECK_XSLTPROC_MANPAGES() + + if not conf.env.disable_python: + # also disable if we don't have the python libs installed +Index: samba-4.4.2/lib/tdb/wscript +=================================================================== +--- samba-4.4.2.orig/lib/tdb/wscript ++++ samba-4.4.2/lib/tdb/wscript +@@ -92,7 +92,7 @@ def configure(conf): + not conf.env.disable_tdb_mutex_locking): + conf.define('USE_TDB_MUTEX_LOCKING', 1) + +- conf.CHECK_XSLTPROC_MANPAGES() ++ #conf.CHECK_XSLTPROC_MANPAGES() + + if not conf.env.disable_python: + # also disable if we don't have the python libs installed diff --git a/target/linux/x86/Makefile b/target/linux/x86/Makefile index 1a7e822c1..52322fbf8 100644 --- a/target/linux/x86/Makefile +++ b/target/linux/x86/Makefile @@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/target.mk DEFAULT_PACKAGES += partx-utils mkf2fs fdisk e2fsprogs wpad kmod-usb-hid \ kmod-ath5k kmod-ath9k kmod-ath9k-htc kmod-ath10k kmod-rt2800-usb kmod-e1000e kmod-igb kmod-igbvf kmod-ixgbe kmod-pcnet32 kmod-tulip kmod-vmxnet3 htop lm-sensors \ -autocore automount autosamba ath10k-firmware-qca988x brcmfmac-firmware-43602a1-pcie \ +autocore automount ath10k-firmware-qca988x brcmfmac-firmware-43602a1-pcie \ alsa-utils kmod-ac97 kmod-sound-hda-core kmod-sound-hda-codec-realtek kmod-sound-hda-codec-via kmod-sound-via82xx kmod-usb-audio \ kmod-usb-net kmod-usb-net-asix kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8150 kmod-usb-net-rtl8152