aboutsummaryrefslogtreecommitdiffstats
path: root/net/splatd/Makefile
blob: 38d60350734672ad5c2e7f877283545ba2723533 (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
# New ports collection makefile for:    splatd
# Date created:     26 September 2005
# Whom:         Landon Fuller <landonf@opendarwin.org>
#
# $FreeBSD$

PORTNAME=   splatd
PORTVERSION=    1.1
CATEGORIES= net
MASTER_SITES=   http://dpw.threerings.net/projects/splat/
DISTNAME=   splat-${PORTVERSION}

MAINTAINER= snb@threerings.net
COMMENT=    Splat is the Scalable Periodic LDAP Attribute Transmogrifier

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/ZConfig:${PORTSDIR}/devel/py-zconfig \
        ${PYTHON_SITELIBDIR}/ldap:${PORTSDIR}/net/py-ldap2 \
        ${PYTHON_SITELIBDIR}/twisted:${PORTSDIR}/devel/py-twistedCore
RUN_DEPENDS=    ${BUILD_DEPENDS}

WRKSRC=     ${WRKDIR}/${DISTNAME}

USE_PYTHON= 2.4+
USE_PYDISTUTILS=    yes
USE_RC_SUBR=    splatd.sh
SUB_LIST+=  PYTHON_CMD=${PYTHON_CMD}
MAN5=       splat.conf.5
MAN8=       splatd.8

post-install:
    ${INSTALL_DATA} ${WRKSRC}/splat.conf ${PREFIX}/etc/splat.conf.sample
    ${MV} -f ${PREFIX}/bin/splatd ${PREFIX}/sbin/splatd
    ${INSTALL_MAN} ${WRKSRC}/docs/man/splat.conf.5 ${MANPREFIX}/man/man5
    ${INSTALL_MAN} ${WRKSRC}/docs/man/splatd.8 ${MANPREFIX}/man/man8

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/xhtml
    ${INSTALL_MAN} ${WRKSRC}/docs/xhtml/* ${DOCSDIR}/xhtml
.endif

.include <bsd.port.mk>