mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
ec97d83849
* De-pkg-comment
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# New ports collection makefile for: pam_ldap
|
|
# Date created: 26 May 2001
|
|
# Whom: Joe Clarke <marcus@marcuscom.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pam_ldap
|
|
PORTVERSION= 1.6.1
|
|
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
|
|
COMMENT= A pam module for authenticating with LDAP
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_LDAP_V3)
|
|
LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap20 \
|
|
lber.2:${PORTSDIR}/net/openldap20
|
|
.else
|
|
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap12 \
|
|
lber.1:${PORTSDIR}/net/openldap12
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g}
|
|
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}
|
|
|
|
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>
|