aboutsummaryrefslogtreecommitdiffstats
path: root/security/calife-devel/Makefile
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2005-06-30 18:39:35 +0800
committerroberto <roberto@FreeBSD.org>2005-06-30 18:39:35 +0800
commit2335b351f8b9204edbd6afd881d56078b68567e2 (patch)
treecadb03a18ce8f1e60b6f21f5269717f53c96d407 /security/calife-devel/Makefile
parente84764cfbcef768296f1261e774dc5b54575df26 (diff)
downloadfreebsd-ports-gnome-2335b351f8b9204edbd6afd881d56078b68567e2.tar.gz
freebsd-ports-gnome-2335b351f8b9204edbd6afd881d56078b68567e2.tar.zst
freebsd-ports-gnome-2335b351f8b9204edbd6afd881d56078b68567e2.zip
Fix install on 4.x on which PAM is not used for calife.
Submitted by: kris (through pointyhat) Approved by: thomas (MAINTAINER)
Diffstat (limited to 'security/calife-devel/Makefile')
-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>