From f354019d8d8126ca53dc085f1474b9f10c73f4ef Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 22 Apr 2014 15:51:04 +0200 Subject: [pam] libncp, ncpfs and libpam-ncp (ncpfs depends on libpam-ncp) for Ubuntu 14.04 --- remote/modules/pam/module.build | 12 ++++++++++++ remote/modules/pam/module.conf.ubuntu.14 | 8 ++++++++ 2 files changed, 20 insertions(+) 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 +" -- cgit v1.2.3-55-g7522