dirmngr (1.0.3-1) debian-dir only changes

Summary

 debian/changelog            |  176 ++++++++++++++++++++++++++++++++++++++++++++
 debian/compat               |    1 
 debian/control              |   27 ++++++
 debian/copyright            |   36 +++++++++
 debian/default              |    8 ++
 debian/dirs                 |    5 +
 debian/etc/dirmngr.conf     |    1 
 debian/etc/ldapservers.conf |    1 
 debian/info                 |    1 
 debian/init.d               |   79 +++++++++++++++++++
 debian/install              |    2 
 debian/logrotate            |    7 +
 debian/postinst             |    8 ++
 debian/postrm               |   16 ++++
 debian/rules                |   10 ++
 debian/watch                |    3 
 16 files changed, 381 insertions(+)

    
download this patch

Patch contents

--- dirmngr-1.0.3.orig/debian/logrotate
+++ dirmngr-1.0.3/debian/logrotate
@@ -0,0 +1,7 @@
+/var/log/dirmngr.log {
+	missingok
+	notifempty
+	postrotate
+		invoke-rc.d --quiet dirmngr try-restart >/dev/null
+	endscript
+}
--- dirmngr-1.0.3.orig/debian/postrm
+++ dirmngr-1.0.3/debian/postrm
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = purge ]; then
+	rm -rf /var/run/dirmngr/
+	rm -f /var/log/dirmngr.log*
+	rm -f /var/lib/dirmngr/extra-certs/*
+	rm -f /var/cache/dirmngr/crls.d/*
+
+	if [ -x /usr/sbin/delgroup ]; then
+		delgroup --system dirmngr || :
+	fi
+fi
+
+#DEBHELPER#
--- dirmngr-1.0.3.orig/debian/info
+++ dirmngr-1.0.3/debian/info
@@ -0,0 +1 @@
+#doc/dirmngr.info
--- dirmngr-1.0.3.orig/debian/postinst
+++ dirmngr-1.0.3/debian/postinst
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+getent group dirmngr >/dev/null 2>&1 ||
+	addgroup --system dirmngr
+
+#DEBHELPER#
--- dirmngr-1.0.3.orig/debian/default
+++ dirmngr-1.0.3/debian/default
@@ -0,0 +1,8 @@
+# Defaults for dirmngr init script
+# sourced by /etc/init.d/dirmngr
+
+# This variable contols the access mode of the dirmngr socket.  Set it
+# to 0770 to allow only users in the "dirmngr" group to access the
+# socket and thus use the daemon.  Set it to 0777 to allow everyone to
+# use the daemon.  The default is 0770.
+DIRMNGR_SOCKET_MODE=0770
--- dirmngr-1.0.3.orig/debian/init.d
+++ dirmngr-1.0.3/debian/init.d
@@ -0,0 +1,79 @@
+#! /bin/sh
+
+### BEGIN INIT INFO
+# Provides:          dirmngr
+# Required-Start:    $local_fs $network $remote_fs
+# Required-Stop:     $local_fs $network $remote_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: start DirMngr daemon
+# Description: DirMngr is a server for managing and downloading certificate
+#              revocation lists.
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+NAME=dirmngr
+DAEMON=/usr/bin/$NAME
+PIDFILE=/var/run/$NAME.pid
+
+test -x $DAEMON || exit 5
+
+if [ -r /etc/default/$NAME ]; then
+	. /etc/default/$NAME
+fi
+
+. /lib/lsb/init-functions
+
+
+d_start() {
+	if pidofproc $DAEMON >/dev/null; then
+		:
+	else
+		mkdir -p /var/run/dirmngr || return 1
+
+		eval "$(start_daemon -p $PIDFILE $DAEMON --daemon --sh)" || return 1
+		pid=$(echo "$DIRMNGR_INFO" | cut -d : -f 2) || return 1
+		echo "$pid" >$PIDFILE || return 1
+
+		chgrp dirmngr /var/run/dirmngr/socket || return 1
+		chmod ${DIRMNGR_SOCKET_MODE:-0770} /var/run/dirmngr/socket || return 1
+	fi
+
+	return 0
+}
+
+
+case "$1" in
+    start)
+	log_daemon_msg "Starting DirMngr" $NAME
+	d_start
+	log_end_msg $?
+	;;
+    stop)
+	log_daemon_msg "Stopping DirMngr" $NAME
+	killproc $DAEMON
+	log_end_msg $?
+	;;
+    status)
+	status_of_proc $DAEMON DirMngr
+	;;
+    restart)
+	$0 stop && sleep 1 && $0 start
+	;;
+    try-restart)
+	if $0 status >/dev/null; then
+		$0 restart
+	else
+		exit 0
+	fi
+	;;
+    reload|force-reload)
+	log_daemon_msg "Reloading DirMngr configuration" $NAME
+	killproc $DAEMON HUP
+	log_end_msg $?
+	;;
+    *)
+	log_failure_msg "Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
+	exit 2
+	;;
+esac
--- dirmngr-1.0.3.orig/debian/install
+++ dirmngr-1.0.3/debian/install
@@ -0,0 +1,2 @@
+debian/etc/dirmngr.conf etc/dirmngr/
+debian/etc/ldapservers.conf etc/dirmngr/
--- dirmngr-1.0.3.orig/debian/changelog
+++ dirmngr-1.0.3/debian/changelog
@@ -0,0 +1,176 @@
+dirmngr (1.0.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated build dependency versions
+  * Updated copyright years
+  * Pointed copyright to license file GPL-2, per lintian
+  * Updated standards version
+  * Use status_of_proc in init script
+
+ -- Peter Eisentraut <petere@debian.org>  Mon, 29 Jun 2009 21:41:35 +0300
+
+dirmngr (1.0.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated standards version
+
+ -- Peter Eisentraut <petere@debian.org>  Fri, 22 Aug 2008 00:00:00 +0000
+
+dirmngr (1.0.1-3) unstable; urgency=low
+
+  * Fixed init script dependencies (closes: #466346)
+  * Defined LDAP_DEPRECATED=1 because deprecated LDAP API is used
+    (closes: #463358)
+  * Added linker option --as-needed
+  * Removed redundant/useless changelog and README files from installation
+
+ -- Peter Eisentraut <petere@debian.org>  Mon, 18 Feb 2008 10:18:26 +0100
+
+dirmngr (1.0.1-2) unstable; urgency=low
+
+  * debian/watch: force passive FTP, since ftp.gnupg.org seems unhappy with
+    active (closes: #456466)
+  * Updated standards version
+  * Added Homepage control field
+
+ -- Peter Eisentraut <petere@debian.org>  Fri, 21 Dec 2007 21:47:26 +0100
+
+dirmngr (1.0.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Peter Eisentraut <petere@debian.org>  Mon, 20 Aug 2007 10:56:56 +0200
+
+dirmngr (1.0.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated watch file
+
+ -- Peter Eisentraut <petere@debian.org>  Tue, 10 Apr 2007 09:55:24 +0200
+
+dirmngr (0.9.6-1) unstable; urgency=low
+
+  * New upstream release
+  * Manual pages are now provided upstream
+  * Updated build dependencies
+  * Added $network to init script LSB header
+  * Added uupdate to watch file
+
+ -- Peter Eisentraut <petere@debian.org>  Sat,  9 Sep 2006 12:24:08 +0200
+
+dirmngr (0.9.5-2) unstable; urgency=low
+
+  * Build depend against libksba >= 0.9.16-1, which contains a corrected
+    shlibs file (closes: #383764)
+
+ -- Peter Eisentraut <petere@debian.org>  Sun, 20 Aug 2006 13:56:36 +0200
+
+dirmngr (0.9.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Peter Eisentraut <petere@debian.org>  Sun,  2 Jul 2006 13:12:44 +0200
+
+dirmngr (0.9.4-1) unstable; urgency=low
+
+  * New upstream release
+    - Info file installation was corrected
+  * Changed to Debhelper level 5
+  * Updated standards version
+
+ -- Peter Eisentraut <petere@debian.org>  Fri, 19 May 2006 12:01:27 +0200
+
+dirmngr (0.9.3-2) unstable; urgency=low
+
+  * Create /var/run/dirmngr in the init script rather than in the package
+    (closes: #344758)
+  * Removed workaround for killproc bug; now requires lsb-base 3.0-12
+  * Added init script info section
+
+ -- Peter Eisentraut <petere@debian.org>  Sun,  8 Jan 2006 19:28:53 +0100
+
+dirmngr (0.9.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Properly encoded non-ASCII characters in the man pages
+  * Removed redundant debian/docs file
+  * Rebuild against new libksba should prevent partial upgrades
+    (closes: #324611)
+  * Only chmod/chgrp the socket when the server is really being started
+    (closes: #336482)
+
+ -- Peter Eisentraut <petere@debian.org>  Tue,  1 Nov 2005 20:20:33 +0100
+
+dirmngr (0.9.2-2) unstable; urgency=medium
+
+  * Init script fixes:
+    - Pass complete path name to killproc and pidofproc (closes: #327178)
+    - Use log_daemon_msg instead of log_start_msg
+    - Prevent descruction of the PID file when trying to start with an
+      instance already running
+
+ -- Peter Eisentraut <petere@debian.org>  Sat, 10 Sep 2005 22:45:49 +0200
+
+dirmngr (0.9.2-1) unstable; urgency=low
+
+  * New upstream release (closes: #306888)
+  * Build dependencies revised accordingly
+  * Changed maintainer address
+  * Applied de.po corrections by Jens Seidel (closes: #314132)
+  * Updated standards version
+  * Changed init script to LSB style
+  * Updated watch file
+
+ -- Peter Eisentraut <petere@debian.org>  Thu,  4 Aug 2005 18:18:17 +0200
+
+dirmngr (0.9.1-2) unstable; urgency=medium
+
+  * Use option --sh in init script to be independent of current shell
+    (closes: #305093)
+
+ -- Peter Eisentraut <peter_e@gmx.net>  Tue, 19 Apr 2005 21:01:38 +0200
+
+dirmngr (0.9.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated man pages
+  * /etc/default/dirmngr no longer controls whether to start the daemon
+  * Allow setting the access mode of the socket in /etc/default/dirmngr
+  * Removed README.Debian; upstream documentation is now better
+
+ -- Peter Eisentraut <peter_e@gmx.net>  Fri, 11 Feb 2005 02:03:50 +0100
+
+dirmngr (0.9.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Build dependencies revised accordingly
+  * Converted to CDBS
+  * Added log rotation
+  * Added init script
+  * Updated man page, new man page for dirmngr-client
+  * Added system group to control access to socket of daemon
+  * Install custom-built combined changelog
+
+ -- Peter Eisentraut <peter_e@gmx.net>  Wed,  5 Jan 2005 00:34:42 +0100
+
+dirmngr (0.5.6-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Peter Eisentraut <peter_e@gmx.net>  Thu, 30 Sep 2004 12:51:55 +0200
+
+dirmngr (0.5.5-1) experimental; urgency=low
+
+  * New upstream release
+  * Build dependencies revised accordingly
+  * Binary now installed in /usr/bin
+  * Added man page
+  * Added watch file
+
+ -- Peter Eisentraut <peter_e@gmx.net>  Thu, 22 Jul 2004 15:11:40 +0200
+
+dirmngr (0.5.0-1) experimental; urgency=low
+
+  * Initial public release (closes: #187549)
+
+ -- Peter Eisentraut <peter_e@gmx.net>  Wed, 30 Jun 2004 14:19:26 +0200
--- dirmngr-1.0.3.orig/debian/rules
+++ dirmngr-1.0.3/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+DEB_INSTALL_CHANGELOGS_ALL =
+DEB_INSTALL_DOCS_ALL = NEWS TODO AUTHORS THANKS
+
+CPPFLAGS += -DLDAP_DEPRECATED=1
+LDFLAGS += -Wl,--as-needed
--- dirmngr-1.0.3.orig/debian/copyright
+++ dirmngr-1.0.3/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianized by Peter Eisentraut <petere@debian.org> on
+Mon, 28 Jun 2004 10:20:37 +0200, based on earlier work by Marcus
+Brinkmann and Michael Bramer.
+
+It was downloaded from <ftp://ftp.gnupg.org/GnuPG/dirmngr/>.
+
+Upstream authors: 
+  Steffen Hansen <steffen@klaralvdalens-datakonsult.se>
+  g10 Code GmbH <code@g10code.com>
+  Werner Koch <wk@gnupg.org>, <wk@g10code.com>
+  Free Software Foundation <gnu@gnu.org>
+  Michael Tokarev <mjt@corpit.ru>
+
+Copyright:
+
+  Copyright (C) 2002 Klarälvdalens Datakonsult AB
+  Copyright (C) 2003-2009 g10 Code GmbH
+  Copyright (C) 1998-2007 Free Software Foundation, Inc.
+
+  DirMngr is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  DirMngr is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+On Debian systems, the complete text of the GNU General Public License
+version 2 can be found in the file /usr/share/common-licenses/GPL-2.
+
+Copyright for src/cdb.h and src/cdblib.c:
+
+  These files are a part of tinycdb package by Michael Tokarev,
+  mjt@corpit.ru.  Public domain.
--- dirmngr-1.0.3.orig/debian/compat
+++ dirmngr-1.0.3/debian/compat
@@ -0,0 +1 @@
+5
--- dirmngr-1.0.3.orig/debian/dirs
+++ dirmngr-1.0.3/debian/dirs
@@ -0,0 +1,5 @@
+etc/dirmngr
+etc/dirmngr/trusted-certs
+var/lib/dirmngr/extra-certs
+var/cache/dirmngr/crls.d
+var/log
--- dirmngr-1.0.3.orig/debian/control
+++ dirmngr-1.0.3/debian/control
@@ -0,0 +1,27 @@
+Source: dirmngr
+Section: utils
+Priority: optional
+Maintainer: Peter Eisentraut <petere@debian.org>
+Build-Depends:
+ cdbs (>= 0.4.37),
+ debhelper (>= 5),
+ gettext,
+ libassuan-dev (>= 1.0.4),
+ libgcrypt11-dev (>= 1.4.0),
+ libgpg-error-dev (>= 1.4),
+ libksba-dev (>= 1.0.2),
+ libldap2-dev,
+ libpth-dev (>= 1.3.7)
+Standards-Version: 3.8.2
+Homepage: http://www.gnupg.org/aegypten/
+
+Package: dirmngr
+Architecture: any
+Depends: adduser, lsb-base (>= 3.2-13), ${shlibs:Depends}, ${misc:Depends}
+Enhances: gpgsm, squid
+Description: server for managing certificate revocation lists
+ DirMngr is a server for managing and downloading certificate revocation
+ lists (CRLs) for X.509 certificates and for downloading the certificates
+ themselves.  DirMngr also handles OCSP requests as an alternative to
+ CRLs.  DirMngr is either invoked internally by gpgsm or when running as
+ a system daemon through the dirmngr-client tool.
--- dirmngr-1.0.3.orig/debian/watch
+++ dirmngr-1.0.3/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=pasv \
+ftp://ftp.gnupg.org/gcrypt/dirmngr/dirmngr-(.+).tar.(?:bz2|gz)  debian  uupdate
--- dirmngr-1.0.3.orig/debian/etc/dirmngr.conf
+++ dirmngr-1.0.3/debian/etc/dirmngr.conf
@@ -0,0 +1 @@
+log-file /var/log/dirmngr.log
--- dirmngr-1.0.3.orig/debian/etc/ldapservers.conf
+++ dirmngr-1.0.3/debian/etc/ldapservers.conf
@@ -0,0 +1 @@
+# HOSTNAME:PORT:USERNAME:PASSWORD:BASE_DN