Browse Source

Improved pam to check that prelude is installed instead of testing $stagelevel

early
Alejandro Mery 18 years ago
parent
commit
11c1e6508e
  1. 9
      base/pam/pam.conf

9
base/pam/pam.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../pam/pam.conf
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2006 - 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -22,11 +22,8 @@ includedir="$includedir/security"
# checking for prelude support
# pam is able to act as prelude sensor since version 0.79
if [ $stagelevel -ge 5 ]; then
if pkginstalled libprelude; then
pkgprefix -t libprelude
var_append extraconfopt " " "--with-libprelude-prefix=$root/$( pkgprefix libprelude )"
fi
if pkginstalled -f libprelude; then
var_append extraconfopt " " "--with-libprelude-prefix=$root/$( pkgprefix libprelude )"
else
var_append extraconfopt " " "--disable-prelude"
fi

Loading…
Cancel
Save