diff options
| author | Jonathan Bauer | 2014-07-04 15:03:06 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2014-07-04 15:03:06 +0200 |
| commit | ae42d45b4b46c70a9e1afa7bb2a36bb13e3e0070 (patch) | |
| tree | b795ae29a9cd5c0f41abada05aa99a5105d6a2e0 /remote/modules/pam/module.build | |
| parent | [xdg] make sure xdg-user-dirs-update is disabled (diff) | |
| parent | Merge branch 'master' of git://git.openslx.org/openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-ae42d45b4b46c70a9e1afa7bb2a36bb13e3e0070.tar.gz tm-scripts-ae42d45b4b46c70a9e1afa7bb2a36bb13e3e0070.tar.xz tm-scripts-ae42d45b4b46c70a9e1afa7bb2a36bb13e3e0070.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/pam/module.build')
| -rw-r--r-- | remote/modules/pam/module.build | 4 |
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." |
