From 57f43f979ef705dab0f2218e5642ca3700ef4f22 Mon Sep 17 00:00:00 2001 From: Ruben Undheim Date: Tue, 9 Feb 2016 20:12:49 +0100 Subject: Import mrtdreader_0.1.6-1.debian.tar.xz [dgit import tarball mrtdreader 0.1.6-1 mrtdreader_0.1.6-1.debian.tar.xz] --- changelog | 40 +++++++++++++++++++++++++++ compat | 1 + control | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ copyright | 28 +++++++++++++++++++ gbp.conf | 4 +++ libmrtd-dev.install | 3 ++ libmrtd0.docs | 1 + libmrtd0.install | 1 + libmrtd0.symbols | 31 +++++++++++++++++++++ mrtdreader.1 | 61 ++++++++++++++++++++++++++++++++++++++++ mrtdreader.docs | 1 + mrtdreader.install | 1 + mrtdreader.manpages | 1 + rules | 20 ++++++++++++++ source/format | 1 + upstream/signing-key.asc | 52 ++++++++++++++++++++++++++++++++++ watch | 3 ++ 17 files changed, 321 insertions(+) create mode 100644 changelog create mode 100644 compat create mode 100644 control create mode 100644 copyright create mode 100644 gbp.conf create mode 100644 libmrtd-dev.install create mode 100644 libmrtd0.docs create mode 100644 libmrtd0.install create mode 100644 libmrtd0.symbols create mode 100644 mrtdreader.1 create mode 100644 mrtdreader.docs create mode 100644 mrtdreader.install create mode 100644 mrtdreader.manpages create mode 100755 rules create mode 100644 source/format create mode 100644 upstream/signing-key.asc create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..78d24f9 --- /dev/null +++ b/changelog @@ -0,0 +1,40 @@ +mrtdreader (0.1.6-1) unstable; urgency=medium + + * New upstream release + - Fixes some issues with UK and US passports at least + * debian/control: + - Changed Vcs-Git to https url + - Removed -dbg package since -dbgsym is automatically built + * debian/rules: + - Remove override of dh_strip target + + -- Ruben Undheim Tue, 09 Feb 2016 20:12:49 +0100 + +mrtdreader (0.1.5-3) unstable; urgency=low + + * debian/control: Added "Multi-Arch: same" to allow libmrtd to be + installed for multiple architectures + + -- Ruben Undheim Sat, 23 May 2015 22:14:25 +0200 + +mrtdreader (0.1.5-2) unstable; urgency=low + + * Uploaded to unstable + * debian/mrtdreader.1: Fixed typo in man page + + -- Ruben Undheim Sat, 23 May 2015 11:08:15 +0200 + +mrtdreader (0.1.5-1) experimental; urgency=medium + + * New upstream release + - patches/01_fix_regression.patch fixed upstream: removed + * debian/control: Added "Suggests: graphicsmagick" + * debian/copyright: Added year 2015 + + -- Ruben Undheim Sat, 10 Jan 2015 13:12:21 +0100 + +mrtdreader (0.1.4-1) unstable; urgency=low + + * Initial release (Closes: #771708) + + -- Ruben Undheim Sat, 13 Dec 2014 12:38:34 +0100 diff --git a/compat b/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +9 diff --git a/control b/control new file mode 100644 index 0000000..7a61adc --- /dev/null +++ b/control @@ -0,0 +1,72 @@ +Source: mrtdreader +Maintainer: Ruben Undheim +Section: utils +Priority: optional +Build-Depends: debhelper (>= 9), + cmake, + pkg-config, + libnfc-dev, + libgcrypt20-dev +Standards-Version: 3.9.6 +Vcs-Browser: https://github.com/rubund/mrtdreader/tree/debian +Vcs-Git: https://github.com/rubund/mrtdreader.git -b debian +Homepage: https://github.com/rubund/mrtdreader + +Package: libmrtd0 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, + ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same +Description: MRTD - Machine-readable travel document library + Machine-readable travel documents such as passports nowadays usually contain + an RFID chip for storing various data. This library provides useful functions + for reading out the data from these documents. This version of the library + supports the Basic Access Control (BAC). It uses several cryptographic + functions from either libgcrypt or libtomcrypt (depending on compile-time + options) in order to do the necessary decryption of the content of the MRTDs. + The key for the BAC-scheme is derived from the Machine-readable zone (MRZ) + which is printed on the MRTD. + . + The library depends on libnfc for the hardware interaction and only devices + supported by libnfc will therefore work. + +Package: libmrtd-dev +Architecture: any +Section: libdevel +Depends: libmrtd0 (= ${binary:Version}), + libgcrypt20-dev, + libnfc-dev, + ${misc:Depends} +Multi-Arch: same +Description: Development files for libmrtd0 + Machine-readable travel documents such as passports nowadays usually contain + an RFID chip for storing various data. This library provides useful functions + for reading out the data from these documents. This version of the library + supports the Basic Access Control (BAC). It uses several cryptographic + functions from either libgcrypt or libtomcrypt (depending on compile-time + options) in order to do the necessary decryption of the content of the MRTDs. + The key for the BAC-scheme is derived from the Machine-readable zone (MRZ) + which is printed on the MRTD. + . + The library depends on libnfc for the hardware interaction and only devices + supported by libnfc will therefore work. + . + This package contains header files for building programs linked with + libmrtd0. + +Package: mrtdreader +Architecture: any +Depends: libmrtd0 (= ${binary:Version}), + ${shlibs:Depends}, + ${misc:Depends} +Suggests: graphicsmagick +Description: Reader for machine-readable travel documents (MRTDs / passports) + This program takes as input the content of the machine-readable zone of + machine-readable travel documents and then reads out some data and dumps the + facial image to a file. + . + It is the example application delivered together with libmrtd. + . + Only reader devices which are fully supported by libnfc will work. diff --git a/copyright b/copyright new file mode 100644 index 0000000..e27cb05 --- /dev/null +++ b/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mrtdreader +Source: https://github.com/rubund/mrtdreader/ + +Files: * +Copyright: 2014 Ruben Undheim +License: GPL-3+ + +Files: debian/* +Copyright: 2014-2015 Ruben Undheim +License: GPL-3+ + +License: GPL-3+ + 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, either version 3 of the License, or + (at your option) any later version. + . + 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, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/gbp.conf b/gbp.conf new file mode 100644 index 0000000..4fc7c67 --- /dev/null +++ b/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +pristine-tar = True +debian-branch=debian +upstream-tag=%(version)s diff --git a/libmrtd-dev.install b/libmrtd-dev.install new file mode 100644 index 0000000..7df81cd --- /dev/null +++ b/libmrtd-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* diff --git a/libmrtd0.docs b/libmrtd0.docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/libmrtd0.docs @@ -0,0 +1 @@ +README.md diff --git a/libmrtd0.install b/libmrtd0.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/libmrtd0.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/libmrtd0.symbols b/libmrtd0.symbols new file mode 100644 index 0000000..ae3af74 --- /dev/null +++ b/libmrtd0.symbols @@ -0,0 +1,31 @@ +libmrtd.so.0 libmrtd0 #MINVER# + mrtd_bac_challenge_ok@Base 0.1.0 + mrtd_bac_check_digit@Base 0.1.0 + mrtd_bac_cmd_data@Base 0.1.0 + mrtd_bac_decrypt_response@Base 0.1.0 + mrtd_bac_eifd_mifd@Base 0.1.0 + mrtd_bac_get_kmrz@Base 0.1.0 + mrtd_bac_get_kmrz_from_mrz@Base 0.1.0 + mrtd_bac_get_ssc@Base 0.1.0 + mrtd_bac_kenc_kmac@Base 0.1.0 + mrtd_bac_keyhandshake@Base 0.1.0 + mrtd_bac_kmrz_to_kenc_kmac@Base 0.1.0 + mrtd_bac_protected_apdu@Base 0.1.0 + mrtd_bac_randomize_rndifd_kifd@Base 0.1.1 + mrtd_bac_set_rndifd_kifd@Base 0.1.1 + mrtd_crypto_crypt_3des@Base 0.1.0 + mrtd_crypto_crypt_des@Base 0.1.0 + mrtd_crypto_decrypt_3des@Base 0.1.0 + mrtd_crypto_decrypt_des@Base 0.1.0 + mrtd_crypto_encrypt_3des@Base 0.1.0 + mrtd_crypto_encrypt_des@Base 0.1.0 + mrtd_crypto_fix_parity@Base 0.1.0 + mrtd_crypto_mac@Base 0.1.0 + mrtd_crypto_mac_padding@Base 0.1.0 + mrtd_crypto_padding@Base 0.1.0 + mrtd_crypto_padding_remove@Base 0.1.0 + mrtd_crypto_sha1@Base 0.1.0 + mrtd_fileread_decode_ef_com@Base 0.1.1 + mrtd_fileread_get_datagroup_name@Base 0.1.1 + mrtd_fileread_read@Base 0.1.0 + mrtd_fileread_write_image_to_file@Base 0.1.0 diff --git a/mrtdreader.1 b/mrtdreader.1 new file mode 100644 index 0000000..f433d7f --- /dev/null +++ b/mrtdreader.1 @@ -0,0 +1,61 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH MRTDREADER 1 "December 01, 2014" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +mrtdreader \- Reader for machine-readable travel documents (MRTDs / passports) +.SH SYNOPSIS +.B mrtdreader +.RI [ options ] +.RI < MRZ > +.SH DESCRIPTION +This manual page documents briefly the +.B mrtdreader +command. +.PP +\fBmrtdreader\fP is a program which takes as input the content of the Machine-readable zone (MRZ) of Machine-readable travel documents (MRTD) and then reads out some data from the MRTD via RFID/NFC and dumps the facial image to a file. + +MRTDs such as passports nowadays usually contain an RFID chip for storing various data. The Basic Access Control (BAC) scheme is supported via the library libmrtd and mrtdreader is the example program delivered together with libmrtd. It uses several cryptographic functions in order to do the necessary decryption of the content of the MRTDs. The key for the BAC-scheme is derived from the Machine-readable zone (MRZ) which is printed on the MRTD. +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.SH OPTIONS +If the MRZ is specified on the command line, the following options are ignored. If the MRZ is not specified, all the three following options must be specified and the MRZ will be calculated from them. +.TP +.B \-p +With this parameter, the passport number can be specified. It consists of maximum 9 ASCII letters or digits. Note that if this one is specified, also +.B -b +and +.B -e +must be specified. +.TP +.B \-b +Specify the date of birth in the format YYMMDD. Note that if this one is specified, also +.B -p +and +.B -e +must be specified. +.TP +.B \-e +Specify the expiration date in the format YYMMDD. Note that if this one is specified, also +.B -p +and +.B -b +must be specified. +.br +.SH AUTHOR +This manual page was written by Ruben Undheim , +for the Debian project (and may be used by others). diff --git a/mrtdreader.docs b/mrtdreader.docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/mrtdreader.docs @@ -0,0 +1 @@ +README.md diff --git a/mrtdreader.install b/mrtdreader.install new file mode 100644 index 0000000..1df36c6 --- /dev/null +++ b/mrtdreader.install @@ -0,0 +1 @@ +usr/bin/* diff --git a/mrtdreader.manpages b/mrtdreader.manpages new file mode 100644 index 0000000..5790158 --- /dev/null +++ b/mrtdreader.manpages @@ -0,0 +1 @@ +debian/mrtdreader.1 diff --git a/rules b/rules new file mode 100755 index 0000000..a3681ec --- /dev/null +++ b/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +PKD = $(abspath $(dir $(MAKEFILE_LIST))) +PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source)) +VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') + + +%: + dh $@ + +get-orig-source: $(info I: $(PKG)_$(VER)) + @echo "# Downloading..." + uscan --noconf --verbose --rename --destdir=$(CURDIR) --force-download --download-version $(VER) $(PKD) + diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/upstream/signing-key.asc b/upstream/signing-key.asc new file mode 100644 index 0000000..fd358dc --- /dev/null +++ b/upstream/signing-key.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQINBFSJ4eUBEACjO2VgAVGrO55W99X7KYzCVGspqKHK/Q1I/X68BppAM7GHSOp5 +EgdScLzD06KRzMPoEqEir8OoROEVB2JjhSjaeQOO/27/QLAkpl3hpr1L529s+YM9 +L2ovg7fPRPBAe3qdU7PAMmhm12ZPRAVpWTQL6YyMFP3IHn3HwoPhmGDQf2NL1iIT +SJAYkWkvhMvl6oH2W5E87zzydAdF38tAihXfKRPdNOcZ9AutBcUVH63sud7ABcwF +ieJ6wHMoSsG+8xMkANAzc7Y6ZfrjF7TDuw0bpIMqrG9Pry6mf8Q4bKa34KLItcIb +AlTq7SgzopBnelJirELdiXmcxMZPtcn8yDcgxrv57jZdBq3arkX4GgOJzwd0ByWB +3Z8AYdfGFwDO9WoOsXi9S+PmkS/uiuJbpC5GgDx1Zj6y247p8sh5N/rUkcHgJb7U +UBUyWjikDovLMFgPE5KHZQhwrhoQOp4C/YSqa+gFqheB+3RBTELOMBwKe8tAWtQc +/yT1vHzIT+unFE4X+wsuzOyd8rfnK6vLf/z0nScmuQAfqyJRM/OdZq2qIweUSy26 +Au42V44KcL3ZCsonzSfhzQFK7+bmJMg1iTF1eUiTAxGyc07q0C06G9A0RiAEQ727 +l/yCilrgS3E7JMPMegWxE10sJ2nwkw0Fzjf3M8yOi5D1HGrAuLzx6M8nuQARAQAB +tCdSdWJlbiBVbmRoZWltIDxydWJlbi51bmRoZWltQGdtYWlsLmNvbT6JAjcEEwEI +ACEFAlSJ4eUCGwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQ5pgix+ApWM0D +AQ/+NHk19XdrQpLUWugnrrH/j5eUqn05hj+b1rEUizfDfFwjcGRnmQKkPGfUk21f +ua4EHJm32kRJFE61a2pT5ifHSWXMEwRkwL4R2FwmKUgbMy1mKY3CI14qEHjFZrKh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az89CuWhWUHVEp3l0Fe4nqwOYCczE +9kYs50Uppugwj7vYFnsOpleF11BMyF2Xp+8wZwGy+O8LVBRd0jPK/WcuPt/E4aRO +L8oi/SQFjnaLtkqlIZtXNA8h8/mpaAD1wRoj3HH/rEqAZzXKfGaAnAHErGaun1tS +P7GaDppbu8MTTOrphA1FcW3la9ERy4KwyBTXLB2XABEBAAGJAh8EGAEIAAkFAlSJ +5oICGwwACgkQ5pgix+ApWM1nAA//YWVkY1xQLfiSLFksijx+gAoMAdC+cobTaV0L +TR+vElPJngQ7vBEVD2RBLocJPA7umMNYnffHC7hZFOgipYkUcWyxs7mLDkIO3dYr +aEwF79whb3sSUJe32bQp8TWNvNr3LqiXN1HhD6PPtewCM3gSLHzY4OYFgHvAItbg +grDTIcI6fXV2gcYpn+fRLY80Xh/lX9tXGPrS8wJ084Z5wa6t7YKrmmP6s8dKE3Su +EtrfkZBtQEvDcMgD/W1+QjBBPuo20lqQYlxWWklxtVS+NsBCXravH/07/5VxF0vv +yabN1dmh+lcZ2qdwSfknAwdgRsILwHjHKNPf6EiDEDAN6izlcNTRIkquBUxR287H +kR3jnIpSULxur6c4gkL175SJMYhbJ8Tr+GUtrb/tcQrSYNfZ69ctFs6FgrWcEu2V +9xWQoeW6yfjciTwNRFdLXd+PcrEc4/69KlbJIq7TqY4i4ErDJ/BWfUUQmIY/Qi5g +KspqqrK9rE9b2BdGYN0EbH/63tG8DH9AIjxwTPSJ3mAjbiPudFnpsvQgeMmKtYb3 +PI4mXWyGlCr4WIkriivHHUgPaLbH2VR+wNtoSYP3950ltL9oVdpgkH4/yof4VU8X +L358xMThwCw3UvLasya/NjknSWxT8eXND6qeCyjkxlco6rGEez3kzskcGNS9U673 +9hLT4to= +=1xT6 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/watch b/watch new file mode 100644 index 0000000..9e47b3b --- /dev/null +++ b/watch @@ -0,0 +1,3 @@ +version=3 +opts="pgpsigurlmangle=s/\/mrtdreader\/archive\/(\d\S+)\.tar\.(bz2|gz|xz)$/\/mrtdreader\/releases\/download\/\1\/\1\.tar\.\2\.asc/" \ +https://github.com/rubund/mrtdreader/releases /rubund/mrtdreader/archive/(\d\S+)\.tar\.(?:bz2|gz|xz) -- cgit v1.2.3