From f5814595dbd6071f39c7fe099e62c0e7bfd8f510 Mon Sep 17 00:00:00 2001 From: Viktor Tarasov Date: Wed, 7 Aug 2013 10:13:52 +0200 Subject: [PATCH] packaging: debian packaging templates --- Makefile.am | 9 ++++++- packaging/debian.templates/changelog | 5 ++++ packaging/debian.templates/compat | 1 + packaging/debian.templates/control | 31 +++++++++++++++++++++++ packaging/debian.templates/copyright | 29 +++++++++++++++++++++ packaging/debian.templates/docs | 2 ++ packaging/debian.templates/opensc.install | 14 ++++++++++ packaging/debian.templates/rules | 30 ++++++++++++++++++++++ 8 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 packaging/debian.templates/changelog create mode 100644 packaging/debian.templates/compat create mode 100644 packaging/debian.templates/control create mode 100644 packaging/debian.templates/copyright create mode 100644 packaging/debian.templates/docs create mode 100644 packaging/debian.templates/opensc.install create mode 100755 packaging/debian.templates/rules diff --git a/Makefile.am b/Makefile.am index 7b18ed16..076f3e8c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,14 @@ SUBDIRS = etc src win32 doc MacOSX dist_noinst_SCRIPTS = bootstrap dist_noinst_DATA = README \ solaris/Makefile solaris/README solaris/checkinstall.in \ - solaris/opensc.conf-dist solaris/pkginfo.in solaris/proto + solaris/opensc.conf-dist solaris/pkginfo.in solaris/proto \ + packaging/debian.templates/changelog \ + packaging/debian.templates/compat \ + packaging/debian.templates/control \ + packaging/debian.templates/copyright \ + packaging/debian.templates/docs \ + packaging/debian.templates/opensc.install \ + packaging/debian.templates/rules dist_doc_DATA = NEWS Generate-ChangeLog: diff --git a/packaging/debian.templates/changelog b/packaging/debian.templates/changelog new file mode 100644 index 00000000..7017a07f --- /dev/null +++ b/packaging/debian.templates/changelog @@ -0,0 +1,5 @@ +#PACKAGE# (#VERSION#-1) unstable; urgency=low + + * New upstream release. + + -- #USERNAME# <#EMAIL#> #DATE# diff --git a/packaging/debian.templates/compat b/packaging/debian.templates/compat new file mode 100644 index 00000000..45a4fb75 --- /dev/null +++ b/packaging/debian.templates/compat @@ -0,0 +1 @@ +8 diff --git a/packaging/debian.templates/control b/packaging/debian.templates/control new file mode 100644 index 00000000..6e074928 --- /dev/null +++ b/packaging/debian.templates/control @@ -0,0 +1,31 @@ +Source: opensc +Section: utils +Priority: extra +Maintainer: Viktor Tarasov +Build-Depends: debhelper (>= 8.0.0), autotools-dev, libltdl3-dev, libreadline-dev, libssl-dev (>= 0.9.7d-3), libpcsclite-dev (>= 1.2.9-beta1), pkg-config, xsltproc, docbook-xsl, zlib1g-dev, dh-autoreconf, flex +Standards-Version: 3.9.2 +Homepage: https://github.com/OpenSC/OpenSC +#Vcs-Git: git://git.debian.org/collab-maint/opensc.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/opensc.git;a=summary + +Package: opensc +Section: utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, pcscd +Replaces: libopensc2 (<< 0.12.0) +Conflicts: libopensc2 (<< 0.12.0), mozilla-opensc +Description: Smart card utilities with support for PKCS#15 compatible cards + OpenSC provides a set of libraries and utilities to access smart + cards. It mainly focuses on cards that support cryptographic + operations. It facilitates their use in security applications such as + mail encryption, authentication, and digital signature. OpenSC + implements the PKCS#11 API. OpenSC implements the PKCS#15 + standard and aims to be compatible with all software that does so as + well. + . + Before purchasing any cards, please read carefully documentation in + /usr/share/doc/opensc/html/wiki/index.html - only some cards are + supported. Not only does card type matters, but also card version, + card OS version and preloaded applet. Only a subset of possible + operations may be supported for your card. Card initialization may + require third party proprietary software. diff --git a/packaging/debian.templates/copyright b/packaging/debian.templates/copyright new file mode 100644 index 00000000..6e5d78d9 --- /dev/null +++ b/packaging/debian.templates/copyright @@ -0,0 +1,29 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: opensc +Source: https://github.com/OpenSC/OpenSC.git + +Files: * +Copyright: 2001-2013 OpenSC developers + +License: LGPL-3.0+ + + +License: LGPL-3.0+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + . + 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 + Lesser General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-3". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/packaging/debian.templates/docs b/packaging/debian.templates/docs new file mode 100644 index 00000000..50bd824b --- /dev/null +++ b/packaging/debian.templates/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/packaging/debian.templates/opensc.install b/packaging/debian.templates/opensc.install new file mode 100644 index 00000000..7bc95c72 --- /dev/null +++ b/packaging/debian.templates/opensc.install @@ -0,0 +1,14 @@ +debian/tmp/usr/bin/pkcs15-* +debian/tmp/usr/bin/*-tool +debian/tmp/usr/bin/eidenv +debian/tmp/usr/bin/opensc-explorer + +debian/tmp/usr/lib/*.so.* +debian/tmp/usr/lib/*.so +debian/tmp/usr/lib/pkcs11/*.so +debian/tmp/usr/share/opensc/*.profile +etc/opensc.conf etc/opensc + +debian/tmp/usr/share/man/man5/*.5 +debian/tmp/usr/share/man/man1/*.1 + diff --git a/packaging/debian.templates/rules b/packaging/debian.templates/rules new file mode 100755 index 00000000..ec80de2e --- /dev/null +++ b/packaging/debian.templates/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --with autoreconf + +override_dh_auto_configure: + dh_auto_configure -- --sysconfdir=/etc/opensc \ + --enable-pcsc \ + --disable-openct \ + --enable-doc \ + --enable-readline \ + --enable-zlib \ + --enable-sm \ + --htmldir=/usr/share/doc/opensc/html + +override_dh_auto_install: + dh_auto_install --destdir=debian/tmp + +override_dh_installdocs: + dh_installdocs -A README NEWS ChangeLog +