summaryrefslogtreecommitdiff
path: root/mk/pam.mk
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2011-02-02 18:18:55 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2011-02-04 22:30:30 -0600
commitdb6d680765b4b9a4d404f6b2e6d5644b2fe3418d (patch)
tree21986fb2b800f6dc0ddab04dc982b827d3a74e4e /mk/pam.mk
parenta2e9cde737ede93502a80fe50e62b0aea50643dc (diff)
downloadopenrc-db6d680765b4b9a4d404f6b2e6d5644b2fe3418d.tar.gz
openrc-db6d680765b4b9a4d404f6b2e6d5644b2fe3418d.tar.bz2
openrc-db6d680765b4b9a4d404f6b2e6d5644b2fe3418d.tar.xz
rework pam, ncurses and termcap include files
This allows error checking inside the included files instead of either including the appropriate file or a blank file. Also the blank file named .mk gets removed by this change.
Diffstat (limited to 'mk/pam.mk')
-rw-r--r--mk/pam.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/pam.mk b/mk/pam.mk
index 65115d5..15ffb54 100644
--- a/mk/pam.mk
+++ b/mk/pam.mk
@@ -1,6 +1,10 @@
+ifeq (${MKPAM},pam)
LIBPAM?= -lpam
CPPFLAGS+= -DHAVE_PAM
LDADD+= ${LIBPAM}
PAMDIR?= /etc/pam.d
PAMMODE?= 0644
+else ifneq (${MKPAM},)
+$(error if MKPAM is defined, it must be "pam")
+endif