From 5acda3eaeabae9045609539303a8c12c4ce401f1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 25 Apr 2016 12:01:08 +0200 Subject: merge with latest dev version --- .../data/etc/tmpfiles.d/ensure-smbconf-exists.conf | 4 ++++ core/modules/smbclient/module.build | 21 +++++++++++++++++++++ core/modules/smbclient/module.conf | 10 ++++++++++ core/modules/smbclient/module.conf.debian | 9 +++++++++ core/modules/smbclient/module.conf.fedora | 9 +++++++++ core/modules/smbclient/module.conf.opensuse | 9 +++++++++ core/modules/smbclient/module.conf.ubuntu | 9 +++++++++ 7 files changed, 71 insertions(+) create mode 100644 core/modules/smbclient/data/etc/tmpfiles.d/ensure-smbconf-exists.conf create mode 100644 core/modules/smbclient/module.build create mode 100644 core/modules/smbclient/module.conf create mode 100644 core/modules/smbclient/module.conf.debian create mode 100644 core/modules/smbclient/module.conf.fedora create mode 100644 core/modules/smbclient/module.conf.opensuse create mode 100644 core/modules/smbclient/module.conf.ubuntu (limited to 'core/modules/smbclient') diff --git a/core/modules/smbclient/data/etc/tmpfiles.d/ensure-smbconf-exists.conf b/core/modules/smbclient/data/etc/tmpfiles.d/ensure-smbconf-exists.conf new file mode 100644 index 00000000..f893eb71 --- /dev/null +++ b/core/modules/smbclient/data/etc/tmpfiles.d/ensure-smbconf-exists.conf @@ -0,0 +1,4 @@ +# smbspool for some reason insists on reading this file, even if it is empty, otherwise it will bail out +d /etc/samba 0755 root root - +f /etc/samba/smb.conf 0644 root root - + diff --git a/core/modules/smbclient/module.build b/core/modules/smbclient/module.build new file mode 100644 index 00000000..ec2c80fe --- /dev/null +++ b/core/modules/smbclient/module.build @@ -0,0 +1,21 @@ +fetch_source() { + : +} + +build() { + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + + mkdir -p "${MODULE_BUILD_DIR}/usr/lib/cups/backend" || perror "Could not create '${MODULE_BUILD_DIR}/usr/lib/cups/backend'" + 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/core/modules/smbclient/module.conf b/core/modules/smbclient/module.conf new file mode 100644 index 00000000..460c57b5 --- /dev/null +++ b/core/modules/smbclient/module.conf @@ -0,0 +1,10 @@ +REQUIRED_BINARIES=" + smbspool + smbcacls + rpcclient + smbcquotas + smbget + smbclient + smbtree + smbtar +" diff --git a/core/modules/smbclient/module.conf.debian b/core/modules/smbclient/module.conf.debian new file mode 100644 index 00000000..4b33f4bd --- /dev/null +++ b/core/modules/smbclient/module.conf.debian @@ -0,0 +1,9 @@ +REQUIRED_INSTALLED_PACKAGES=" + smbclient +" +REQUIRED_CONTENT_PACKAGES=" + smbclient +" +REQUIRED_FILES=" + /usr/lib/cups/backend/smb +" diff --git a/core/modules/smbclient/module.conf.fedora b/core/modules/smbclient/module.conf.fedora new file mode 100644 index 00000000..f524d100 --- /dev/null +++ b/core/modules/smbclient/module.conf.fedora @@ -0,0 +1,9 @@ +REQUIRED_INSTALLED_PACKAGES=" + samba-client +" +REQUIRED_CONTENT_PACKAGES=" + samba-client +" +REQUIRED_FILES=" + /usr/lib/cups/backend/smb +" diff --git a/core/modules/smbclient/module.conf.opensuse b/core/modules/smbclient/module.conf.opensuse new file mode 100644 index 00000000..f524d100 --- /dev/null +++ b/core/modules/smbclient/module.conf.opensuse @@ -0,0 +1,9 @@ +REQUIRED_INSTALLED_PACKAGES=" + samba-client +" +REQUIRED_CONTENT_PACKAGES=" + samba-client +" +REQUIRED_FILES=" + /usr/lib/cups/backend/smb +" diff --git a/core/modules/smbclient/module.conf.ubuntu b/core/modules/smbclient/module.conf.ubuntu new file mode 100644 index 00000000..4b33f4bd --- /dev/null +++ b/core/modules/smbclient/module.conf.ubuntu @@ -0,0 +1,9 @@ +REQUIRED_INSTALLED_PACKAGES=" + smbclient +" +REQUIRED_CONTENT_PACKAGES=" + smbclient +" +REQUIRED_FILES=" + /usr/lib/cups/backend/smb +" -- cgit v1.2.3-55-g7522