Add Debianization of the pinentry package.
authorMarcus Brinkmann <mb@g10code.com>
Sat, 27 Jul 2002 21:30:42 +0000 (21:30 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Sat, 27 Jul 2002 21:30:42 +0000 (21:30 +0000)
18 files changed:
debian/README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/pinentry-curses.docs [new file with mode: 0644]
debian/pinentry-curses.files [new file with mode: 0644]
debian/pinentry-curses.postinst [new file with mode: 0644]
debian/pinentry-curses.prerm [new file with mode: 0644]
debian/pinentry-gtk.docs [new file with mode: 0644]
debian/pinentry-gtk.files [new file with mode: 0644]
debian/pinentry-gtk.postinst [new file with mode: 0644]
debian/pinentry-gtk.prerm [new file with mode: 0644]
debian/pinentry-qt.docs [new file with mode: 0644]
debian/pinentry-qt.files [new file with mode: 0644]
debian/pinentry-qt.postinst [new file with mode: 0644]
debian/pinentry-qt.prerm [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..73bfed6
--- /dev/null
@@ -0,0 +1,8 @@
+pinentry for Debian
+-------------------
+
+The pinentry-* packages use alternatives.  The versions that can run
+under the X Window System have a higher priority because they support
+text mode as well.
+
+ -- Marcus Brinkmann <mb@g10code.de>, Thu, 25 Jul 2002 23:09:08 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..3853963
--- /dev/null
@@ -0,0 +1,6 @@
+pinentry (0.6.3-0) unstable; urgency=low
+
+  * Initial packaging.
+
+ -- Marcus Brinkmann <brinkmd@debian.org>  Thu, 25 Jul 2002 23:09:08 +0200
+
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..0ac4eda
--- /dev/null
@@ -0,0 +1,39 @@
+Source: pinentry
+Section: unknown
+Priority: optional
+Maintainer: Marcus Brinkmann <mb@g10code.de>
+Build-Depends: debhelper (>> 3.0.0), libncurses5-dev, libgtk1.2-dev, libqt3-mt-dev
+Standards-Version: 3.5.2
+
+Package: pinentry-curses
+Architecture: any
+Depends: ${shlibs:Depends}
+Provides: pinentry
+Description: Curses pin entry dialog for GPG Agent
+ The pinentry program is used for secure input of the passphrase that
+ protects a secret key.
+ .
+ This package contains the curses version of the pinentry, which only
+ requires the text mode.
+
+Package: pinentry-gtk
+Architecture: any
+Depends: ${shlibs:Depends}
+Provides: pinentry
+Description: GTK+ pin entry dialog for GPG Agent
+ The pinentry program is used for secure input of the passphrase that
+ protects a secret key.
+ .
+ This package contains the GTK+ version of the pinentry, which
+ integrates with the GNOME desktop.  It supports text mode, too.
+
+Package: pinentry-qt
+Architecture: any
+Depends: ${shlibs:Depends}
+Provides: pinentry
+Description: QT pin entry dialog for GPG Agent
+ The pinentry program is used for secure input of the passphrase that
+ protects a secret key.
+ .
+ This package contains the QT version of the pinentry, which
+ integrates with the KDE desktop.  It supports text mode, too.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..4d76a4f
--- /dev/null
@@ -0,0 +1,27 @@
+This package was debianized by Marcus Brinkmann <mb@g10code.de> on
+Thu, 25 Jul 2002 23:09:08 +0200.
+
+It was downloaded from ftp://ftp.gnupg.org/GnuPG/alpha/aegypten/
+
+Upstream Author(s): g10 Code GmbH, Klarälvdalens Datakonsult AB and
+                    Robert Bihlmeyer.
+
+Copyright:
+
+   This package 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; version 2 dated June, 1991.
+
+   This package 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.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+   02111-1307, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..e772481
--- /dev/null
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/pinentry-curses.docs b/debian/pinentry-curses.docs
new file mode 100644 (file)
index 0000000..c710d1c
--- /dev/null
@@ -0,0 +1,3 @@
+NEWS
+README
+debian/README.Debian
diff --git a/debian/pinentry-curses.files b/debian/pinentry-curses.files
new file mode 100644 (file)
index 0000000..a7907c6
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/pinentry-curses
diff --git a/debian/pinentry-curses.postinst b/debian/pinentry-curses.postinst
new file mode 100644 (file)
index 0000000..add53cf
--- /dev/null
@@ -0,0 +1,50 @@
+#! /bin/sh
+# postinst script for libksba
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+    update-alternatives --install /usr/bin/pinentry pinentry \
+       /usr/bin/pinentry-curses 30
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/pinentry-curses.prerm b/debian/pinentry-curses.prerm
new file mode 100644 (file)
index 0000000..dd419c1
--- /dev/null
@@ -0,0 +1,39 @@
+#! /bin/sh
+# prerm script for libksba
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    update-alternatives --remove pinentry /usr/bin/pinentry-curses
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/pinentry-gtk.docs b/debian/pinentry-gtk.docs
new file mode 100644 (file)
index 0000000..c710d1c
--- /dev/null
@@ -0,0 +1,3 @@
+NEWS
+README
+debian/README.Debian
diff --git a/debian/pinentry-gtk.files b/debian/pinentry-gtk.files
new file mode 100644 (file)
index 0000000..a0f1bdd
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/pinentry-gtk
diff --git a/debian/pinentry-gtk.postinst b/debian/pinentry-gtk.postinst
new file mode 100644 (file)
index 0000000..2134ef6
--- /dev/null
@@ -0,0 +1,50 @@
+#! /bin/sh
+# postinst script for libksba
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+    update-alternatives --install /usr/bin/pinentry pinentry \
+       /usr/bin/pinentry-gtk 60
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/pinentry-gtk.prerm b/debian/pinentry-gtk.prerm
new file mode 100644 (file)
index 0000000..01b13a0
--- /dev/null
@@ -0,0 +1,39 @@
+#! /bin/sh
+# prerm script for libksba
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    update-alternatives --remove pinentry /usr/bin/pinentry-gtk
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/pinentry-qt.docs b/debian/pinentry-qt.docs
new file mode 100644 (file)
index 0000000..c710d1c
--- /dev/null
@@ -0,0 +1,3 @@
+NEWS
+README
+debian/README.Debian
diff --git a/debian/pinentry-qt.files b/debian/pinentry-qt.files
new file mode 100644 (file)
index 0000000..de181e9
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/pinentry-qt
diff --git a/debian/pinentry-qt.postinst b/debian/pinentry-qt.postinst
new file mode 100644 (file)
index 0000000..838a13a
--- /dev/null
@@ -0,0 +1,50 @@
+#! /bin/sh
+# postinst script for libksba
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+    update-alternatives --install /usr/bin/pinentry pinentry \
+       /usr/bin/pinentry-qt 60
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/pinentry-qt.prerm b/debian/pinentry-qt.prerm
new file mode 100644 (file)
index 0000000..8be345b
--- /dev/null
@@ -0,0 +1,39 @@
+#! /bin/sh
+# prerm script for libksba
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    update-alternatives --remove pinentry /usr/bin/pinentry-qt
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..1157a7a
--- /dev/null
@@ -0,0 +1,116 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. 
+# GNU copyright 1997 by Joey Hess.
+#
+# This version is for a hypothetical package that builds an
+# architecture-dependant package, as well as an architecture-independent
+# package.
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=3
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+       INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+       dh_testdir
+       # Add here commands to configure the package.
+       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+       --prefix=/usr --infodir=\$${prefix}/share/info \
+       --enable-pinentry-curses --enable-pinentry-gtk \
+       --enable-pinentry-qt --enable-fallback-curses
+
+build-arch:  config.status build-arch-stamp
+build-arch-stamp:
+       dh_testdir
+
+       # Add here command to compile/build the package.
+       $(MAKE)
+
+       touch build-arch-stamp
+
+build-indep: config.status  build-indep-stamp
+build-indep-stamp:
+       dh_testdir
+
+       # Add here command to compile/build the arch indep package(s).
+
+       touch build-indep-stamp
+
+build: build-arch build-indep
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-arch-stamp build-indep-stamp 
+
+       # Add here commands to clean up after the build process.
+       -$(MAKE) distclean
+       -test -r /usr/share/misc/config.sub && \
+         cp -f /usr/share/misc/config.sub config.sub
+       -test -r /usr/share/misc/config.guess && \
+         cp -f /usr/share/misc/config.guess config.guess
+
+
+       dh_clean
+
+install: DH_OPTIONS=
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       # Add here commands to install the package into debian/pinentry.
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+       dh_movefiles
+
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir -a
+       dh_testroot -a
+#      dh_installdebconf -a
+       dh_installdocs -a
+       dh_installexamples -a
+       dh_installmenu -a
+#      dh_installlogrotate -a
+#      dh_installemacsen -a
+#      dh_installpam -a
+#      dh_installmime -a
+#      dh_installinit -a
+       dh_installcron -a
+#      dh_installman -a
+       dh_installinfo -a
+#      dh_undocumented -a
+       dh_installchangelogs ChangeLog -a
+       dh_strip -a
+       dh_link -a
+       dh_compress -a
+       dh_fixperms -a
+#      dh_makeshlibs -a
+       dh_installdeb -a
+#      dh_perl -a
+       dh_shlibdeps -a
+       dh_gencontrol -a
+       dh_md5sums -a
+       dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install