summaryrefslogtreecommitdiffstats
path: root/remote/modules/pam/module.build
diff options
context:
space:
mode:
authorChristian Rößler2014-04-22 15:51:04 +0200
committerChristian Rößler2014-04-22 15:51:04 +0200
commitf354019d8d8126ca53dc085f1474b9f10c73f4ef (patch)
tree1097f9bb0ef8c9aa26287eeaa7f4194051f01cc0 /remote/modules/pam/module.build
parent[alsa] added missing pkgs for alsa config files (diff)
downloadtm-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
Diffstat (limited to 'remote/modules/pam/module.build')
-rw-r--r--remote/modules/pam/module.build12
1 files changed, 12 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() {