--- splatd-1.2.orig/debian/postrm +++ splatd-1.2/debian/postrm @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +case "$1" in + purge) + # Delete configuration file which was generated by the user or postinst. + rm -rf /etc/splatd + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac +#DEBHELPER# --- splatd-1.2.orig/debian/postinst +++ splatd-1.2/debian/postinst @@ -0,0 +1,62 @@ +#! /bin/sh +# postinst script for splatd +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + + CONFIGFILE=/etc/splatd/splat.conf + CONFTEMPLATE=/usr/share/splatd/splat.conf.in + . /usr/share/debconf/confmodule + + # Write out a splat.conf that loads no plugins but allows splatd to start + # if there isn't already such a file. + if [ ! -f $CONFIGFILE ]; then + # Get values from the debconf db. + db_get splatd/uri + uri="$RET" + db_get splatd/basedn + basedn="$RET" + + # Set values where variables live in the config template. + sed -e "s|@URI@|$uri|" -e "s|@BASEDN@|$basedn|g" \ + < $CONFTEMPLATE > $CONFIGFILE + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Tell debconf to stop +db_stop || true + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- splatd-1.2.orig/debian/changelog +++ splatd-1.2/debian/changelog @@ -0,0 +1,54 @@ +splatd (1.2-0ubuntu2) precise; urgency=low + + * Rebuild to drop python2.6 dependencies. + + -- Matthias Klose Sat, 31 Dec 2011 02:14:03 +0000 + +splatd (1.2-0ubuntu1) oneiric; urgency=low + + * New upstream release. + * Convert to dh_python2 from deprecated py-central. + * Bump Standards-Version to 3.9.2. + * Change build dep from python-all-dev to python-all + as no arch-any any packages are built. + * Update homepage and move to proper field in debian/control. + * Add a debian/watch file. + * debian/init.d: + - Required-{Start, Stop} should depend on $remote_fs. + - S should be removed from Default-Stop. + * Regester with doc-base in the System/Administration + section, old section is deprecated. + + -- Andrew Starr-Bochicchio Fri, 10 Jun 2011 13:29:02 -0400 + +splatd (1.1.1-0ubuntu4) lucid; urgency=low + + * Rebuild for python2.6 as the default python version. + + -- Matthias Klose Mon, 01 Feb 2010 21:03:39 +0000 + +splatd (1.1.1-0ubuntu3) karmic; urgency=low + + * Replace the dependency on zope3 with python-zconfig. + + -- Michael Bienia Mon, 14 Sep 2009 15:36:45 +0200 + +splatd (1.1.1-0ubuntu2) jaunty; urgency=low + + * Rebuild for Python 2.6 transition and move python-central (>= 0.5.8), + python-all-dev from Build-Depends-Indep to Build-Depends for clean rule + + -- Scott Kitterman Sun, 01 Mar 2009 13:03:05 -0500 + +splatd (1.1.1-0ubuntu1) gutsy; urgency=low + + * New upstream version. + + -- Nick Barkas Tue, 21 Aug 2007 09:32:23 -0400 + +splatd (1.1-0ubuntu1) feisty; urgency=low + + * Initial release. + + -- Nick Barkas Thu, 25 Jan 2007 16:16:12 -0800 + --- splatd-1.2.orig/debian/splatd.templates +++ splatd-1.2/debian/splatd.templates @@ -0,0 +1,14 @@ +Template: splatd/uri +Type: string +_Description: URI of LDAP server: + This URI typically will be the same as would be found in your + /etc/ldap/ldap.conf file as the URI setting. For example, to connect with + SSL to an LDAP server at directory.example.com, + ldaps://directory.example.com would be your URI. + +Template: splatd/basedn +Type: string +_Description: Default search base: + This is the Base DN, which is typically the same as the BASE setting in + /etc/ldap/ldap.conf. For example, this could be something like + dc=example,dc=com for the domain example.com. --- splatd-1.2.orig/debian/splatd.config +++ splatd-1.2/debian/splatd.config @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e +# Load debconf +. /usr/share/debconf/confmodule + +# Ask questions +db_input high splatd/uri || true +db_input high splatd/basedn || true +db_go || true --- splatd-1.2.orig/debian/rules +++ splatd-1.2/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f +# Based on the sample rules file generated by dh_make. + +PYVERS=$(shell pyversions -vr) + +build: $(PYVERS:%=build-python%) + touch $@ + +build-python%: + dh_testdir + # Build the python modules. + python$* setup.py build + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Clean up after the build process. + python$* setup.py clean + rm -rf build + rm -f splat/__init__.pyc + + dh_clean + debconf-updatepo + +install: build $(PYVERS:%=install-python%) + +install-python%: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Install the package into debian/splatd. + python$* setup.py install --root=$(CURDIR)/debian/splatd --install-scripts=/usr/sbin + + # Install configuration file template for postinst script + install -m 0644 debian/splat.conf.in debian/splatd/usr/share/splatd/splat.conf.in + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + # Install splat manual + cp -a docs/xhtml/* debian/splatd/usr/share/doc/splatd/html/ + dh_installdocs + dh_installexamples splat.conf + dh_installman + dh_installdebconf + dh_python2 + dh_installinit + dh_compress -X.py + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- splatd-1.2.orig/debian/splatd.manpages +++ splatd-1.2/debian/splatd.manpages @@ -0,0 +1,2 @@ +docs/man/splatd.8 +docs/man/splat.conf.5 --- splatd-1.2.orig/debian/init.d +++ splatd-1.2/debian/init.d @@ -0,0 +1,74 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: splatd +# Required-Start: $network $named $syslog $remote_fs +# Required-Stop: $network $named $syslog $remote_fs +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start and stop Splat daemon. +# Description: Start and stop Splat: The Scalable Periodic LDAP +# Attribute Transmogrifier. +### END INIT INFO + +# Author: Nick Barkas +# Based on: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl + +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DAEMON=/usr/sbin/splatd +NAME=splatd +DESC="Scalable Periodic LDAP Attribute Transmogrifier" +PIDFILE=/var/run/splatd.pid + +test -x $DAEMON || exit 0 + +if test -f /etc/default/splatd; then + . /etc/default/splatd +fi + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: " + if test -f $PIDFILE ; then + echo "$PIDFILE exists... is $NAME already running?" + else + $DAEMON $DAEMON_OPTS -p $PIDFILE + echo "$NAME started." + fi + ;; + stop) + echo -n "Stopping $DESC: " + if test -f $PIDFILE ; then + kill `cat $PIDFILE` && rm -f $PIDFILE + echo "$NAME stopped." + else + echo "$PIDFILE not found... is $NAME running?" + fi + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + if test -f $PIDFILE ; then + kill `cat $PIDFILE` && rm -f $PIDFILE + echo "$NAME stopped... " + else + echo "$PIDFILE not found... is $NAME running?" + fi + sleep 1 + if test -f $PIDFILE ; then + echo "$PIDFILE exists... is $NAME already running?" + else + $DAEMON $DAEMON_OPTS -p $PIDFILE + echo "$NAME started." + fi + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- splatd-1.2.orig/debian/control +++ splatd-1.2/debian/control @@ -0,0 +1,24 @@ +Source: splatd +Section: python +X-Python-Version: >= 2.4 +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Nick Barkas +Build-Depends: debhelper (>= 5.0.38), po-debconf, python-all (>= 2.6.6-3~) +Standards-Version: 3.9.2 +Homepage: http://code.google.com/p/splatd/ + +Package: splatd +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, python-ldap, python-twisted, python-zconfig +Description: Scalable Periodic LDAP Attribute Transmogrifier + 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. + . + Splat currently supports the following: + . + * Writing SSH public keys + * Writing .forward files + * Creating user home directories + * Archiving and deleting home directories of deleted users --- splatd-1.2.orig/debian/copyright +++ splatd-1.2/debian/copyright @@ -0,0 +1,121 @@ +This package was debianized by Nick Barkas on +Mon, 12 Jun 2006 13:25:36 -0700. + +It was downloaded from http://dpw.threerings.net/projects/splat/ + +Copyright Holder: Three Rings Design, Inc. + +Splat License: + +Copyright (c) 2005 - 2006 Three Rings Design, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the copyright owner nor the names of contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +--- + +Some LDAP schema files included in splat/test/data/openldap/schema are +copyright 1998-2005 The OpenLDAP Foundation and may be redistributed under the +terms of the OpenLDAP Public License, printed below and available from +http://www.OpenLDAP.org/license.html. Portions of some schema files are also +copyright 1999 The Internet Society. Their license is printed below the +OpenLDAP license. + +The OpenLDAP Public License + Version 2.8, 17 August 2003 + +Redistribution and use of this software and associated documentation +("Software"), with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions in source form must retain copyright statements + and notices, + +2. Redistributions in binary form must reproduce applicable copyright + statements and notices, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution, and + +3. Redistributions must contain a verbatim copy of this document. + +The OpenLDAP Foundation may revise this license from time to time. +Each revision is distinguished by a version number. You may use +this Software under terms of this license revision or under the +terms of any subsequent revision of the license. + +THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS +CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) +OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +The names of the authors and copyright holders must not be used in +advertising or otherwise to promote the sale, use or other dealing +in this Software without specific, written prior permission. Title +to copyright in this Software shall at all times remain with copyright +holders. + +OpenLDAP is a registered trademark of the OpenLDAP Foundation. + +Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, +California, USA. All Rights Reserved. Permission to copy and +distribute verbatim copies of this document is granted. + +--- + +Copyright (C) The Internet Society (1999). All Rights Reserved. + +This document and translations of it may be copied and furnished to +others, and derivative works that comment on or otherwise explain it +or assist in its implementation may be prepared, copied, published +and distributed, in whole or in part, without restriction of any +kind, provided that the above copyright notice and this paragraph are +included on all such copies and derivative works. However, this +document itself may not be modified in any way, such as by removing +the copyright notice or references to the Internet Society or other +Internet organizations, except as needed for the purpose of +developing Internet standards in which case the procedures for +copyrights defined in the Internet Standards process must be +followed, or as required to translate it into languages other than +English. + +The limited permissions granted above are perpetual and will not be +revoked by the Internet Society or its successors or assigns. + +This document and the information contained herein is provided on an +"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING +TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING +BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION +HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF +MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + --- splatd-1.2.orig/debian/splatd.doc-base +++ splatd-1.2/debian/splatd.doc-base @@ -0,0 +1,9 @@ +Document: splatd +Title: Debian splatd Manual +Author: Landon Fuller, Nick Barkas, and Three Rings Design, Inc. +Abstract: This manual describes what Splat is and how it can be used. +Section: System/Administration + +Format: HTML +Index: /usr/share/doc/splatd/html/index.html +Files: /usr/share/doc/splatd/html/*.html --- splatd-1.2.orig/debian/watch +++ splatd-1.2/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://code.google.com/p/splatd/ http://splatd.googlecode.com/files/splatd-(.*)\.tar\.gz --- splatd-1.2.orig/debian/splat.conf.in +++ splatd-1.2/debian/splat.conf.in @@ -0,0 +1,205 @@ +# This is the configuration file for splatd. See /usr/share/doc/splatd/html +# for splat documentation, or /usr/share/doc/splatd/examples/splat.conf.gz +# for an example configuration. + + + # The LDAP Server configuration. + # URI of the server(s) + URI @URI@ + # The default search base for the server + BaseDN @BASEDN@ + # The distinguished name to use to bind to the LDAP directory + # Both the BindDN and Password may be omitted, in which + # case an anonymous bind is made. + #BindDN cn=Manager,dc=example,dc=com + # The password (may be in LDAP MD5/SHA1 form, generate using slappasswd) + #Password {SSHA}0JjiKIXNxsrjzSRnFDDuJEM1wQLIMvv/ + + + + # Logging configuration + + Level info + Facility daemon + Address /dev/log + + + +# Uncomment the following section to enable the ssh public keys helper. +# +# # The helper module +# Helper splat.helpers.sshPublicKeys +# # The frequency at which the daemon will poll LDAP +# Frequency 10m +# +# # Helper-specific options. These are passed directly +# # to the helper plugin. +# +# +# +# +# # The base DN to use when searching for entries. +# # Defaults to the LDAP BaseDN. +# SearchBase ou=People,dc=example,dc=com +# # The filer to use when searching for entries +# SearchFilter (&(objectClass=sshAccount)(accountStatus=active)) +# +# # Group-specific options. +# +# # Require that entries match one of the specified groups +# RequireGroup yes +# +# # Only the first matching group is used, and groups are evaluated in the +# # order specified. +# +# # The base DN to use when searching for groups +# # Defaults to the LDAP BaseDN +# SearchBase ou=Groups,dc=example,dc=com +# # The filter to use when searching for groups +# SearchFilter (&(objectClass=groupOfUniqueNames)(cn=administrators)) +# +# +# +# # The base DN to use when searching for groups +# # Defaults to the LDAP BaseDN +# SearchBase ou=Groups,dc=example,dc=com +# # The filter to use when searching for groups +# SearchFilter (&(objectClass=groupOfUniqueNames)(cn=developers)) +# +# # Limit developers to using svn, rooted in /export/svn/repos +# +# +# + +# Uncomment the following section to enable the .forward file helper. +# +# # The helper module +# Helper splat.helpers.mailForwardingAddress +# # The frequency at which the daemon will poll LDAP +# Frequency 10m +# +# # Helper-specific options. These are passed directly +# # to the helper plugin. +# +# +# +# +# # The base DN to use when searching for entries. +# # Defaults to the LDAP BaseDN. +# SearchBase ou=People,dc=example,dc=com +# # The filer to use when searching for entries +# SearchFilter (&(objectClass=posixAccount)(accountStatus=active)) +# + +# Uncomment the following section to enable the home directory creating helper. +# +# # The helper module +# Helper splat.helpers.homeDirectory +# # The frequency at which the daemon will poll LDAP +# Frequency 10m +# +# # Helper-specific options. These are passed directly +# # to the helper plugin. +# +# +# +# +# +# +# # The base DN to use when searching for entries. +# # Defaults to the LDAP BaseDN. +# SearchBase ou=People,dc=example,dc=com +# # The filer to use when searching for entries +# SearchFilter (&(objectClass=posixAccount)(accountStatus=active)) +# + +# Uncomment the following section to enable the home directory archival/purging +# helper. +# +# # The helper module +# Helper splat.helpers.purgeUser +# # The frequency at which the daemon will poll LDAP +# Frequency 10m +# +# # Helper-specific options. These are passed directly +# # to the helper plugin. +# +# +# +# +# +# +# +# +# +# # The base DN to use when searching for entries. +# # Defaults to the LDAP BaseDN. +# SearchBase ou=People,dc=example,dc=com +# # The filer to use when searching for entries +# SearchFilter (&(objectClass=purgeableAccount)(accountStatus=disabled)) +# --- splatd-1.2.orig/debian/compat +++ splatd-1.2/debian/compat @@ -0,0 +1 @@ +5 --- splatd-1.2.orig/debian/docs +++ splatd-1.2/debian/docs @@ -0,0 +1,2 @@ +README +TODO --- splatd-1.2.orig/debian/splatd.default +++ splatd-1.2/debian/splatd.default @@ -0,0 +1,3 @@ +# Additional options that are passed to the Daemon. +CONF=/etc/splatd/splat.conf +DAEMON_OPTS="-f $CONF" --- splatd-1.2.orig/debian/dirs +++ splatd-1.2/debian/dirs @@ -0,0 +1,3 @@ +usr/share/splatd +usr/share/doc/splatd/html +etc/splatd --- splatd-1.2.orig/debian/po/templates.pot +++ splatd-1.2/debian/po/templates.pot @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: snb@threerings.net\n" +"POT-Creation-Date: 2007-02-13 16:00-0800\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../splatd.templates:1001 +msgid "URI of LDAP server:" +msgstr "" + +#. Type: string +#. Description +#: ../splatd.templates:1001 +msgid "" +"This URI typically will be the same as would be found in your /etc/ldap/ldap." +"conf file as the URI setting. For example, to connect with SSL to an LDAP " +"server at directory.example.com, ldaps://directory.example.com would be your " +"URI." +msgstr "" + +#. Type: string +#. Description +#: ../splatd.templates:2001 +msgid "Default search base:" +msgstr "" + +#. Type: string +#. Description +#: ../splatd.templates:2001 +msgid "" +"This is the Base DN, which is typically the same as the BASE setting in /etc/" +"ldap/ldap.conf. For example, this could be something like dc=example,dc=com " +"for the domain example.com." +msgstr "" --- splatd-1.2.orig/debian/po/POTFILES.in +++ splatd-1.2/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] splatd.templates