Changeset View
Changeset View
Standalone View
Standalone View
net/linux-f10-nss_ldap/Makefile
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
pre-fetch: | pre-fetch: | ||||
.if !${PORT_OPTIONS:MPAM} | .if !${PORT_OPTIONS:MPAM} | ||||
@${ECHO_MSG} "Select PAM if you require more advanced ldap support in the linuxulator" | @${ECHO_MSG} "Select PAM if you require more advanced ldap support in the linuxulator" | ||||
.endif | .endif | ||||
post-extract: | post-extract: | ||||
@if [ -f ${WRKDIR}/etc/ldap.conf ]; then \ | @if [ -f ${WRKSRC}/etc/ldap.conf ]; then \ | ||||
${MV} ${WRKDIR}/etc/ldap.conf ${WRKDIR}/etc/ldap.conf.dist; \ | ${MV} ${WRKSRC}/etc/ldap.conf ${WRKSRC}/etc/ldap.conf.dist; \ | ||||
fi | fi | ||||
.if !${PORT_OPTIONS:MPAM} | .if !${PORT_OPTIONS:MPAM} | ||||
@if [ -f ${WRKDIR}/lib/security/pam_ldap.so ]; then \ | @if [ -f ${WRKSRC}/lib/security/pam_ldap.so ]; then \ | ||||
${RM} -rf ${WRKDIR}/lib/; \ | ${RM} -rf ${WRKSRC}/lib/; \ | ||||
fi | fi | ||||
@if [ -f ${WRKDIR}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/COPYING.pam_ldap ]; then \ | @if [ -f ${WRKSRC}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/COPYING.pam_ldap ]; then \ | ||||
${RM} ${WRKDIR}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/*.pam*; \ | ${RM} ${WRKSRC}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/*.pam*; \ | ||||
${RM} -rf ${WRKDIR}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/pam.d; \ | ${RM} -rf ${WRKSRC}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/pam.d; \ | ||||
fi | fi | ||||
@if [ -f ${WRKDIR}/usr/share/man/man5/pam_ldap.5.gz ]; then \ | @if [ -f ${WRKSRC}/usr/share/man/man5/pam_ldap.5.gz ]; then \ | ||||
${RM} ${WRKDIR}/usr/share/man/man5/pam_ldap.5.gz; \ | ${RM} ${WRKSRC}/usr/share/man/man5/pam_ldap.5.gz; \ | ||||
fi | fi | ||||
.else | .else | ||||
.if !${PORT_OPTIONS:MDOCS} | .if !${PORT_OPTIONS:MDOCS} | ||||
@if [ -d ${WRKDIR}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/pam.d ]; then \ | @if [ -d ${WRKSRC}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/pam.d ]; then \ | ||||
${RM} -rf ${WRKDIR}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/pam.d/; \ | ${RM} -rf ${WRKSRC}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}/pam.d/; \ | ||||
fi | fi | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |