1 #!/bin/sh |
|
2 # |
|
3 # CDDL HEADER START |
|
4 # |
|
5 # The contents of this file are subject to the terms of the |
|
6 # Common Development and Distribution License (the "License"). |
|
7 # You may not use this file except in compliance with the License. |
|
8 # |
|
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 # or http://www.opensolaris.org/os/licensing. |
|
11 # See the License for the specific language governing permissions |
|
12 # and limitations under the License. |
|
13 # |
|
14 # When distributing Covered Code, include this CDDL HEADER in each |
|
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 # If applicable, add the following below this CDDL HEADER, with the |
|
17 # fields enclosed by brackets "[]" replaced with your own identifying |
|
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 # |
|
20 # CDDL HEADER END |
|
21 # |
|
22 # |
|
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
|
24 # Use is subject to license terms. |
|
25 # |
|
26 #ident "@(#)install-pampkcs11 1.1 08/06/25 SMI" |
|
27 |
|
28 VERS=pam_pkcs11-0.6.0 |
|
29 |
|
30 LIBDIR=${ROOT}/usr/lib/security |
|
31 MAPUTILDIR=${ROOT}/usr/lib/pam_pkcs11 |
|
32 CONFDIR=${ROOT}/etc/security/pam_pkcs11 |
|
33 CADIR=${CONFDIR}/cacerts |
|
34 CRLDIR=${CONFDIR}/crls |
|
35 DOCDIR=${ROOT}/usr/share/doc/pam_pkcs11 |
|
36 LOCALEDIR=${ROOT}/usr/share/locale |
|
37 PKGDIR=${LIBDIR}/pkgconfig |
|
38 |
|
39 . ${SRC}/tools/install.subr |
|
40 |
|
41 # |
|
42 # Install configuration files. |
|
43 # The configuration files are special "sun" versions with changes to comply to |
|
44 # the Solaris PAM architecture and resolve an incompatibility problem with the |
|
45 # Solaris Cryptographic Framework. These are the ones we actually install. |
|
46 # |
|
47 # Note to maintainers - if the package revs, you need to re-create new sun |
|
48 # versions of the configuration files. |
|
49 # |
|
50 _install N pam_pkcs11.conf ${CONFDIR}/pam_pkcs11.conf 644 |
|
51 |
|
52 # Install other files |
|
53 cd ${VERS} |
|
54 |
|
55 # Install lib |
|
56 _install D src/pam_pkcs11/.libs/pam_pkcs11.so ${LIBDIR}/pam_pkcs11.so 755 |
|
57 |
|
58 # Install external mapper modules and utilities |
|
59 _install D src/mappers/.libs/ldap_mapper.so ${MAPUTILDIR}/ldap_mapper.so 755 |
|
60 _install D src/mappers/.libs/opensc_mapper.so ${MAPUTILDIR}/opensc_mapper.so 755 |
|
61 _install D src/mappers/.libs/openssh_mapper.so ${MAPUTILDIR}/openssh_mapper.so 755 |
|
62 _install E src/tools/pkcs11_inspect ${MAPUTILDIR}/pkcs11_inspect 555 |
|
63 _install E src/tools/pklogin_finder ${MAPUTILDIR}/pklogin_finder 555 |
|
64 |
|
65 # Install sample mapfiles and a script |
|
66 _install N etc/digest_mapping.example ${CONFDIR}/digest_mapping.example 444 |
|
67 _install N etc/subject_mapping.example ${CONFDIR}/subject_mapping.example 444 |
|
68 _install N etc/mail_mapping.example ${CONFDIR}/mail_mapping.example 444 |
|
69 _install N tools/make_hash_link.sh ${CONFDIR}/make_hash_link.sh 755 |
|
70 |
|
71 # Install the user manual |
|
72 _install N doc/pam_pkcs11.html ${DOCDIR}/pam_pkcs11.html 444 |
|
73 _install N doc/mappers_api.html ${DOCDIR}/mappers_api.html 444 |
|
74 |
|
75 #Install locale source |
|
76 _install N po/fr.gmo ${LOCALEDIR}/fr/LC_MESSAGES/pam_pkcs11.mo 644 |
|