From 4c74c8a8d167b1e3d810d904f9422e5702868deb Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Tue, 3 Jan 2017 23:46:01 +0000 Subject: sys-firmware/gnuk: Version bump Package-Manager: portage-2.3.0 --- sys-firmware/gnuk/Manifest | 2 +- sys-firmware/gnuk/gnuk-1.2.1.ebuild | 113 ----------------------------------- sys-firmware/gnuk/gnuk-1.2.2.ebuild | 114 ++++++++++++++++++++++++++++++++++++ 3 files changed, 115 insertions(+), 114 deletions(-) delete mode 100644 sys-firmware/gnuk/gnuk-1.2.1.ebuild create mode 100644 sys-firmware/gnuk/gnuk-1.2.2.ebuild diff --git a/sys-firmware/gnuk/Manifest b/sys-firmware/gnuk/Manifest index 7cd9f36c..1a5068a6 100644 --- a/sys-firmware/gnuk/Manifest +++ b/sys-firmware/gnuk/Manifest @@ -1,4 +1,4 @@ AUX 10-stlink.rules 179 SHA256 8a89aff84d192d270234c9b58229025cdcfd3f5384f864a298d3cfb19b081ea4 WHIRLPOOL 2fba2148444183945f93cd6a0baaccf7e09c887eef245a52c5c17e92e653759e0e66f3a5bd7abae2099d9f2e1f944dd30631f2c1f21356a9424628f92607ab52 AUX 60-gnuk.rules 191 SHA256 faf65731989732c533426ffdce2be2a86f722a0b72ebb450fd2b45b93687986c WHIRLPOOL 0afd5dd7b7b0d6c488b89d65c92897c77490a3f9760b54b5c48716fb78a722b75723f52de3be9c2e3a50ec3df6e525bd92a56de3d6d455cc1b1eb3796a2b82eb -EBUILD gnuk-1.2.1.ebuild 3010 SHA256 8c6e6e353a2389dafbf1db411a75d1b12392f2edde2b1df14f009668a60b14ce WHIRLPOOL a84fa86b79af4ee2402a2d7fedeb3209406ac207e782948d0d405f2339592c9f3708e3a2b51be18cdbb7ca9e6dc95976740fc96fae9009e039a3d6989f0c152f +EBUILD gnuk-1.2.2.ebuild 3037 SHA256 df1a0d8e043b64b7914937b1f9f22e63f7e19862151ade46f38743c10e35043a WHIRLPOOL ef6c42a227d512b6ef2db9c59d4fb735115bb28cf1316bb2a1032cb4227c18b81fe12b2748ae5b2afe7e913e10f63757561f677112f700e45985275d54e0d0e0 MISC metadata.xml 349 SHA256 bbf4a54e82c9562ccf0ee9d1352575592a4705475b4c58ee7bcbccc03eb42d77 WHIRLPOOL 86b7f96ecd9bef4c7691f38f3048de04771606b92126e749aef0251e6bca2889a5a80931e212882e686ec2ed5485cdd726531c254710e035900181b1de6ca3fc diff --git a/sys-firmware/gnuk/gnuk-1.2.1.ebuild b/sys-firmware/gnuk/gnuk-1.2.1.ebuild deleted file mode 100644 index 9d6f77d7..00000000 --- a/sys-firmware/gnuk/gnuk-1.2.1.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 -PYTHON_COMPAT=( python2_7 ) -inherit git-r3 eutils python-r1 udev - -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="virtual/udev - 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 () { - default - - 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 - - cd "${S}/regnual" - emake TRGT="arm-none-eabi-" -} - -src_install() { - insinto "/usr/share/${PN}/firmware" - doins "src/build/${PN}.bin" - doins "regnual/regnual.bin" - - udev_dorules "${FILESDIR}/60-${PN}.rules" - - if use doc ; then - HTML_DOCS=( doc/_build/html/* ) - doman doc/_build/man/* - fi - - install_example() { - python_export PYTHON_SCRIPTDIR - insinto "${PYTHON_SCRIPTDIR}" - doins "${1}" - } - - 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" - python_foreach_impl install_example tool/rsa_example.key - - udev_dorules "${FILESDIR}/10-stlink.rules" - fi - - dodoc AUTHORS ChangeLog NEWS README THANKS - dodoc -r doc/note -} diff --git a/sys-firmware/gnuk/gnuk-1.2.2.ebuild b/sys-firmware/gnuk/gnuk-1.2.2.ebuild new file mode 100644 index 00000000..b5c621a5 --- /dev/null +++ b/sys-firmware/gnuk/gnuk-1.2.2.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit git-r3 eutils python-r1 udev + +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="virtual/udev + 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 () { + default + + 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 \ + --enable-factory-reset \ + $(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 + + cd "${S}/regnual" + emake TRGT="arm-none-eabi-" +} + +src_install() { + insinto "/usr/share/${PN}/firmware" + doins "src/build/${PN}.bin" + doins "regnual/regnual.bin" + + udev_dorules "${FILESDIR}/60-${PN}.rules" + + if use doc ; then + HTML_DOCS=( doc/_build/html/* ) + doman doc/_build/man/* + fi + + install_example() { + python_export PYTHON_SCRIPTDIR + insinto "${PYTHON_SCRIPTDIR}" + doins "${1}" + } + + 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" + python_foreach_impl install_example tool/rsa_example.key + + udev_dorules "${FILESDIR}/10-stlink.rules" + fi + + dodoc AUTHORS ChangeLog NEWS README THANKS + dodoc -r doc/note +} -- cgit v1.2.3