summaryrefslogtreecommitdiffstats
path: root/remote/modules/smbclient
diff options
context:
space:
mode:
authorJonathan Bauer2014-01-31 14:21:32 +0100
committerJonathan Bauer2014-01-31 14:21:32 +0100
commit4de35a9149dbbd64c8dea139db0835fa423add1c (patch)
tree271eb4f55ef949b03ba39b5ba4bc431d5a3f086e /remote/modules/smbclient
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-4de35a9149dbbd64c8dea139db0835fa423add1c.tar.gz
tm-scripts-4de35a9149dbbd64c8dea139db0835fa423add1c.tar.xz
tm-scripts-4de35a9149dbbd64c8dea139db0835fa423add1c.zip
[smbclient] new module for smbclient stuff
(including smbspool)
Diffstat (limited to 'remote/modules/smbclient')
-rw-r--r--remote/modules/smbclient/smbclient.build20
-rw-r--r--remote/modules/smbclient/smbclient.conf11
-rw-r--r--remote/modules/smbclient/smbclient.conf.ubuntu9
3 files changed, 40 insertions, 0 deletions
diff --git a/remote/modules/smbclient/smbclient.build b/remote/modules/smbclient/smbclient.build
new file mode 100644
index 00000000..dc28dd26
--- /dev/null
+++ b/remote/modules/smbclient/smbclient.build
@@ -0,0 +1,20 @@
+fetch_source() {
+ :
+}
+
+build() {
+ COPYLIST="list_dpkg_output"
+ [ -e "$COPYLIST" ] && rm "$COPYLIST"
+
+ list_packet_files >> "$COPYLIST"
+ tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}"
+
+ local BIN_LOCATION="$(which smbspool)"
+ if [ ! -z "${BIN_LOCATION}" -a -e "${BIN_LOCATION}" ]; then
+ ln -sf "${BIN_LOCATION}" "${MODULE_BUILD_DIR}/usr/lib/cups/backend/smb"
+ fi
+}
+
+post_copy() {
+ :
+}
diff --git a/remote/modules/smbclient/smbclient.conf b/remote/modules/smbclient/smbclient.conf
new file mode 100644
index 00000000..76c2ee32
--- /dev/null
+++ b/remote/modules/smbclient/smbclient.conf
@@ -0,0 +1,11 @@
+REQUIRED_BINARIES="
+ smbspool
+ findsmb
+ smbcacls
+ rpcclient
+ smbcquotas
+ smbget
+ smbclient
+ smbtree
+ smbtar
+"
diff --git a/remote/modules/smbclient/smbclient.conf.ubuntu b/remote/modules/smbclient/smbclient.conf.ubuntu
new file mode 100644
index 00000000..4b33f4bd
--- /dev/null
+++ b/remote/modules/smbclient/smbclient.conf.ubuntu
@@ -0,0 +1,9 @@
+REQUIRED_INSTALLED_PACKAGES="
+ smbclient
+"
+REQUIRED_CONTENT_PACKAGES="
+ smbclient
+"
+REQUIRED_FILES="
+ /usr/lib/cups/backend/smb
+"