summaryrefslogtreecommitdiffstats
path: root/remote/modules/pam/module.build
diff options
context:
space:
mode:
authorJonathan Bauer2014-07-17 15:14:56 +0200
committerJonathan Bauer2014-07-17 15:14:56 +0200
commit9d8b121b9b2cdb3625820eb66a6dc829787cfc28 (patch)
tree06abde51e32806f2bd157a1d2d07d0d15820326b /remote/modules/pam/module.build
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
parent[pam] reworked how we determine path to PAM-modules (diff)
downloadtm-scripts-9d8b121b9b2cdb3625820eb66a6dc829787cfc28.tar.gz
tm-scripts-9d8b121b9b2cdb3625820eb66a6dc829787cfc28.tar.xz
tm-scripts-9d8b121b9b2cdb3625820eb66a6dc829787cfc28.zip
Merge branch 'master' of 132.230.102.107:/root/tm-scripts
Diffstat (limited to 'remote/modules/pam/module.build')
-rw-r--r--remote/modules/pam/module.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/remote/modules/pam/module.build b/remote/modules/pam/module.build
index 3f0d8861..067cd431 100644
--- a/remote/modules/pam/module.build
+++ b/remote/modules/pam/module.build
@@ -28,12 +28,13 @@ build() {
tarcopy "$(cat "$COPYLIST")" "${MODULE_BUILD_DIR}"
# build pam-script separatly since we use a source tarball
+
# HACK: find pam_unix.so in MODULE_BUILD_DIR to see where to put pam_script at
- cd "$MODULE_BUILD_DIR"
- local PAM_UNIX_LOCATION=$(find . -name pam_unix.so)
cd "${MODULE_DIR}/src/pam-script-${REQUIRED_PAM_SCRIPT_VERSION}" || perror "Could not cd to ${MODULE_DIR}/src/pam-script-${REQUIRED_PAM_SCRIPT_VERSION}."
- ./configure --prefix=/ --sysconfdir=/etc/pam-script --libdir="$(dirname ${PAM_UNIX_LOCATION:1})" || perror "pam-script: ./configure failed."
+ ./configure --prefix=/ --sysconfdir=/etc/pam-script --libdir="$SYS_PAM_MODULES_PATH" || 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 [ -n "$REQUIRED_NSS_LDAPD_URL" ]; then
cd "${MODULE_DIR}/src/$REQUIRED_NSS_LDAPD_VERSION"