summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2015-01-28 14:04:31 +0100
committerroot2015-01-28 14:04:31 +0100
commit0e00823da82709086999fbe5b0b3066e4cadcbf3 (patch)
tree45c05847f494e1f2bca8b20dd7607072404e7abf /remote
parent[cups-freiburg] added new Xerox Phaser 5500DT ppd and update printers.conf [W... (diff)
downloadtm-scripts-0e00823da82709086999fbe5b0b3066e4cadcbf3.tar.gz
tm-scripts-0e00823da82709086999fbe5b0b3066e4cadcbf3.tar.xz
tm-scripts-0e00823da82709086999fbe5b0b3066e4cadcbf3.zip
[ncp] moved ncp related stuff to its own module. Kept it because who knows if we might need it one day. NOT TESTED.
Diffstat (limited to 'remote')
-rw-r--r--remote/modules/ncp/module.build26
-rw-r--r--remote/modules/ncp/module.conf8
-rw-r--r--remote/modules/ncp/module.conf.debian27
-rw-r--r--remote/modules/ncp/module.conf.fedora42
-rw-r--r--remote/modules/ncp/module.conf.opensuse14
-rw-r--r--remote/modules/ncp/module.conf.opensuse.13.148
-rw-r--r--remote/modules/ncp/module.conf.ubuntu17
-rw-r--r--remote/modules/ncp/module.conf.ubuntu.1424
8 files changed, 206 insertions, 0 deletions
diff --git a/remote/modules/ncp/module.build b/remote/modules/ncp/module.build
new file mode 100644
index 00000000..d8250512
--- /dev/null
+++ b/remote/modules/ncp/module.build
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+fetch_source() {
+
+ # Distribution switch: Ubuntu 14.04 dropped packages ncpfs and libncp:
+ if [[ "$SYS_DISTRIBUTION" == "ubuntu" && "$SYS_VERSION" == "14.04" ]]; then
+ for file in $REQUIRED_DOWNLOAD_URLS; do
+ local package="$(basename $file)"
+ pinfo "Downloading and installing package $package ..."
+ download_if_empty "$file" "src/$package"
+ dpkg -i "src/$package" || perror "Could not install package $package."
+ done
+ fi
+}
+
+build() {
+ local COPYLIST="$MODULE_BUILD_DIR/list_packet_files"
+ # TODO: Hack for SUSE: Ignore file (/var/lib/nfs/state) that does not exist :(
+ list_packet_files | grep -v '/var/lib/nfs/state' | sort -u > "$COPYLIST"
+ tarcopy "$(cat "$COPYLIST")" "${MODULE_BUILD_DIR}"
+
+}
+
+post_copy() {
+ :
+}
diff --git a/remote/modules/ncp/module.conf b/remote/modules/ncp/module.conf
new file mode 100644
index 00000000..4ed03cdc
--- /dev/null
+++ b/remote/modules/ncp/module.conf
@@ -0,0 +1,8 @@
+REQUIRED_BINARIES="
+"
+REQUIRED_LIBRARIES="
+"
+REQUIRED_DIRECTORIES="
+"
+REQUIRED_SYSTEM_FILES="
+"
diff --git a/remote/modules/ncp/module.conf.debian b/remote/modules/ncp/module.conf.debian
new file mode 100644
index 00000000..96104802
--- /dev/null
+++ b/remote/modules/ncp/module.conf.debian
@@ -0,0 +1,27 @@
+REQUIRED_INSTALLED_PACKAGES="
+ ncpfs
+ libncp
+"
+REQUIRED_CONTENT_PACKAGES="
+ ncpfs
+ libncp
+"
+REQUIRED_BINARIES+="
+ nwmsg
+ ncpmount
+ ncpumount
+ mount.ncp
+ mount.ncpfs
+"
+REQUIRED_DIRECTORIES+="
+ /lib
+ /usr/lib
+"
+
+# For Debian 8: Both packages were dropped from official repos. Do not change the
+# order, as these packages will be installed via dpkg and depend on each other.
+REQUIRED_DOWNLOAD_URLS="
+ ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/n/ncpfs/libpam-ncp_2.2.6-9_amd64.deb
+ ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/n/ncpfs/libncp_2.2.6-9_amd64.deb
+ ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/n/ncpfs/ncpfs_2.2.6-9_amd64.deb
+"
diff --git a/remote/modules/ncp/module.conf.fedora b/remote/modules/ncp/module.conf.fedora
new file mode 100644
index 00000000..b2eb3421
--- /dev/null
+++ b/remote/modules/ncp/module.conf.fedora
@@ -0,0 +1,42 @@
+REQUIRED_NSS_LDAPD_VERSION="nss-pam-ldapd-0.8.13"
+REQUIRED_NSS_LDAPD_URL="http://arthurdejong.org/nss-pam-ldapd/${REQUIRED_NSS_LDAPD_VERSION}.tar.gz"
+
+REQUIRED_INSTALLED_PACKAGES="
+ pam
+ pam_krb5
+ pam-devel
+ nss-mdns
+ libnfsidmap
+ openssl-devel
+ openldap-clients
+ nfs-utils
+ glibc
+ pam-devel
+ openldap-devel
+ krb5-devel
+"
+REQUIRED_CONTENT_PACKAGES="
+ pam
+ pam_krb5
+ pam-devel
+ nss-mdns
+ libnfsidmap
+ openldap-clients
+ nfs-utils
+ glibc
+"
+REQUIRED_LIBRARIES+="
+ libnss_compat
+ libnss_db
+ libnss_dns
+ libnss_files
+ libnss_nis
+"
+REQUIRED_DIRECTORIES+="
+ /$LIB64
+ /usr/$LIB64
+"
+REQUIRED_SYSTEM_FILES+="
+ /$LIB64/security
+"
+
diff --git a/remote/modules/ncp/module.conf.opensuse b/remote/modules/ncp/module.conf.opensuse
new file mode 100644
index 00000000..09ee2e6f
--- /dev/null
+++ b/remote/modules/ncp/module.conf.opensuse
@@ -0,0 +1,14 @@
+REQUIRED_INSTALLED_PACKAGES="
+ nss-pam-ldapd
+"
+REQUIRED_CONTENT_PACKAGES="
+ nss-pam-ldapd
+"
+REQUIRED_DIRECTORIES+="
+ /$LIB64
+ /usr/$LIB64
+"
+REQUIRED_SYSTEM_FILES+="
+ /$LIB64/security
+"
+
diff --git a/remote/modules/ncp/module.conf.opensuse.13.1 b/remote/modules/ncp/module.conf.opensuse.13.1
new file mode 100644
index 00000000..d4435999
--- /dev/null
+++ b/remote/modules/ncp/module.conf.opensuse.13.1
@@ -0,0 +1,48 @@
+REQUIRED_NSS_LDAPD_VERSION="nss-pam-ldapd-0.8.13"
+REQUIRED_NSS_LDAPD_URL="http://arthurdejong.org/nss-pam-ldapd/$REQUIRED_NSS_LDAPD_VERSION.tar.gz"
+
+REQUIRED_BINARIES+="
+ mkhomedir_helper
+"
+
+REQUIRED_INSTALLED_PACKAGES="
+ pam
+ pam_krb5
+ pam-devel
+ pam-modules
+ nss-mdns
+ libopenssl-devel
+ openldap2-client
+ nfsidmap
+ nfs-client
+ glibc
+ pam-devel
+ openldap2-devel
+ krb5-devel
+"
+REQUIRED_CONTENT_PACKAGES="
+ pam
+ pam_krb5
+ pam-devel
+ pam-modules
+ nss-mdns
+ openldap2-client
+ nfsidmap
+ nfs-client
+ glibc
+"
+REQUIRED_LIBRARIES+="
+ libnss_compat
+ libnss_db
+ libnss_dns
+ libnss_files
+ libnss_nis
+"
+REQUIRED_DIRECTORIES+="
+ /$LIB64
+ /usr/$LIB64
+"
+REQUIRED_SYSTEM_FILES+="
+ /$LIB64/security
+"
+
diff --git a/remote/modules/ncp/module.conf.ubuntu b/remote/modules/ncp/module.conf.ubuntu
new file mode 100644
index 00000000..c1914103
--- /dev/null
+++ b/remote/modules/ncp/module.conf.ubuntu
@@ -0,0 +1,17 @@
+REQUIRED_INSTALLED_PACKAGES="
+ ncpfs
+"
+REQUIRED_CONTENT_PACKAGES="
+ libncp
+ ncpfs
+"
+REQUIRED_BINARIES+="
+ nwmsg
+ ncpmount
+ ncpumount
+ mount.ncp
+ mount.ncpfs
+"
+REQUIRED_DIRECTORIES+="
+ /usr
+"
diff --git a/remote/modules/ncp/module.conf.ubuntu.14 b/remote/modules/ncp/module.conf.ubuntu.14
new file mode 100644
index 00000000..acb2f629
--- /dev/null
+++ b/remote/modules/ncp/module.conf.ubuntu.14
@@ -0,0 +1,24 @@
+REQUIRED_INSTALLED_PACKAGES="
+"
+REQUIRED_CONTENT_PACKAGES="
+ libncp
+ ncpfs
+"
+REQUIRED_BINARIES+="
+ nwmsg
+ ncpmount
+ ncpumount
+ mount.ncp
+ mount.ncpfs
+"
+REQUIRED_DIRECTORIES+="
+ /usr
+"
+
+# For Ubuntu 14.04: Both packages were dropped from official repos. Do not change the
+# order, as these packages will be installed via dpkg and depend on each other.
+REQUIRED_DOWNLOAD_URLS="
+ de.archive.ubuntu.com/ubuntu/pool/universe/n/ncpfs/libncp_2.2.6-9ubuntu1_amd64.deb
+ de.archive.ubuntu.com/ubuntu/pool/universe/n/ncpfs/libpam-ncp_2.2.6-9ubuntu1_amd64.deb
+ de.archive.ubuntu.com/ubuntu/pool/universe/n/ncpfs/ncpfs_2.2.6-9ubuntu1_amd64.deb
+"