summaryrefslogtreecommitdiff
path: root/security/pam_ldap/Makefile
blob: 2db17821b562de76c432a25becc88e3afb105899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    pam_ldap
# Date created:				26 May 2001
# Whom:	      				Joe Clarke <marcus@marcuscom.com>
#
# $FreeBSD$
#

PORTNAME=	pam_ldap
PORTVERSION=	1.4.0
CATEGORIES=	security net
MASTER_SITES=	http://www.padl.com/download/ \
		ftp://ftp.padl.com/pub/
DISTNAME=	pam_ldap-${PORTVERSION:S/.//g}

MAINTAINER=	marcus@FreeBSD.org

.include <bsd.port.pre.mk>

.if defined(WITH_LDAP_V3)
LIB_DEPENDS=	ldap.2:${PORTSDIR}/net/openldap2 \
		lber.2:${PORTSDIR}/net/openldap2
.else
LIB_DEPENDS=	ldap.1:${PORTSDIR}/net/openldap \
		lber.1:${PORTSDIR}/net/openldap
.endif

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-ldap-lib=openldap \
		--with-ldap-dir=${LOCALBASE} \
		--with-ldap-conf-file=${PREFIX}/etc/ldap.conf \
		--with-ldap-secret-file=${PREFIX}/etc/ldap.secret
CONFIGURE_TARGET=	--target=${MACHINE_ARCH}-unknown-freebsd${OSREL}

USE_GMAKE=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g}

post-extract:
	@find ${WRKSRC} -type f | xargs ${TOUCH} -f

post-install:
	@${ECHO} "================================================================================"
	@${ECHO} "Copy/move/symlink ${PREFIX}/etc/ldap.conf.dist to"
	@${ECHO} "${PREFIX}/etc/ldap.conf to be able to use it."
	@${ECHO} "Add lines like the following to /etc/pam.conf"
	@${ECHO} "to get things going:"
	@${ECHO} ""
	@${ECHO} "login    auth    sufficient    ${PREFIX}/lib/pam_ldap.so"
	@${ECHO} "================================================================================"

.include <bsd.port.post.mk>