# $Id$

PortSystem 1.0
PortGroup python 1.0

name			splat
version			1.0
revision		1
categories		net
license			BSD
platforms		darwin
supported_archs	noarch
maintainers		openmaintainer nomaintainer
description		Splat: Scalable Periodic LDAP Attribute Transmogrifier
long_description	Splat is a daemon designed to help keep information \
			in an LDAP directory in sync with information \
			outside of an LDAP directory. This information can \
			be any set of attributes on any object in the LDAP \
			directory.

homepage		http://dpw.threerings.net/projects/splat/
master_sites		${homepage} http://distfiles.macports.org/python/
checksums		md5 0dfd7f4ab86453f2be1d6d428e2d2d08

python.default_version	27

depends_lib		port:py${python.version}-ldap port:py${python.version}-twisted port:py${python.version}-zconfig

startupitem.create	yes
startupitem.name	Splat
startupitem.start	"${prefix}/sbin/splatd -f ${prefix}/etc/splat.conf -p /var/run/splatd.pid"
startupitem.stop	"kill `cat /var/run/splatd.pid`"

post-destroot {
	xinstall -m 644 ${worksrcpath}/splat.conf ${destroot}${prefix}/etc/splat.conf.sample
	file rename ${destroot}${prefix}/bin/splatd ${destroot}${prefix}/sbin/splatd
}