summaryrefslogtreecommitdiffstats
path: root/remote/modules/pam/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/pam/module.build')
-rw-r--r--remote/modules/pam/module.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote/modules/pam/module.build b/remote/modules/pam/module.build
index c6d92510..3f0d8861 100644
--- a/remote/modules/pam/module.build
+++ b/remote/modules/pam/module.build
@@ -4,7 +4,7 @@ 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
+ if [ -n "$REQUIRED_NSS_LDAPD_URL" ]; then
pinfo "Downloading $REQUIRED_NSS_LDAPD_URL ..."
download_untar "$REQUIRED_NSS_LDAPD_URL" "src/"
fi
@@ -35,7 +35,7 @@ build() {
./configure --prefix=/ --sysconfdir=/etc/pam-script --libdir="$(dirname ${PAM_UNIX_LOCATION:1})" || perror "pam-script: ./configure failed."
make DESTDIR="${MODULE_BUILD_DIR}" install || perror "pam-script: make install to ${MODULE_BUILD_DIR} failed."
# openSuse 13.1 has no package nss-pam-ldapd. So, we compile it.
- if [[ "$SYS_DISTRIBUTION" == "opensuse" && "$SYS_VERSION" == "13.1" ]]; then
+ if [ -n "$REQUIRED_NSS_LDAPD_URL" ]; then
cd "${MODULE_DIR}/src/$REQUIRED_NSS_LDAPD_VERSION"
pinfo "compiling pam-nss-ldapd for openSuse 13.1 ..."
./configure || perror "openSuse 13.1 - pam-nss-ldapd: ./configure failed."