diff options
| author | Manuel Schneider | 2014-04-22 15:58:35 +0200 |
|---|---|---|
| committer | Manuel Schneider | 2014-04-22 15:58:35 +0200 |
| commit | 6170a9e2db4bed1445480af0d8170a9b17da062e (patch) | |
| tree | 0bb3f89c75afd1723a9faee9d3a7944622d72e1d /remote/modules/pam | |
| parent | [beamergui] added missing ip (diff) | |
| parent | [pam] libncp, ncpfs and libpam-ncp (ncpfs depends on libpam-ncp) for Ubuntu 1... (diff) | |
| download | tm-scripts-6170a9e2db4bed1445480af0d8170a9b17da062e.tar.gz tm-scripts-6170a9e2db4bed1445480af0d8170a9b17da062e.tar.xz tm-scripts-6170a9e2db4bed1445480af0d8170a9b17da062e.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/pam')
| -rw-r--r-- | remote/modules/pam/module.build | 12 | ||||
| -rw-r--r-- | remote/modules/pam/module.conf.ubuntu.14 | 52 |
2 files changed, 64 insertions, 0 deletions
diff --git a/remote/modules/pam/module.build b/remote/modules/pam/module.build index 15828fb8..c6d92510 100644 --- a/remote/modules/pam/module.build +++ b/remote/modules/pam/module.build @@ -1,10 +1,22 @@ +#!/bin/bash + fetch_source() { # get pam-script source download_untar "$REQUIRED_PAM_SCRIPT_URL" "src/" + # Distribution switch: openSuse 13.1 has no package nss-ldap: if [[ "$SYS_DISTRIBUTION" == "opensuse" && "$SYS_VERSION" == "13.1" ]]; then pinfo "Downloading $REQUIRED_NSS_LDAPD_URL ..." download_untar "$REQUIRED_NSS_LDAPD_URL" "src/" fi + # 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() { diff --git a/remote/modules/pam/module.conf.ubuntu.14 b/remote/modules/pam/module.conf.ubuntu.14 new file mode 100644 index 00000000..5d0c5803 --- /dev/null +++ b/remote/modules/pam/module.conf.ubuntu.14 @@ -0,0 +1,52 @@ +# TODO fix and re-add ncp support ! +REQUIRED_INSTALLED_PACKAGES=" + libpam-ldap + libnss-ldapd + nslcd + krb5-user + krb5-config + libpam-krb5 + libssl-dev + ldap-utils + libnfsidmap2 + nfs-common + libpam0g-dev + cifs-utils +" +REQUIRED_CONTENT_PACKAGES=" + libpam0g + libpam-modules + libpam-cap + libldap-2.4-2 + libpam-ldap + libnss-ldapd + nslcd + krb5-user + krb5-config + libpam-krb5 + ldap-utils + libnfsidmap2 + nfs-common + cifs-utils +" +REQUIRED_BINARIES+=" + mount.cifs +" +REQUIRED_DIRECTORIES+=" + /lib + /usr/lib +" +REQUIRED_SYSTEM_FILES+=" + /etc/pam.conf + /etc/default/locale + /lib/${ARCH_TRIPLET}/security + /sbin/mkhomedir_helper +" + +# 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 +" |
