aboutsummaryrefslogtreecommitdiffstats
path: root/net/splatd/Makefile
blob: c2d1ccc3694636461a2f9ea3e7cdb8807b9c26b9 (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
# Created by: Landon Fuller <landonf@opendarwin.org>
# $FreeBSD$

PORTNAME=   splatd
PORTVERSION=    1.2
DISTVERSIONPREFIX=  ${PORTNAME}-
PORTREVISION=   8
CATEGORIES= net

MAINTAINER= rodrigo@FreeBSD.org
COMMENT=    Splat is the Scalable Periodic LDAP Attribute Transmogrifier

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}zconfig>0:devel/py-zconfig@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}ldap>=2.3.1:net/py-ldap@${PY_FLAVOR}
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}zconfig>0:devel/py-zconfig@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}ldap>=2.3.1:net/py-ldap@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR}

USES=       python:2.7
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME=    splat
USE_RC_SUBR=    splatd
SUB_LIST=   PYTHON_CMD=${PYTHON_CMD}
NO_ARCH=    yes
USE_GITHUB= yes
GH_ACCOUNT= threerings

OPTIONS_DEFINE= DOCS

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

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/xhtml
    ${INSTALL_DATA} ${WRKSRC}/docs/xhtml/* ${STAGEDIR}${DOCSDIR}/xhtml

.include <bsd.port.mk>