diff options
author | Aric Belsito <lluixhi@gmail.com> | 2017-08-18 09:25:36 -0700 |
---|---|---|
committer | Aric Belsito <lluixhi@gmail.com> | 2017-08-18 09:26:13 -0700 |
commit | 94cd466258defa9d44de2015b37e9f48456bead7 (patch) | |
tree | 05cbf7a98a3060945a81da72beaec7eae7b839f7 /app-crypt | |
parent | Merge pull request #207 from GregBowyer/master (diff) | |
download | libressl-94cd466258defa9d44de2015b37e9f48456bead7.tar.gz libressl-94cd466258defa9d44de2015b37e9f48456bead7.tar.bz2 libressl-94cd466258defa9d44de2015b37e9f48456bead7.zip |
app-crypt/rhash: version bump to 1.3.5
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/rhash/Manifest | 1 | ||||
-rw-r--r-- | app-crypt/rhash/metadata.xml | 61 | ||||
-rw-r--r-- | app-crypt/rhash/rhash-1.3.4.ebuild | 4 | ||||
-rw-r--r-- | app-crypt/rhash/rhash-1.3.5.ebuild | 93 |
4 files changed, 133 insertions, 26 deletions
diff --git a/app-crypt/rhash/Manifest b/app-crypt/rhash/Manifest index 13d53c9..9146021 100644 --- a/app-crypt/rhash/Manifest +++ b/app-crypt/rhash/Manifest @@ -1 +1,2 @@ DIST rhash-1.3.4-src.tar.gz 249357 SHA256 406662c4703bd4cb1caae26f32700951a5e12adf39f141d3f40e0b461b1e9e49 SHA512 a78be309011798d5e55023eb93f898c10254a42270288fa5ec68ad446b5f3d001e8c6f893683e5171e3858c86d45ce2ce16eefde1173209e1925420c27a7ff7a WHIRLPOOL 5883dcbf0c2bf51036434d1906b85b615eae65ef2729a68d7ac637e2bea3c494cd3ee7fa9a60d3c4f3241bc4fd5c62c8f7e058c0e53649d50dade241e06dda2e +DIST rhash-1.3.5-src.tar.gz 316867 SHA256 98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e SHA512 e8450aab0c16bfb975bf4aeee218740fb4d86d5514e426b70c3edb84e4d63865cd4051939aa95c24a87a78baaedc49e40bb509b2610e89ca3745930808b3ef6c WHIRLPOOL 80540e96b554fad8c18da431677a0bdc361f7c406b746050bd25ad0b2eeb9d318f1ef0d87ef002d8b8c6fa7db6d789391115358a1676358afd478564d193b229 diff --git a/app-crypt/rhash/metadata.xml b/app-crypt/rhash/metadata.xml index 44a7a98..d508e60 100644 --- a/app-crypt/rhash/metadata.xml +++ b/app-crypt/rhash/metadata.xml @@ -1,27 +1,40 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>sautier.louis@gmail.com</email> - <name>Louis Sautier</name> - </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <maintainer type="person"> - <email>chewi@gentoo.org</email> - <name>James Le Cuirot</name> - </maintainer> - <upstream> - <remote-id type="sourceforge">rhash</remote-id> - <remote-id type="github">rhash/RHash</remote-id> - <bugs-to>https://github.com/rhash/RHash/issues</bugs-to> - </upstream> - <use> - <flag name='openssl'>Add support for hashes from dev-libs/openssl</flag> - </use> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> <longdescription lang="en"> - RHash is a console utility for calculation and verification of magnet links and a wide range of hash sums like CRC32, MD4, MD5, SHA1, SHA256, SHA512, SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. + The app-crypt category contains cryptographic (encryption, decryption, + steganography and signing) software. </longdescription> -</pkgmetadata> + <longdescription lang="de"> + Die Kategorie app-crypt enhält kryptographische (Ver- und Entschlüsselung, + Steganographie, Signierung) Software. + </longdescription> + <longdescription lang="es"> + La categoría app-crypt contiene programas para criptografía + (cifrado, des-cifrado, estenografía y firmas). + </longdescription> + <longdescription lang="ja"> + app-cryptカテゴリには暗号手法ソフトウェア + (暗証化と復号化と電子透かしと電子署名)が含まれます。 + </longdescription> + <longdescription lang="nl"> + De app-crypt categorie bevat cryptografische applicaties (encryptie, + decryptie, steganografie,...). + </longdescription> + <longdescription lang="vi"> + Nhóm app-crypto chứa các ứng dụng về mật mã (mã hóa, + giải mã, kỷ tên và steganography). + </longdescription> + <longdescription lang="it"> + La categoria app-crypt contiene programmi di crittografia (cifratura, decifratura, steganografia e firma). + </longdescription> + <longdescription lang="pt"> + A categoria app-crypt contém programas criptográficos (cifradores, + descifradores, esteganografia e assinaturas). + </longdescription> + <longdescription lang="pl"> + Kategoria app-crypt zawiera programy kryptograficzne związane z + szyfrowaniem, deszyfrowaniem, stenografią oraz podpisywaniem danych. + </longdescription> +</catmetadata> + diff --git a/app-crypt/rhash/rhash-1.3.4.ebuild b/app-crypt/rhash/rhash-1.3.4.ebuild index 6398323..391bcf4 100644 --- a/app-crypt/rhash/rhash-1.3.4.ebuild +++ b/app-crypt/rhash/rhash-1.3.4.ebuild @@ -11,13 +11,13 @@ SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc64 ~x86 ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" IUSE="debug nls libressl openssl static-libs" RDEPEND=" openssl? ( !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) - libressl? ( dev-libs/libressl:0= ) + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) )" DEPEND="${RDEPEND} diff --git a/app-crypt/rhash/rhash-1.3.5.ebuild b/app-crypt/rhash/rhash-1.3.5.ebuild new file mode 100644 index 0000000..42f1dda --- /dev/null +++ b/app-crypt/rhash/rhash-1.3.5.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs multilib-minimal + +DESCRIPTION="Console utility and library for computing and verifying file hash sums" +HOMEPAGE="http://rhash.anz.ru/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="debug nls libressl openssl static-libs" + +RDEPEND=" +openssl? ( + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) +)" + +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +S="${WORKDIR}/RHash-${PV}" + +src_prepare() { + default + + # Install /etc stuff inside the Prefix + sed -i -e 's:\$(DESTDIR)/etc:\$(DESTDIR)/$(SYSCONFDIR):g' Makefile || die + + if [[ ${CHOST} == *-darwin* ]] ; then + local ver_script='-Wl,--version-script,exports.sym,-soname,$(SONAME)' + local install_name='-install_name $(LIBDIR)/$(SONAME)' + sed -i -e '/^\(SONAME\|SHAREDLIB\)/s/\.so\.\([0-9]\+\)/.\1.dylib/' \ + -e '/^SOLINK/s/\.so/.dylib/' \ + -e "s:${ver_script}:${install_name}:" \ + librhash/Makefile \ + Makefile || die + fi + + if [[ ${CHOST} == *-solaris* ]] ; then + # https://sourceware.org/bugzilla/show_bug.cgi?id=12548 + # skip the export.sym for now + sed -i -e 's/,--version-script,exports.sym//' librhash/Makefile || die + fi + + multilib_copy_sources +} + +multilib_src_compile() { + local ADDCFLAGS=( + $(use debug || echo -DNDEBUG) + $(use nls && echo -DUSE_GETTEXT) + $(use openssl && echo -DOPENSSL_RUNTIME -rdynamic) + ) + + local ADDLDFLAGS=( + $(use openssl && echo -ldl) + ) + + [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] \ + && ADDLDFLAGS+=( $(use nls && echo -lintl) ) + + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" \ + ADDCFLAGS="${ADDCFLAGS[*]}" ADDLDFLAGS="${ADDLDFLAGS[*]}" \ + PREFIX="${EPREFIX}"/usr LIBDIR='$(PREFIX)'/$(get_libdir) \ + build-shared $(use static-libs && echo lib-static) +} + +myemake() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr \ + LIBDIR='$(PREFIX)'/$(get_libdir) SYSCONFDIR="${EPREFIX}"/etc "${@}" +} + +multilib_src_install() { + myemake -C librhash install-lib-shared install-so-link + multilib_is_native_abi && myemake install-shared + use static-libs && myemake install-lib-static +} + +multilib_src_install_all() { + myemake -C librhash install-headers + use nls && myemake install-gmo + einstalldocs +} + +multilib_src_test() { + cd tests || die + LD_LIBRARY_PATH=$(pwd)/../librhash ./test_rhash.sh --full ../rhash_shared || die "tests failed" +} |