--- directoryassistant-2.0.orig/debian/dirs +++ directoryassistant-2.0/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/directoryassistant --- directoryassistant-2.0.orig/debian/compat +++ directoryassistant-2.0/debian/compat @@ -0,0 +1 @@ +4 --- directoryassistant-2.0.orig/debian/menu +++ directoryassistant-2.0/debian/menu @@ -0,0 +1,2 @@ +?package(directoryassistant):needs="X11" section="Apps/Net"\ + title="directoryassistant" command="/usr/bin/directoryassistant" --- directoryassistant-2.0.orig/debian/copyright +++ directoryassistant-2.0/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Gustavo Franco on +Tue, 11 Nov 2003 01:16:45 -0200 + +It was downloaded from http://olivier.sessink.nl/directoryassistant/ + +Upstream Author: Olivier Sessink + +Copyright: +Copyright (c) 2003, Olivier Sessink +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * 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. + * The names of its contributors may not 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. --- directoryassistant-2.0.orig/debian/patches/01-images.dpatch +++ directoryassistant-2.0/debian/patches/01-images.dpatch @@ -0,0 +1,41 @@ +#! /bin/sh -e +## images.dpatch +## Gustavo Franco +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix the images location on 'directoryassistant' script. + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch -p0 < $0;; + -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +--- directoryassistant 2004-01-20 18:14:40.000000000 -0200 ++++ directoryassistant 2004-01-20 18:14:21.000000000 -0200 +@@ -273,7 +273,7 @@ + self.window.set_title("Directory Assistant") + self.window.set_border_width(10) + try: +- pixbuf = gtk.gdk.pixbuf_new_from_file('/usr/local/share/directoryassistant/directoryassistant.png') ++ pixbuf = gtk.gdk.pixbuf_new_from_file('/usr/share/directoryassistant/directoryassistant.png') + self.window.set_icon(pixbuf) + except: + pass +@@ -287,7 +287,7 @@ + vbox.pack_start(hbox, gtk.FALSE, gtk.TRUE) + try: + image = gtk.Image() +- image.set_from_file('/usr/local/share/directoryassistant/decoration.png') ++ image.set_from_file('/usr/share/directoryassistant/decoration.png') + hbox.pack_start(image) + except: + pass --- directoryassistant-2.0.orig/debian/patches/02-conffile.dpatch +++ directoryassistant-2.0/debian/patches/02-conffile.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh -e +## conffile.dpatch +## Gustavo Franco +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Show a nice message if dotfile wasn't found or is wrong. + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch -p0 < $0;; + -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +--- directoryassistant.orig 2004-08-14 18:17:07.000000000 -0300 ++++ directoryassistant 2004-08-14 18:19:35.000000000 -0300 +@@ -451,6 +451,7 @@ + fd = open(filename, 'w') + fd.write("[main]\n#ldapurl = ldap://myserver/\n#bind_dn = cn=myaccount,o=myorg\n#bind_password = mysecret\n#base_dn = ou=Mydepartment,o=myorg\n#startup_search=myname") + fd.close() ++ os.chmod(filename,0600) + em = ErrorMessage(message) + return 0 + --- directoryassistant-2.0.orig/debian/patches/03-initialdialog.dpatch +++ directoryassistant-2.0/debian/patches/03-initialdialog.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh -e +## initialdialog.dpatch +## Gustavo Franco +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix the images location on 'directoryassistant' script. + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch -p0 < $0;; + -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +--- directoryassistant 2005-12-22 23:27:08.000000000 -0200 ++++ directoryassistant 2005-12-22 23:28:22.000000000 -0200 +@@ -597,7 +597,7 @@ + if (os.path.exists(filename)): + message = 'Your configfile '+filename+' does not contain\nboth the required fields ldapurl and basedn.' + else: +- message = 'Your configfile '+filename+' did not yet exist, an empty config file is created, but you have to set the correct values.' ++ message = 'Your configfile '+filename+' did not yet exist,\n an empty config file is created, but you have to set the correct values.' + fd = open(filename, 'w') + fd.write("[main]\n#ldapurl = ldap://myserver/\n#bind_dn = cn=myaccount,o=myorg\n#bind_password = mysecret\n#base_dn = ou=Mydepartment,o=myorg\n#startup_search=myname") + fd.close() --- directoryassistant-2.0.orig/debian/docs +++ directoryassistant-2.0/debian/docs @@ -0,0 +1 @@ +README --- directoryassistant-2.0.orig/debian/watch +++ directoryassistant-2.0/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://olivier.sessink.nl/directoryassistant/directoryassistant-(.*).tar.gz --- directoryassistant-2.0.orig/debian/changelog +++ directoryassistant-2.0/debian/changelog @@ -0,0 +1,38 @@ +directoryassistant (2.0-1) unstable; urgency=low + + * New upstream release. + * debian/control: Standards-Version bumped to 3.6.2.1. + * debian/patches/03-initialdialog.dpatch added. (Closes: #294337) + + -- Gustavo Franco Thu, 22 Dec 2005 23:01:50 -0200 + +directoryassistant (1.4-1) unstable; urgency=low + + * New upstream release. (Closes: #278776, #275479) + - Thanks to tooar and Daniel van Eeden. + * debian/watch added. + * debian/directoryassistant.1 removed (using upstream manpage now). + * short description changed to follow debian policy. + + -- Gustavo Franco Sun, 30 Jan 2005 15:16:29 -0200 + +directoryassistant (1.3-1) unstable; urgency=medium + + * New upstream release + - Thanks to tooar for the suggestions. + * Configuration file permission fixed. (Closes: #265696) + + -- Gustavo Franco Sat, 14 Aug 2004 18:07:35 -0300 + +directoryassistant (1.2-1) unstable; urgency=low + + * New upstream release + - Graphical error message added. (Closes: #235431) + + -- Gustavo Franco Sun, 25 Apr 2004 17:39:59 -0300 + +directoryassistant (1.1-1) unstable; urgency=low + + * Initial Release. (Closes: #229373) + + -- Gustavo Franco Sun, 18 Jan 2004 01:16:45 -0200 --- directoryassistant-2.0.orig/debian/README.Debian +++ directoryassistant-2.0/debian/README.Debian @@ -0,0 +1,17 @@ +directoryassistant for Debian +----------------------------- + +Before run 'directoryassistant' for the first time, you'll need +create a file called $HOME/.directoryassistant with the format: + +[main] +ldapurl = ldap://your.ldap.server.com/ +bind_dn = cn=someaccount,o=someorg +bind_password = yourpassword +base_dn = ou=department,ou=People,o=someorg +ldap_version = 3 +startup_search = + +if you leave 'startup_search' empty, it will show all ldap entries. + + -- Gustavo Franco , Thu Dec 22 23:59:44 2005 --- directoryassistant-2.0.orig/debian/control +++ directoryassistant-2.0/debian/control @@ -0,0 +1,20 @@ +Source: directoryassistant +Section: net +Priority: optional +Maintainer: Gustavo Franco +Build-Depends-Indep: python (>= 2.3), debhelper (>> 4.0.0), dpatch(>= 1.11) +Standards-Version: 3.6.2.1 + +Package: directoryassistant +Architecture: all +Depends: ${python:Depends}, python-gtk2 (>= 1.99.17-6), python-ldap(>= 1.9.999.pre14-1) +Description: small LDAP address book manager + Directory Assistant is a small application for managing a + LDAP address book. The focus is to create a very easy to + use program, with only the few but necessary features. + The target is novice users that still need to keep their + addresses in an LDAP server. + . + It was written in Python language using GTK+ bindings. + . + Website: http://olivier.sessink.nl/directoryassistant/ --- directoryassistant-2.0.orig/debian/rules +++ directoryassistant-2.0/debian/rules @@ -0,0 +1,63 @@ +#!/usr/bin/make -f +# debian/rules +# GNU copyright 2003 by Gustavo Franco. +# Based on the original debian/rules sample +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PACKAGE = directoryassistant +PATCHLIST = $(notdir $(basename $(wildcard debian/patches/*.dpatch))) + +include /usr/share/dpatch/dpatch.make + +build: build-stamp patch + +build-stamp: + dh_testdir + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Installing the package. + cp -f directoryassistant $(CURDIR)/debian/directoryassistant/usr/bin/directoryassistant + cp -f directoryassistant.png $(CURDIR)/debian/directoryassistant/usr/share/directoryassistant/directoryassistant.png + cp -f decoration.png $(CURDIR)/debian/directoryassistant/usr/share/directoryassistant/decoration.png + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installmenu + dh_installman directoryassistant.1 + dh_installchangelogs + dh_installdocs + dh_link + dh_python + dh_compress + dh_fixperms + dh_installdeb + #dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install \ + patch unpatch