diff options
Diffstat (limited to 'sys-firmware')
-rw-r--r-- | sys-firmware/gnuk/ChangeLog | 5 | ||||
-rw-r--r-- | sys-firmware/gnuk/Manifest | 3 | ||||
-rw-r--r-- | sys-firmware/gnuk/gnuk-1.1.7.ebuild | 96 | ||||
-rw-r--r-- | sys-firmware/gnuk/metadata.xml | 11 |
4 files changed, 115 insertions, 0 deletions
diff --git a/sys-firmware/gnuk/ChangeLog b/sys-firmware/gnuk/ChangeLog new file mode 100644 index 00000000..a9746ee2 --- /dev/null +++ b/sys-firmware/gnuk/ChangeLog @@ -0,0 +1,5 @@ +*gnuk-1.1.7 (16 Aug 2015) + + 16 Aug 2015; Bertrand Jacquin <bertrand@jacquin.bzh> +gnuk-1.1.7.ebuild, + +metadata.xml: + sys-firmware/gnuk: An Implementation of USB Cryptographic Token for GnuPG diff --git a/sys-firmware/gnuk/Manifest b/sys-firmware/gnuk/Manifest new file mode 100644 index 00000000..226840de --- /dev/null +++ b/sys-firmware/gnuk/Manifest @@ -0,0 +1,3 @@ +EBUILD gnuk-1.1.7.ebuild 2649 SHA256 79cf81a128276c954ff7683067035b7a50e15d09eabab3d31cd64b9c9811cc6b WHIRLPOOL a483d960497828ad6d3ea7b6abe0ddafe7355cf9951b17668717f80ad90a15a2c9562301e19141ba77681faaeaa84030a30a6ad9bc022052a7bdd6fe0aa25060 +MISC ChangeLog 195 SHA256 18aa8bf34075d8be5952d958af1f8ba67d394041d9a15dcaa146292f2b3c9d4d WHIRLPOOL 6d2f05fd5c1f9f7851f80a241cdb1f99203f464577f0d9b40cd62ba56788bb71cdd2c48d563ba272be8027e8e247ec3b1a78ad322f65bdacee0134cb167a0853 +MISC metadata.xml 335 SHA256 9e5ed8f755bc49eb8a0e96b55585a0b5b8f9ee74e1b2d9b71db438d1878dd306 WHIRLPOOL 4b1e0bb69b7ab34954eeb5efa451fcbcb39236eee31d33f2738b36b773d514fffcb3593a00b9993c1e4fdb90b0564bc87391ab3bf3c10c179437873badec4a39 diff --git a/sys-firmware/gnuk/gnuk-1.1.7.ebuild b/sys-firmware/gnuk/gnuk-1.1.7.ebuild new file mode 100644 index 00000000..faf15421 --- /dev/null +++ b/sys-firmware/gnuk/gnuk-1.1.7.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4} ) +inherit git-r3 eutils python-r1 + +DESCRIPTION="An Implementation of USB Cryptographic Token for GnuPG" +HOMEPAGE="http://www.fsij.org/category/gnuk.html" +EGIT_REPO_URI="git://anonscm.debian.org/${PN}/${PN}/${PN}.git" +EGIT_COMMIT="release/${PV}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug doc tools" + +DEPEND="doc? ( dev-python/sphinx )" +RDEPEND="tools? ( + ${PYTHON_DEPS} + dev-python/pyusb[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + )" + +pkg_pretend() { + if type -p arm-none-eabi-gcc > /dev/null 2>&1 ; then + return 0 + fi + + eerror "Before you could build the firmware, you need to install arm-none-eabi toolchain" + eerror "Run the following commands:" + eerror " emerge -vat crossdev" + eerror " crossdev --stable -t arm-none-eabi" + die "arm-none-eabi toolchain is needed" +} + +src_prepare () { + mv tool/get_raw_public_key.py "tool/${PN}-get_raw_public_key.py" + mv tool/gnuk_put_binary_libusb.py "tool/${PN}-put_binary_libusb.py" + mv tool/gnuk_remove_keys_libusb.py "tool/${PN}-remove_keys_libusb.py" + mv tool/gnuk_upgrade.py "tool/${PN}-upgrade.py" + mv tool/stlinkv2.py "tool/${PN}-stlinkv2.py" + mv tool/upgrade_by_passwd.py "tool/${PN}-upgrade_by_passwd.py" + mv tool/usb_strings.py "tool/${PN}-usb_strings.py" + +} + +src_configure() { + cd "${S}/src" + ./configure \ + --verbose \ + --target=FST_01 \ + --vidpid=234b:0000 \ + --enable-certdo \ + $(use_enable debug) \ + || die "configure failed" +} + +src_compile() { + cd "${S}/src" + emake CROSS="arm-none-eabi-" + + if use doc ; then + cd "${S}/doc" + emake html + emake man + fi +} + +src_install() { + insinto "/usr/share/${PN}/firmware" + doins src/build/gnuk.bin + + if use doc ; then + dohtml -r doc/_build/html/* + doman doc/_build/man/* + fi + + if use tools ; then + python_foreach_impl python_domodule tool/gnuk_token.py + python_foreach_impl python_domodule tool/gpg_agent.py + python_foreach_impl python_domodule tool/rsa.py + + python_foreach_impl python_doscript "tool/${PN}-get_raw_public_key.py" + python_foreach_impl python_doscript "tool/${PN}-put_binary_libusb.py" + python_foreach_impl python_doscript "tool/${PN}-remove_keys_libusb.py" + python_foreach_impl python_doscript "tool/${PN}-stlinkv2.py" + python_foreach_impl python_doscript "tool/${PN}-upgrade.py" + python_foreach_impl python_doscript "tool/${PN}-upgrade_by_passwd.py" + python_foreach_impl python_doscript "tool/${PN}-usb_strings.py" + fi + + dodoc AUTHORS ChangeLog NEWS README THANKS + dodoc -r doc/note +} diff --git a/sys-firmware/gnuk/metadata.xml b/sys-firmware/gnuk/metadata.xml new file mode 100644 index 00000000..a0784d85 --- /dev/null +++ b/sys-firmware/gnuk/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>bertrand@jacquin.bzh</email> + <name>Bertrand Jacquin</name> + </maintainer> + <use> + <flag name="tools">Install aditional tools</flag> + </use> +</pkgmetadata> |