summaryrefslogtreecommitdiff
path: root/strata/foundation/linux-pam.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/foundation/linux-pam.morph')
-rw-r--r--strata/foundation/linux-pam.morph13
1 files changed, 13 insertions, 0 deletions
diff --git a/strata/foundation/linux-pam.morph b/strata/foundation/linux-pam.morph
index 0dfbe759..c8d6e40f 100644
--- a/strata/foundation/linux-pam.morph
+++ b/strata/foundation/linux-pam.morph
@@ -3,6 +3,8 @@ kind: chunk
build-system: autotools
pre-configure-commands:
- autoreconf -ivf
+install-commands:
+- make DESTDIR="$DESTDIR" install sbindir="$PREFIX/sbin"
post-install-commands:
# sudo command is expecting this file.
- |
@@ -13,3 +15,14 @@ post-install-commands:
password required pam_unix.so
session required pam_unix.so
EOF
+- |
+ if test -e "$DESTDIR/lib"; then
+ mkdir -p "$DESTDIR"/usr/lib
+ mv "$DESTDIR"/lib/* "$DESTDIR"/usr/lib/
+ rm -r "$DESTDIR/lib"
+ fi
+ if test -e "$DESTDIR/lib64"; then
+ mkdir -p "$DESTDIR"/usr/lib64
+ mv "$DESTDIR"/lib64/* "$DESTDIR"/usr/lib64/
+ rm -r "$DESTDIR/lib64"
+ fi