diff options
| author | Christian Rößler | 2014-04-22 15:51:04 +0200 |
|---|---|---|
| committer | Christian Rößler | 2014-04-22 15:51:04 +0200 |
| commit | f354019d8d8126ca53dc085f1474b9f10c73f4ef (patch) | |
| tree | 1097f9bb0ef8c9aa26287eeaa7f4194051f01cc0 | |
| parent | [alsa] added missing pkgs for alsa config files (diff) | |
| download | tm-scripts-f354019d8d8126ca53dc085f1474b9f10c73f4ef.tar.gz tm-scripts-f354019d8d8126ca53dc085f1474b9f10c73f4ef.tar.xz tm-scripts-f354019d8d8126ca53dc085f1474b9f10c73f4ef.zip | |
[pam] libncp, ncpfs and libpam-ncp (ncpfs depends on libpam-ncp) for Ubuntu 14.04
| -rw-r--r-- | remote/modules/pam/module.build | 12 | ||||
| -rw-r--r-- | remote/modules/pam/module.conf.ubuntu.14 | 8 |
2 files changed, 20 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 index b08aa71a..5d0c5803 100644 --- a/remote/modules/pam/module.conf.ubuntu.14 +++ b/remote/modules/pam/module.conf.ubuntu.14 @@ -42,3 +42,11 @@ REQUIRED_SYSTEM_FILES+=" /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 +" |
