]>
Commit | Line | Data |
---|---|---|
916eb79e A |
1 | Project = login |
2 | Install_Dir = /usr/bin | |
1815bff5 | 3 | |
34d340d7 | 4 | |
1815bff5 | 5 | HFILES = pathnames.h |
ef8ad44b | 6 | CFILES = login.c |
916eb79e | 7 | MANPAGES = login.1 |
1815bff5 | 8 | |
916eb79e | 9 | Embedded=$(shell tconf --test TARGET_OS_EMBEDDED) |
1815bff5 | 10 | |
ef8ad44b A |
11 | Extra_CC_Flags = -Wall -Werror -mdynamic-no-pic |
12 | Extra_LD_Flags = -dead_strip | |
13 | ||
14 | Extra_CC_Flags += -D__FBSDID=__RCSID | |
15 | ||
16 | ifneq ($(Embedded),YES) | |
17 | CFILES += login_audit.c | |
18 | Extra_CC_Flags += -DUSE_PAM -DUSE_BSM_AUDIT | |
19 | Extra_LD_Flags += -lbsm -lpam | |
20 | else | |
21 | Extra_CC_Flags += -Wno-deprecated-declarations | |
34d340d7 | 22 | endif |
1815bff5 | 23 | |
916eb79e | 24 | include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make |
1815bff5 | 25 | |
916eb79e | 26 | Install_Program_Mode = 04555 |
ef8ad44b A |
27 | |
28 | after_install: | |
29 | $(INSTALL_DIRECTORY) "$(DSTROOT)"/private/etc/pam.d | |
30 | $(INSTALL_FILE) login.pam "$(DSTROOT)"/private/etc/pam.d/login | |
31 | sed -e '/pam_launchd.so/d' < login.pam > "$(OBJROOT)"/login.term | |
32 | $(INSTALL_FILE) "$(OBJROOT)"/login.term "$(DSTROOT)"/private/etc/pam.d/login.term |