summaryrefslogtreecommitdiff
path: root/x11/wdm/Makefile
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-06 08:12:06 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-06 08:12:06 +0000
commit6dfd35841bc4cb98a5ead6c5ab81a166108b872b (patch)
tree0e4ceaa02ae1233d32f3cb3b3af4bcfb2f1b3d98 /x11/wdm/Makefile
parentUpdate to 7.2.3 and maintainer's email address. All advised to update (diff)
* Take over maintainership of this port.
* Take a shot at fixing the broken PAM support, which could never possibly have worked under FreeBSD because it was using the Linux/Solaris PAM module path. Enable PAM by default on 5.0 and install a config file derived from /etc/pam.d/xdm.
Notes
Notes: svn path=/head/; revision=67468
Diffstat (limited to 'x11/wdm/Makefile')
-rw-r--r--x11/wdm/Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile
index db896a2fc69c..1d163f819fab 100644
--- a/x11/wdm/Makefile
+++ b/x11/wdm/Makefile
@@ -7,7 +7,7 @@
PORTNAME= wdm
PORTVERSION= 1.20
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11 windowmaker
MASTER_SITES= http://www.tcscs.com/wdm/wdm/ \
http://www.de.freebsd.org/de/gif/bsd/ \
@@ -16,7 +16,7 @@ MASTER_SITE_SUBDIR= tg
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DAEMONPICS}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= kris@FreeBSD.org
LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker \
PropList.2:${PORTSDIR}/devel/libPropList
@@ -52,13 +52,18 @@ MAN1= wdm.1 wdmLogin.1
DAEMONPICS= beastie.xpm daemon1-HQ-1280x960.jpg
+.if ( ${OSVERSION} >= 500028 ) && !defined(WITHOUT_PAM)
+WITH_PAM= yes
+.endif
+
.if defined(WITH_PAM)
CONFIGURE_ARGS+= --enable-pam
LIBPAM= -lpam
-.endif
+PLIST_SUB+= PAM=""
+.else
+PLIST_SUB+= PAM="@comment "
pre-everything::
-.if !defined(WITH_PAM)
@${ECHO_MSG} "To build this port with PAM support, define \"WITH_PAM\"."
.endif
@@ -91,5 +96,12 @@ post-install:
.for file in ${DAEMONPICS}
@${INSTALL_DATA} ${_DISTDIR}/${file} ${PREFIX}/lib/X11/wdm/pixmaps
.endfor
+.if defined(WITH_PAM)
+.if ( ${OSVERSION} >= 500028 )
+ ${INSTALL_DATA} ${FILESDIR}/wdm.pam ${LOCALBASE}/etc/pam.d/wdm
+.else
+ @${ECHO_CMD} "To finish installing this port, append the contents of ${FILESDIR}/wdm.pam to your /etc/pam.conf file"
+.endif
+.endif
.include <bsd.port.post.mk>