diff options
author | Alexander Vershilov <qnikst@gentoo.org> | 2013-08-26 11:19:07 +0000 |
---|---|---|
committer | Alexander Vershilov <qnikst@gentoo.org> | 2013-08-26 11:19:07 +0000 |
commit | 72347c33064b1d76af6e53ddd465672d421acf45 (patch) | |
tree | e2e7516fec0ced83623deeaa5f2c5d73ff43ec6e /dev-haskell/certificate | |
parent | Bump (diff) | |
download | historical-72347c33064b1d76af6e53ddd465672d421acf45.tar.gz historical-72347c33064b1d76af6e53ddd465672d421acf45.tar.bz2 historical-72347c33064b1d76af6e53ddd465672d421acf45.zip |
dev-haskell/certificate: new version
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Manifest-Sign-Key: 0xEAD50D64D8D3571A!
Diffstat (limited to 'dev-haskell/certificate')
-rw-r--r-- | dev-haskell/certificate/ChangeLog | 11 | ||||
-rw-r--r-- | dev-haskell/certificate/Manifest | 23 | ||||
-rw-r--r-- | dev-haskell/certificate/certificate-1.3.7.ebuild | 37 | ||||
-rw-r--r-- | dev-haskell/certificate/certificate-1.3.8.ebuild | 32 | ||||
-rw-r--r-- | dev-haskell/certificate/files/certificate-1.3.6/Tests/Unit.hs | 46 | ||||
-rw-r--r-- | dev-haskell/certificate/metadata.xml | 14 |
6 files changed, 163 insertions, 0 deletions
diff --git a/dev-haskell/certificate/ChangeLog b/dev-haskell/certificate/ChangeLog new file mode 100644 index 000000000000..860b9a157f48 --- /dev/null +++ b/dev-haskell/certificate/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-haskell/certificate +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/certificate/ChangeLog,v 1.1 2013/08/26 11:19:06 qnikst Exp $ + +*certificate-1.3.8 (26 Aug 2013) +*certificate-1.3.7 (26 Aug 2013) + + 26 Aug 2013; Alexander Vershilov <qnikst@gentoo.org> + +certificate-1.3.7.ebuild, +certificate-1.3.8.ebuild, + +files/certificate-1.3.6/Tests/Unit.hs, +metadata.xml: + dev-haskell/certificate: new version diff --git a/dev-haskell/certificate/Manifest b/dev-haskell/certificate/Manifest new file mode 100644 index 000000000000..607d153dcb00 --- /dev/null +++ b/dev-haskell/certificate/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX certificate-1.3.6/Tests/Unit.hs 1401 SHA256 8b3bd7eb99c736d437cc57d10bfbd51f4bf1f4766af2f5ff6f81db10aad95baa SHA512 a254749781292c2c4a86e9feef03168db5809472581e6f87a0d7e3af97031598f598c696242ecac4dc15b5e526936b3a3bab8a83a544fd97a182bcb4ec6b72be WHIRLPOOL 1cf2bc6fe8e1608b1ea6f24fc7c8f6d40d153c8754b000b1cd68f4553ebe9079652586566a51c113c84f2422cda4249756693cb6af582aad331600474e5e1320 +DIST certificate-1.3.7.tar.gz 15009 SHA256 cae38c57ebd2a10fe6d03e37ec24690823da4ef67b1f2cba572fa0718b9a4e1b SHA512 e3238e5b76f0aeb908618eb2067b8d42b0a4c29797431082a4516c41de6a79ec5c87fc6d7b5b03c7388c853663d6a2d2a4c316d254e9198e3e406e538ca3df39 WHIRLPOOL 07bf063073e2da09b1222949dd23e0ed86543f5a948f6770945e57cc2cff1955618699af6dde1ea807d1f02a0182f2182f7ae8bd645ad243a6d22ab3382de29a +DIST certificate-1.3.8.tar.gz 15025 SHA256 a006b7876417a8bc5cfd90a59bf2b01ea2efdfc08b26296bb004501d9593a3c5 SHA512 8e3764ca1d8a051e996e816bdaaa3311318ab1b2ff92f02872b6966f63888b803f87223890c093d3f4c03a5381f826f3107fb552032caa5409a17fcab98e0244 WHIRLPOOL a2853fe36a2f22007d3a456c132faedc021d623d2d6294c024929671ae920070141cc50a2aa1dd06ff6c31670ff18e368733fa2cd714df9e6bfe1b4f099f0b22 +EBUILD certificate-1.3.7.ebuild 1121 SHA256 bf5e5492193ca3ebb957d99cf492ee950c6c2fdf47505219a74d8a9e03eb4cbe SHA512 fb4650cd7f15dfcf8c608d134e8aa5c71648890274d7544d6f6e2eaa9df1accee95577eece2cbcae66566bc91c3ee2fc4b97ca034356983108c0d5808ec88b55 WHIRLPOOL b94cc6d26781f9f1127c57380e593406e358134b186da6761e53fd1288aec0a32a1de094ddc37bed9a6ab015cd955e3c4bf838596749ed380f0a12a74f15f70c +EBUILD certificate-1.3.8.ebuild 1007 SHA256 cbbf828eef4f822544912e0b55d7476790233e515db706fb22ced68114db30c4 SHA512 11d57e95b23ad24e0b6a0098cf0e754e2abfe057d40be12136869b423e61a13db07eb106361a92802490595983d53fc795c0258668ab4b130eb58b7de8c8471d WHIRLPOOL 839b5c8b1e897e08c796f343e3ff660c34a25c8d1341032734a3eafd4e5360bf9d2675fec6d9b46868b7e02eda1de977d4eb487f03fcf5cec2736d4d77bf9fca +MISC ChangeLog 493 SHA256 cabcabeedd1f9e7c0c6bd14e055b84df2eb7d0dea950c6ef2252165dae3ff882 SHA512 1e784c6204c971ff211f14a98fa1697bb88377ee1fbe284ba70130b27f18be70ac2f92d00aaae1ce12056647629a98d9afb7470cf398f28a34210adfbc6295d6 WHIRLPOOL 56827cd804976df105dc76bb8b8d5cbc968ff36dae374be976fa51e067b655191daed8b463bc7044fce2e229d71093ac79bad668306d4e3572b5110da0a7139c +MISC metadata.xml 444 SHA256 b47b65e155669029350aa6f4b8130d5544bb19f70062a2407fc7fa8e13678514 SHA512 214ce308ce692c19915d5cd93553ce1c80479dc59e4c08445d96244c28a9243f6ce69100448c74a55f3bf6d881e3018aa4241a2d671177223bf9e3e79a260892 WHIRLPOOL 9840d983ef48db52a2cbf59f175c02ed8d9936d675e76e4ced6689a93b9f969401f0ef9a615d553691904c399d0741b3b902cd85f13120b639848a4844a65116 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.21 (GNU/Linux) + +iQF8BAEBCABmBQJSGzmrXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwMTlGQTEwRTVCMUJCNjdFRDM5Qzg3RjdF +QUQ1MEQ2NEQ4RDM1NzFBAAoJEOrVDWTY01caVeQIAIWJc9r8rYzpu7/9CrsDq5D8 +UN02mFWu5vIeFB+UIFWEd+B+1WfK3J2SMuW7MLHbnQIYxhOHwRILYRH0K4EPeAOn +LzojOhqd94CrCxtdht2oG85ENeuUjrlVfJkHtFN/A3t+WPeWTuTiH9iHq+Cv+1PC +WP7H0hvq3bta2rqQ7I0QLVQgy7onvW5ipAuOz06epqbrsVZtj4VY/dFhhMleaPzI +YNm5erXyT4LiH13m9tFOGjxamUitWBwwqGFU93v7VnvlY+y1Cw3HbqBmYm9JnbZ9 +ETqRt+ygPiETA9k/NAvBN2zNCVifoodcQ1CTCrQqRJd2Sx5OYvP3buNK88M1Zqc= +=D2RS +-----END PGP SIGNATURE----- diff --git a/dev-haskell/certificate/certificate-1.3.7.ebuild b/dev-haskell/certificate/certificate-1.3.7.ebuild new file mode 100644 index 000000000000..6cb44145f282 --- /dev/null +++ b/dev-haskell/certificate/certificate-1.3.7.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/certificate/certificate-1.3.7.ebuild,v 1.1 2013/08/26 11:19:06 qnikst Exp $ + +EAPI=5 + +# ebuild generated by hackport 0.3.2.9999 + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Certificates and Key Reader/Writer" +HOMEPAGE="http://github.com/vincenthz/hs-certificate" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" # due missing tests + +RDEPEND=">=dev-haskell/asn1-data-0.7.1:=[profile?] + <dev-haskell/asn1-data-0.8.0:=[profile?] + >=dev-haskell/crypto-pubkey-types-0.3:=[profile?] + <dev-haskell/crypto-pubkey-types-0.5:=[profile?] + dev-haskell/cryptohash:=[profile?] + dev-haskell/mtl:=[profile?] + =dev-haskell/pem-0.1*:=[profile?] + >=dev-lang/ghc-6.12.1:= + " +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6" + +src_prepare() { + cabal_chdeps \ + 'crypto-pubkey-types >= 0.3 && < 0.4' 'crypto-pubkey-types >= 0.3 && < 0.5' +} diff --git a/dev-haskell/certificate/certificate-1.3.8.ebuild b/dev-haskell/certificate/certificate-1.3.8.ebuild new file mode 100644 index 000000000000..9d0911e357b3 --- /dev/null +++ b/dev-haskell/certificate/certificate-1.3.8.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/certificate/certificate-1.3.8.ebuild,v 1.1 2013/08/26 11:19:06 qnikst Exp $ + +EAPI=5 + +# ebuild generated by hackport 0.3.2.9999 + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Certificates and Key Reader/Writer" +HOMEPAGE="http://github.com/vincenthz/hs-certificate" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" # due missing tests + +RDEPEND=">=dev-haskell/asn1-data-0.7.1:=[profile?] + <dev-haskell/asn1-data-0.8.0:=[profile?] + >=dev-haskell/crypto-pubkey-types-0.3:=[profile?] + <dev-haskell/crypto-pubkey-types-0.5:=[profile?] + dev-haskell/cryptohash:=[profile?] + dev-haskell/mtl:=[profile?] + =dev-haskell/pem-0.1*:=[profile?] + >=dev-lang/ghc-6.12.1:= + " +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6" diff --git a/dev-haskell/certificate/files/certificate-1.3.6/Tests/Unit.hs b/dev-haskell/certificate/files/certificate-1.3.6/Tests/Unit.hs new file mode 100644 index 000000000000..d97947f2b233 --- /dev/null +++ b/dev-haskell/certificate/files/certificate-1.3.6/Tests/Unit.hs @@ -0,0 +1,46 @@ +module Tests.Unit + ( runTests + ) where + +import System.Directory +import Test.HUnit +import Control.Monad +import Control.Applicative ((<$>)) +import Control.Exception +import qualified Data.ByteString as B +import qualified Data.ByteString.Lazy as L +import Data.Certificate.X509 +import Data.List (isPrefixOf) + +-- FIXME : make unit tests portable to run on osX and windows +import System.Certificate.X509 +import Data.CertificateStore + +checkCert (X509 c mraw rawCert sigalg sigbits) = do + let errs = + (checkSigAlg $ certSignatureAlg c) ++ + (checkPubKey $ certPubKey c) ++ + (checkExtensions $ certExtensions c) ++ + (checkBodyRaw rawCert mraw) + when (errs /= []) $ do + putStrLn ("error decoding") + mapM_ (putStrLn . (" " ++)) errs + where + checkExtensions ext = [] + + checkSigAlg (SignatureALG_Unknown oid) = ["unknown signature algorithm " ++ show oid] + checkSigAlg _ = [] + + checkPubKey (PubKeyUnknown oid _) = ["unknown public key alg " ++ show (certPubKey c)] + checkPubKey _ = [] + + checkBodyRaw (Just x) (Just y) = if findsubstring y x then [] else ["cannot find body cert in original raw file"] + checkBodyRaw _ _ = [] + + findsubstring a b + | L.null b = False + | a `L.isPrefixOf` b = True + | otherwise = findsubstring a (L.drop 1 b) + +runTests :: IO () +runTests = getSystemCertificateStore >>= mapM_ checkCert . listCertificates diff --git a/dev-haskell/certificate/metadata.xml b/dev-haskell/certificate/metadata.xml new file mode 100644 index 000000000000..d648576e8eb6 --- /dev/null +++ b/dev-haskell/certificate/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>haskell</herd> + <maintainer> + <email>haskell@gentoo.org</email> + </maintainer> + <longdescription> + Certificates and Key reader/writer + + At the moment only X509 certificate and unencrypted private key are supported, + but will include PGP certificate and pkcs8 private keys + </longdescription> +</pkgmetadata> |