packaging: debian packaging templates

This commit is contained in:
Viktor Tarasov 2013-08-07 10:13:52 +02:00
parent bdd264936c
commit f5814595db
8 changed files with 120 additions and 1 deletions

View File

@ -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:

View File

@ -0,0 +1,5 @@
#PACKAGE# (#VERSION#-1) unstable; urgency=low
* New upstream release.
-- #USERNAME# <#EMAIL#> #DATE#

View File

@ -0,0 +1 @@
8

View File

@ -0,0 +1,31 @@
Source: opensc
Section: utils
Priority: extra
Maintainer: Viktor Tarasov <viktor.tarasov@gmail.com>
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.

View File

@ -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 <opensc-devel@lists.sourceforge.net>
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 <http://www.gnu.org/licenses/>.
.
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.

View File

@ -0,0 +1,2 @@
NEWS
README

View File

@ -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

View File

@ -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