From bca864cfd7a0b05f9cb3394762b3898583d954d9 Mon Sep 17 00:00:00 2001
From: Corentin Chary <cchary@commonit.com>
Date: Fri, 12 Feb 2010 16:26:41 +0000
Subject: [PATCH] debian: add pkcs11-daemon and pkcs11-proxy1 packages

Signed-off-by: Corentin Chary <cchary@commonit.com>
---
 debian/changelog             |  5 +++++
 debian/compat                |  1 +
 debian/control               | 21 +++++++++++++++++++++
 debian/copyright             | 18 ++++++++++++++++++
 debian/pkcs11-daemon.install |  1 +
 debian/pkcs11-proxy1.install |  1 +
 debian/rules                 |  7 +++++++
 7 files changed, 54 insertions(+)
 create mode 100755 debian/changelog
 create mode 100644 debian/compat
 create mode 100755 debian/control
 create mode 100755 debian/copyright
 create mode 100644 debian/pkcs11-daemon.install
 create mode 100644 debian/pkcs11-proxy1.install
 create mode 100755 debian/rules

diff --git a/debian/changelog b/debian/changelog
new file mode 100755
index 0000000..04bf461
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pkcs11-proxy (0.1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Corentin Chary <cchary@commonit.com>  Tue, 16 Feb 2010 13:59:59 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100755
index 0000000..8485139
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: pkcs11-proxy
+Priority: extra
+Maintainer: Corentin Chary <cchary@commonit.com>
+Build-Depends: cdbs, debhelper (>= 6), cmake
+Standards-Version: 3.8.0
+Section: libs
+
+Package: pkcs11-proxy1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends:
+Description: pkcs11-proxy
+ A pkcs11 proxy to use pkcs11 over the network
+
+Package: pkcs11-daemon
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends:
+Description: pkcs11-proxy
+ A pkcs11 daemon to talk with pkcs11-proxy
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100755
index 0000000..4a78422
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,18 @@
+License:
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License version 2 as
+	published by the Free Software Foundation.
+
+	This program 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 program; if not, write to the Free Software
+	Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+	MA 02110-1301, USA.
+
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/pkcs11-daemon.install b/debian/pkcs11-daemon.install
new file mode 100644
index 0000000..efd50ab
--- /dev/null
+++ b/debian/pkcs11-daemon.install
@@ -0,0 +1 @@
+debian/tmp/opt/commonit/bin/pkcs11-daemon	/usr/bin
\ No newline at end of file
diff --git a/debian/pkcs11-proxy1.install b/debian/pkcs11-proxy1.install
new file mode 100644
index 0000000..056ca61
--- /dev/null
+++ b/debian/pkcs11-proxy1.install
@@ -0,0 +1 @@
+debian/tmp/opt/commonit/lib/libpkcs11-proxy*.so.*	/opt/commonit/usr/lib
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d7b19fb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/cmake.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+DEB_CMAKE_INSTALL_PREFIX=/opt/commonit/
+DEB_DH_BUILDDEB_ARGS=--destdir=$(HOME)/pkg-pool
-- 
GitLab