git.iko.soy/typeable/nixpkgs
on master help sign in
opensc-dnie lib & wrapper: remove dead packages

Last updated in 2010, broken since 2013. cc @viric

commit2357918b0040c668706d6b94582bd1eca63262e7 authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateWed 6 Jan 2016, 16:27 (11 years ago) parentfea720f
3 files changed−124
pkgs/development/libraries/libopensc-dnie/default.nix−53 pkgs/tools/security/opensc-dnie-wrapper/default.nix−67 pkgs/top-level/all-packages.nix−4
pkgs/development/libraries/libopensc-dnie/default.nixdeleted−53
@@ -1,53 +0,0 @@
1−{ stdenv, fetchurl, writeScript, patchelf, glib, opensc, openssl, openct
2−, libtool, pcsclite, zlib
3−}:
4−
5−stdenv.mkDerivation rec {
6− name = "libopensc-dnie-1.4.6-2";
7−
8− src = if stdenv.system == "i686-linux" then (fetchurl {
9− url = http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/1.4.6.Ubuntu_Jaunty_32/Ubuntu_Jaunty_opensc-dnie_1.4.6-2_i386.deb.tar;
10− sha256 = "1i6r9ahjr0rkcxjfzkg2rrib1rjsjd5raxswvvfiya98q8rlv39i";
11− })
12− else if stdenv.system == "x86_64-linux" then (fetchurl { url = http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/1.4.6.Ubuntu_Jaunty_64/Ubuntu_Jaunty_opensc-dnie_1.4.6-2_amd64.deb.tar;
13− sha256 = "1py2bxavdcj0crhk1lwqzjgya5lvyhdfdbr4g04iysj56amxb7f9";
14− })
15− else throw "Architecture not supported";
16−
17− buildInputs = [ patchelf glib ];
18−
19− builder = writeScript (name + "-builder.sh") ''
20− source $stdenv/setup
21− tar xf $src
22− ar x opensc-dnie*
23− tar xf data.tar.gz
24−
25− RPATH=${glib}/lib:${opensc}/lib:${openssl}/lib:${openct}/lib:${libtool}/lib:${pcsclite}/lib:${stdenv.cc.libc}/lib:${zlib}/lib
26−
27− for a in "usr/lib/"*.so*; do
28− if ! test -L $a; then
29− patchelf --set-rpath $RPATH $a
30− fi
31− done
32−
33− sed -i s,/usr,$out, "usr/lib/pkgconfig/"*
34−
35− mkdir -p $out
36− cp -R usr/lib $out
37− cp -R usr/share $out
38− '';
39−
40− passthru = {
41− # This will help keeping the proper opensc version when using this libopensc-dnie library
42− inherit opensc;
43− };
44−
45− meta = {
46− homepage = http://www.dnielectronico.es/descargas/;
47− description = "Opensc plugin to access the Spanish national ID smartcard";
48− license = stdenv.lib.licenses.unfree;
49− maintainers = with stdenv.lib.maintainers; [viric];
50− platforms = with stdenv.lib.platforms; linux;
51− broken = true;
52− };
53−}
pkgs/tools/security/opensc-dnie-wrapper/default.nixdeleted−67
@@ -1,67 +0,0 @@
1−{stdenv, makeWrapper, ed, libopensc_dnie}:
2−
3−let
4− opensc = libopensc_dnie.opensc;
5−in
6−stdenv.mkDerivation rec {
7− name = "${opensc.name}-dnie-wrapper";
8−
9− buildInputs = [ makeWrapper ];
10−
11− phases = [ "installPhase" ];
12−
13− installPhase = ''
14− mkdir -p $out/etc
15− cp ${opensc}/etc/opensc.conf $out/etc
16− chmod +w $out/etc/opensc.conf
17−
18− # NOTE: The libopensc-dnie.so driver requires /usr/bin/pinentry available, to sign
19−
20− ${ed}/bin/ed $out/etc/opensc.conf << EOF
21− /card_drivers
22− a
23− card_drivers = dnie;
24− card_driver dnie {
25− module = ${libopensc_dnie}/lib/libopensc-dnie.so;
26− }
27− .
28− w
29− q
30− EOF
31−
32− # Disable pkcs15 file caching, otherwise the card does not work
33− sed -i 's/use_caching = true/use_caching = false/' $out/etc/opensc.conf
34−
35− for a in ${opensc}/bin/*; do
36− makeWrapper $a $out/bin/`basename $a` \
37− --set OPENSC_CONF $out/etc/opensc.conf
38− done
39−
40− # Special wrapper for pkcs11-tool, which needs an additional parameter
41− rm $out/bin/pkcs11-tool
42− makeWrapper ${opensc}/bin/pkcs11-tool $out/bin/pkcs11-tool \
43− --set OPENSC_CONF $out/etc/opensc.conf \
44− --add-flags "--module ${opensc}/lib/opensc-pkcs11.so"
45−
46− # Add, as bonus, a wrapper for the firefox in the PATH, that loads the
47− # proper opensc configuration.
48− cat > $out/bin/firefox-dnie << EOF
49− #!${stdenv.shell}
50− export OPENSC_CONF=$out/etc/opensc.conf
51− exec firefox
52− EOF
53− chmod +x $out/bin/firefox-dnie
54− '';
55−
56− meta = {
57− description = "Access to the opensc tools and firefox using the Spanish national ID SmartCard";
58− longDescription = ''
59− Opensc needs a special configuration and special drivers to use the SmartCard
60− the Spanish government provides to the citizens as ID card.
61− Some wrapper scripts take care for the proper opensc configuration to be used, in order
62− to access the certificates in the SmartCard through the opensc tools or firefox.
63− Opensc will require a pcscd daemon running, managing the access to the card reader.
64− '';
65− maintainers = with stdenv.lib.maintainers; [viric];
66− };
67−}
pkgs/top-level/all-packages.nix−4
@@ -2559,8 +2559,6 @@ let
25592559
25602560 opensc = callPackage ../tools/security/opensc { };
25612561
2562− opensc_dnie_wrapper = callPackage ../tools/security/opensc-dnie-wrapper { };
2563−
25642562 openssh =
25652563 callPackage ../tools/networking/openssh {
25662564 hpnSupport = false;
@@ -7991,8 +7989,6 @@ let
79917989
79927990 openldap = callPackage ../development/libraries/openldap { };
79937991
7994− libopensc_dnie = callPackage ../development/libraries/libopensc-dnie { };
7995−
79967992 opencolorio = callPackage ../development/libraries/opencolorio { };
79977993
79987994 ois = callPackage ../development/libraries/ois {};