freebsd-ports/net/splatd/Makefile
Mathieu Arnold 4376dbbb58 Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
2018-06-20 17:05:41 +00:00

43 lines
1.3 KiB
Makefile

# 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>