| 1 |
Building |
|---|
| 2 |
======== |
|---|
| 3 |
To build op, the best option is to override the default Makefile settings |
|---|
| 4 |
with ones appropriate for your system (the alternative is to edit the Makefile, |
|---|
| 5 |
uncommenting the appropriate sections). |
|---|
| 6 |
|
|---|
| 7 |
op requires Flex (it will not work with standard Lex due to internal |
|---|
| 8 |
limitations on data structures in Lex). |
|---|
| 9 |
|
|---|
| 10 |
Compiler flags are put into OPTS (this is a legacy setting), libraries in LIBS |
|---|
| 11 |
and link flags in LDFLAGS. |
|---|
| 12 |
|
|---|
| 13 |
Build for typical PAM enabled Linux system: |
|---|
| 14 |
make OPTS='-DXAUTH=\"/usr/X11R6/bin/xauth\" -DUSE_PAM' \ |
|---|
| 15 |
LIBS='-lcrypt -lpam -lfl' LDFLAGS='-Wl,-z,now' |
|---|
| 16 |
|
|---|
| 17 |
Build for typical Solaris system with PAM: |
|---|
| 18 |
make LEX=flex OPTS='-DXAUTH=\"/usr/X/bin/xauth\" -DUSE_PAM' \ |
|---|
| 19 |
LIBS='-lcrypt -lpam -lfl' |
|---|
| 20 |
|
|---|
| 21 |
The available features are: |
|---|
| 22 |
|
|---|
| 23 |
Debugging: |
|---|
| 24 |
Compiler flags: -g -DDEBUG |
|---|
| 25 |
Link flags: -g |
|---|
| 26 |
|
|---|
| 27 |
PAM: |
|---|
| 28 |
Compiler flags: -DUSE_PAM |
|---|
| 29 |
Libraries: -lpam |
|---|
| 30 |
|
|---|
| 31 |
Shadow support: |
|---|
| 32 |
Compiler flags: -DUSE_SHADOW |
|---|
| 33 |
Libraries: -lshadow |
|---|
| 34 |
|
|---|
| 35 |
Use Flex: |
|---|
| 36 |
Libraries: -lfl |
|---|
| 37 |
|
|---|
| 38 |
XAuth support: |
|---|
| 39 |
Compiler flags: -DXAUTH=\"<full-path-to-xauth>\" |
|---|
| 40 |
|
|---|
| 41 |
If you have vsnprintf on your system: |
|---|
| 42 |
Compiler flags: -DHAVE_VSNPRINTF |
|---|
| 43 |
|
|---|
| 44 |
Note: For SecureID support, read the Makefile and uncomment the appropriate |
|---|
| 45 |
section. |
|---|
| 46 |
|
|---|
| 47 |
Installing |
|---|
| 48 |
========== |
|---|
| 49 |
"make install" will do a normal install. Optionally, DESTDIR can be used to |
|---|
| 50 |
install into a package root: |
|---|
| 51 |
|
|---|
| 52 |
make DESTDIR=/tmp/pkg install |
|---|