xref: /freebsd/contrib/openpam/INSTALL (revision 45538173c120eadca115fd7e56c657905bf73771)
15c1eca55SDag-Erling Smørgrav
25c1eca55SDag-Erling Smørgrav			  Installing OpenPAM
35c1eca55SDag-Erling Smørgrav			  ==================
45c1eca55SDag-Erling Smørgrav
55c1eca55SDag-Erling Smørgrav1. REQUIREMENTS
65c1eca55SDag-Erling Smørgrav
7ca236e63SDag-Erling Smørgrav  See the release notes for a list of platforms OpenPAM has been
8ca236e63SDag-Erling Smørgrav  tested on.
9ca236e63SDag-Erling Smørgrav
10ca236e63SDag-Erling Smørgrav  You will need the GNU autotools, GNU make and the GNU compiler suite
11ca236e63SDag-Erling Smørgrav  to build OpenPAM.  On some platforms, you may have to install these
12ca236e63SDag-Erling Smørgrav  separately.
135c1eca55SDag-Erling Smørgrav
145c1eca55SDag-Erling Smørgrav2. CONFIGURATION
155c1eca55SDag-Erling Smørgrav
16ca236e63SDag-Erling Smørgrav  Use the "configure" shell script to configure OpenPAM for your
17ca236e63SDag-Erling Smørgrav  system.  Options include:
18ca236e63SDag-Erling Smørgrav
19fe980754SDag-Erling Smørgrav    --enable-debug
20fe980754SDag-Erling Smørgrav	Turn debugging on by default.
21fe980754SDag-Erling Smørgrav
22ca236e63SDag-Erling Smørgrav    --with-modules-dir=DIR
23ca236e63SDag-Erling Smørgrav	Indicates the directory where PAM modules will be installed.
24ca236e63SDag-Erling Smørgrav	This option should not be used if you intend to install PAM
25ca236e63SDag-Erling Smørgrav	modules in the system library directory.
26ca236e63SDag-Erling Smørgrav
27*45538173SDag-Erling Smørgrav    --with-localbase=DIR
28*45538173SDag-Erling Smørgrav        Search for additional policies and modules in DIR/etc and
29*45538173SDag-Erling Smørgrav        DIR/lib respectively.  Defaults to the installation prefix if
30*45538173SDag-Erling Smørgrav        one was set, otherwise to the default installation prefix
31*45538173SDag-Erling Smørgrav        (usually /usr/local).
32*45538173SDag-Erling Smørgrav
33*45538173SDag-Erling Smørgrav    --without-localbase
34*45538173SDag-Erling Smørgrav        Do not search for policies and modules anywhere else than /etc
35*45538173SDag-Erling Smørgrav        and /usr/lib.
36*45538173SDag-Erling Smørgrav
37fe980754SDag-Erling Smørgrav    --without-doc
38fe980754SDag-Erling Smørgrav	Skips the documentation.
39ca236e63SDag-Erling Smørgrav
40ca236e63SDag-Erling Smørgrav    --with-pam-unix
41ca236e63SDag-Erling Smørgrav	Builds the sample PAM module.
42ca236e63SDag-Erling Smørgrav
43fe980754SDag-Erling Smørgrav    --with-su
44fe980754SDag-Erling Smørgrav	Builds the sample su(1) implementation.
45fe980754SDag-Erling Smørgrav
46ca236e63SDag-Erling Smørgrav  For more information about configuration options, use the --help
47ca236e63SDag-Erling Smørgrav  option.
48ca236e63SDag-Erling Smørgrav
49ca236e63SDag-Erling Smørgrav  A typical invocation might look like this:
50ca236e63SDag-Erling Smørgrav
51fe980754SDag-Erling Smørgrav  # ./configure --with-pam-unix --with-su
525c1eca55SDag-Erling Smørgrav
535c1eca55SDag-Erling Smørgrav3. COMPILATION
545c1eca55SDag-Erling Smørgrav
55ca236e63SDag-Erling Smørgrav  To compile OpenPAM, simply run "make" (or "gmake" on platforms where
56ca236e63SDag-Erling Smørgrav  "make" is not GNU make) in the top-level OpenPAM directory:
57ca236e63SDag-Erling Smørgrav
58ca236e63SDag-Erling Smørgrav  # make
595c1eca55SDag-Erling Smørgrav
605c1eca55SDag-Erling Smørgrav4. INSTALLATION
615c1eca55SDag-Erling Smørgrav
62ca236e63SDag-Erling Smørgrav  To install OpenPAM, simply run "make install" (or "gmake install" on
63ca236e63SDag-Erling Smørgrav  platforms where "make" is not GNU make) in the top-level OpenPAM
64ca236e63SDag-Erling Smørgrav  directory:
655c1eca55SDag-Erling Smørgrav
66ca236e63SDag-Erling Smørgrav  # make install
67