1932360adc
runscript used to dlopen() runscript_selinux.so. This adds equivalent functionality directly in to runscript instead. It authenticates with either PAM or shadow and optionally has a dep on audit. X-Gentoo-Bug: 517450 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=517450
17 lines
307 B
Makefile
17 lines
307 B
Makefile
ifeq (${MKPAM},pam)
|
|
LIBPAM?= -lpam
|
|
CPPFLAGS+= -DHAVE_PAM
|
|
LDADD+= ${LIBPAM}
|
|
|
|
ifeq (${MKSELINUX},yes)
|
|
# with selinux, pam_misc is needed too
|
|
LIBPAM_MISC?= -lpam_misc
|
|
LDADD+= ${LIBPAM_MISC}
|
|
endif
|
|
|
|
PAMDIR?= /etc/pam.d
|
|
PAMMODE?= 0644
|
|
else ifneq (${MKPAM},)
|
|
$(error if MKPAM is defined, it must be "pam")
|
|
endif
|