aboutsummaryrefslogtreecommitdiffstats
path: root/net/ldapdiff/Makefile
blob: d30d60e54407dc5640f335a325c64738b7033600 (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
# New ports collection makefile for:    ldapdiff
# Date created:         15 February 2002
# Whom:                 Christian Brueffer <chris@unixpages.org)
#
# $FreeBSD$
#

PORTNAME=   ldapdiff
PORTVERSION=    1.4.1
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://launchpadlibrarian.net/20391352/
DISTNAME=   ${PORTNAME}-${PORTVERSION}_src
EXTRACT_SUFX=   .tgz

MAINTAINER= sylvio@FreeBSD.org
COMMENT=    A utility for patching LDAP directories using LDIF files

USE_ICONV=  yes
USE_OPENLDAP=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${LOCALBASE} \
        --with-ldap-dir=${LOCALBASE} \
        --with-iconv-dir=${LOCALBASE}
SAMPLES=    addentry.sh webtomware_without_jpeg.user.ldif \
        webtomware.init.ldif webtomware.user.ldif
MAN1=       ldapdiff.1

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PORTDOCS=   CHANGES ChangeLog README TODO

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ldapdiff ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
    ${INSTALL_DATA} ${WRKSRC}/ldapdiff.conf.sample ${PREFIX}/etc/
    @${MKDIR} ${DATADIR}/samples
.for sample in ${SAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/samples/${sample} ${DATADIR}/samples
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for docs in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>