From f7506ca1a37312b87e7e81cf47f568542d8ec667 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 11 Oct 2013 17:42:07 +0200 Subject: [samba] started rudimentary and bloated samba module for AD compatibility. WIP --- remote/modules/samba/samba.build | 17 +++++++++++++++++ remote/modules/samba/samba.conf | 24 ++++++++++++++++++++++++ remote/modules/samba/samba.conf.ubuntu | 20 ++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 remote/modules/samba/samba.build create mode 100644 remote/modules/samba/samba.conf create mode 100644 remote/modules/samba/samba.conf.ubuntu (limited to 'remote/modules/samba') diff --git a/remote/modules/samba/samba.build b/remote/modules/samba/samba.build new file mode 100644 index 00000000..bd189b66 --- /dev/null +++ b/remote/modules/samba/samba.build @@ -0,0 +1,17 @@ +fetch_source() { + : +} + +build() { + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + + return 0 +} + +post_copy() { + : +} diff --git a/remote/modules/samba/samba.conf b/remote/modules/samba/samba.conf new file mode 100644 index 00000000..00063187 --- /dev/null +++ b/remote/modules/samba/samba.conf @@ -0,0 +1,24 @@ +REQUIRED_BINARIES=" + smbd + nmbd + smbclient + winbindd + smbnetfs + fusermount + keyctl + request-key + key.dns_resolver +" +REQUIRED_FILES=" + /etc/smbnetfs.conf + /etc/request-key.conf + /etc/request-key.d +" +# TODO dont copy all the binaries, strip the list down. +REQUIRED_DIRECTORIES=" + /usr/bin +" +# TODO check if the /var/lib/samba/*.tdg can be generated by mltk. +REQUIRED_SYSTEM_FILES=" + /var/lib/samba +" diff --git a/remote/modules/samba/samba.conf.ubuntu b/remote/modules/samba/samba.conf.ubuntu new file mode 100644 index 00000000..20bb46ba --- /dev/null +++ b/remote/modules/samba/samba.conf.ubuntu @@ -0,0 +1,20 @@ +REQUIRED_INSTALLED_PACKAGES=" + samba + smbclient + winbind + krb5-user + cifs-utils + smbnetfs + fuse + keyutils +" +REQUIRED_CONTENT_PACKAGES=" + samba + smbclient + winbind + krb5-user + cifs-utils + smbnetfs + fuse + keyutils +" -- cgit v1.2.3-55-g7522 From 3d346444efa83e1f84f0cf267aebea7022a4172d Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Mon, 14 Oct 2013 19:08:44 +0200 Subject: [samba] Some openSuse support: conf file and build file extension --- remote/modules/samba/samba.build | 11 ++++++++++- remote/modules/samba/samba.conf.opensuse | 24 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 remote/modules/samba/samba.conf.opensuse (limited to 'remote/modules/samba') diff --git a/remote/modules/samba/samba.build b/remote/modules/samba/samba.build index bd189b66..a0a60831 100644 --- a/remote/modules/samba/samba.build +++ b/remote/modules/samba/samba.build @@ -6,9 +6,18 @@ build() { COPYLIST="list_dpkg_output" [ -e "$COPYLIST" ] && rm "$COPYLIST" + if [ "x$PACKET_MANAGER" == "xzypper" ]; then + if [ $(zypper lr | grep -ci filesystems) -eq 0 ]; then + zypper addrepo http://download.opensuse.org/repositories/filesystems/openSUSE_${SYS_VERSION} Filesystems + pinfo "Repository added: OpenSuse Build filesystems" + fi + # Ubuntu writes to /etc, Suse does not: + mkdir "$MODULE_BUILD_DIR"/etc/ + cp /usr/share/doc/packages/smbnetfs/smbnetfs.conf "$MODULE_BUILD_DIR"/etc/ + fi + list_packet_files >> "$COPYLIST" tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" - return 0 } diff --git a/remote/modules/samba/samba.conf.opensuse b/remote/modules/samba/samba.conf.opensuse new file mode 100644 index 00000000..fd06e50a --- /dev/null +++ b/remote/modules/samba/samba.conf.opensuse @@ -0,0 +1,24 @@ +REQUIRED_INSTALLED_PACKAGES=" + samba + samba-client + samba-winbind + krb5-client + cifs-utils + smbnetfs + fuse + keyutils +" +REQUIRED_CONTENT_PACKAGES=" + samba + samba-client + samba-winbind + krb5-client + cifs-utils + smbnetfs + fuse + keyutils +" + +# This is just a list for grep excludes used in samba.build opensuse branch +# Please use pipe symbol and backslash (\|) as separator as being used in grep +REQUIRED_PACKET_FILES_BLACKLIST="/etc/samba/smbpasswd\|/ding/dong" -- cgit v1.2.3-55-g7522