summaryrefslogtreecommitdiff
path: root/security/calife-devel
diff options
context:
space:
mode:
authorOllivier Robert <roberto@FreeBSD.org>2005-06-30 10:39:35 +0000
committerOllivier Robert <roberto@FreeBSD.org>2005-06-30 10:39:35 +0000
commitffecd5806bac5e82768066230dbd52a53d51052c (patch)
tree75a0a67bace4678fc5de0f78f967b7792bd2e71a /security/calife-devel
parentFix the build with firefox. (diff)
Fix install on 4.x on which PAM is not used for calife.
Submitted by: kris (through pointyhat) Approved by: thomas (MAINTAINER)
Notes
Notes: svn path=/head/; revision=138229
Diffstat (limited to 'security/calife-devel')
-rw-r--r--security/calife-devel/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/security/calife-devel/Makefile b/security/calife-devel/Makefile
index 2802da2dc439..2667de95668d 100644
--- a/security/calife-devel/Makefile
+++ b/security/calife-devel/Makefile
@@ -17,7 +17,13 @@ COMMENT= A lightweight alternative to sudo
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-pam --with-etcdir=${PREFIX}/etc
+CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
+CONFIGURE_ARGS+= --with-pam
+.endif
CONFLICTS?= calife-2.*
@@ -25,7 +31,9 @@ MAN1= calife.1
MAN5= calife.auth.5
post-install:
+.if ${OSVERSION} >= 500000
@${INSTALL_DATA} ${WRKSRC}/calife.pam ${PREFIX}/etc/pam.d/calife.sample
+.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>