From 8d2f62822f7fc44e506c38db4e70a349df3a8c5d Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 24 Jan 2006 01:57:25 +0000 Subject: [PATCH] improved openct package build --- doc/CHANGELOG | 4 ++++ packages/hackbard/openct/ascii_atr.patch | 11 +++++++++++ packages/hackbard/openct/openct | 6 ++++++ packages/hackbard/openct/openct.init | 3 +++ 4 files changed, 24 insertions(+) create mode 100644 packages/hackbard/openct/ascii_atr.patch create mode 100644 packages/hackbard/openct/openct.init diff --git a/doc/CHANGELOG b/doc/CHANGELOG index e53b376..653a660 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,3 +1,7 @@ +*) 2006-01-24 + +- modified openct package + *) 2006-01-15 - added librfid and libmrtd package diff --git a/packages/hackbard/openct/ascii_atr.patch b/packages/hackbard/openct/ascii_atr.patch new file mode 100644 index 0000000..3705013 --- /dev/null +++ b/packages/hackbard/openct/ascii_atr.patch @@ -0,0 +1,11 @@ +--- ./src/tools/openct-tool.c.orig 2006-01-24 02:32:25.000000000 +0100 ++++ ./src/tools/openct-tool.c 2006-01-24 02:36:36.000000000 +0100 +@@ -336,6 +336,8 @@ + } else { + for (m = 0; m < len; m++) + printf(" %02x", atr[m]); ++ printf("\n# AnswerToReset (hex & ascii)\n"); ++ dump(atr, len); + } + printf("\n"); + } diff --git a/packages/hackbard/openct/openct b/packages/hackbard/openct/openct index fc0e743..df8ea3a 100644 --- a/packages/hackbard/openct/openct +++ b/packages/hackbard/openct/openct @@ -6,3 +6,9 @@ # [S] 3-2 # [D] openct-0.6.6.tar.gz http://www.opensc.org/files/openct/ +post_install() { + rm -rf $docdir && mkdir -p $docdir/html + cp -r doc/api doc/*.html $docdir/html + mkdir -p $root/var/run/openct + cp etc/openct.conf $root/etc + } diff --git a/packages/hackbard/openct/openct.init b/packages/hackbard/openct/openct.init new file mode 100644 index 0000000..9e66c59 --- /dev/null +++ b/packages/hackbard/openct/openct.init @@ -0,0 +1,3 @@ +s_value="90" +bin="openct-control" +params="init" -- 2.39.2