summaryrefslogtreecommitdiffstats
path: root/remote/modules/samba/module.build
diff options
context:
space:
mode:
authorMichael Pereira Neves2014-03-31 21:14:19 +0200
committerMichael Pereira Neves2014-03-31 21:14:19 +0200
commitc68cfbfde55cf8565ba186dd60f2065e2269650a (patch)
tree6dbe7a31e0d943c968fad644f653effc903ae9b7 /remote/modules/samba/module.build
parent[brazilian] add brazilian locale and keymaps (diff)
parent[vbox] re-set permissions: openslx/script entries (diff)
downloadtm-scripts-c68cfbfde55cf8565ba186dd60f2065e2269650a.tar.gz
tm-scripts-c68cfbfde55cf8565ba186dd60f2065e2269650a.tar.xz
tm-scripts-c68cfbfde55cf8565ba186dd60f2065e2269650a.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/samba/module.build')
-rw-r--r--remote/modules/samba/module.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/remote/modules/samba/module.build b/remote/modules/samba/module.build
new file mode 100644
index 00000000..a0a60831
--- /dev/null
+++ b/remote/modules/samba/module.build
@@ -0,0 +1,26 @@
+fetch_source() {
+ :
+}
+
+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
+}
+
+post_copy() {
+ :
+}