summaryrefslogtreecommitdiffstats
path: root/remote/modules/samba
diff options
context:
space:
mode:
authorSimon Rettberg2013-10-18 18:46:11 +0200
committerSimon Rettberg2013-10-18 18:46:11 +0200
commit5027bfbc817dc5620bbc222a47074f99bd340692 (patch)
treec7e37f7f2e2f2c87aae2e5cdaa4f1c246b73e1fa /remote/modules/samba
parent[rootfs-stage32] Remove retarded $PATH declaration from /etc/profile (diff)
parentMerge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff)
downloadtm-scripts-5027bfbc817dc5620bbc222a47074f99bd340692.tar.gz
tm-scripts-5027bfbc817dc5620bbc222a47074f99bd340692.tar.xz
tm-scripts-5027bfbc817dc5620bbc222a47074f99bd340692.zip
Merge branch 'master' of simonslx:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/samba')
-rw-r--r--remote/modules/samba/samba.build11
-rw-r--r--remote/modules/samba/samba.conf.opensuse24
2 files changed, 34 insertions, 1 deletions
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"