# $Id: Portfile 102182 2013-01-29 10:57:36Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			splat
version			1.0
categories		net
license			BSD
platforms		darwin
supported_archs	noarch
maintainers		landonf
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	24
python.move_binaries	no

depends_lib		port:py24-ldap port:py24-twisted port:py24-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
}
