summaryrefslogtreecommitdiff
path: root/dev-haskell/certificate
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-23 10:22:15 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-23 10:22:15 +0100
commit8b4ace9c50842c5b83401ea7b179dcab940387e1 (patch)
tree230f3135ceaace633cf93e9838b185c4a6664c2e /dev-haskell/certificate
parent9ee6d97c2883d42f204a533a8bc1f4562df778fb (diff)
gentoo resync : 23.09.2020
Diffstat (limited to 'dev-haskell/certificate')
-rw-r--r--dev-haskell/certificate/Manifest5
-rw-r--r--dev-haskell/certificate/certificate-1.3.9.ebuild43
-rw-r--r--dev-haskell/certificate/files/certificate-1.3.6/Tests/Unit.hs46
-rw-r--r--dev-haskell/certificate/files/certificate-1.3.9-ghc-7.10.patch16
-rw-r--r--dev-haskell/certificate/metadata.xml20
5 files changed, 0 insertions, 130 deletions
diff --git a/dev-haskell/certificate/Manifest b/dev-haskell/certificate/Manifest
deleted file mode 100644
index 0f16889b47a2..000000000000
--- a/dev-haskell/certificate/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-AUX certificate-1.3.6/Tests/Unit.hs 1401 BLAKE2B da9e592386db1953a1bf2e8026623af5b4497f8b6cb721125eb7dd7e3a3878f022c91a29f646ba486651f377be48082622f90e3a9ab5297c6ce931bdfb880a55 SHA512 a254749781292c2c4a86e9feef03168db5809472581e6f87a0d7e3af97031598f598c696242ecac4dc15b5e526936b3a3bab8a83a544fd97a182bcb4ec6b72be
-AUX certificate-1.3.9-ghc-7.10.patch 548 BLAKE2B 406925966374309faabae0772572440db390c337f292a4a8c3e9c827934dfeff2e1ff7d5ab67267a0009e7e51e333ee181b11d4554b22c5bdebf3479b3fbd697 SHA512 2ee1038e6e5b41fc08268e5c0b8d5e0cf810bd6bd4c51b01b8d1077dde5bf21f45ab6074140f8e8175cc70ae118849ddcc5865c42c9d91ca755cc768a99132a7
-DIST certificate-1.3.9.tar.gz 15018 BLAKE2B a89c5cf680a752dbc69f7510eae10bfa1e340090b512f1341db0742d44c13c5171cdeb3b8f0352b53ebe5fb018cb957501b01ff9d297b1a67ddeaf8cce52f265 SHA512 85ad7d1f3def68152824d0be4ccc3fb991903867fac68927eac34db366ce6f8201468a3e73c336fef6feae1ce550f614fc3ab89447b4ec7a67ac279902a815f9
-EBUILD certificate-1.3.9.ebuild 1240 BLAKE2B c9cd2f5c9b6764d230eaf5085a921ea6a92b540b057671cf1773f449b271f95c9997e624ad95ef72ee5c7e29508433a52e5354d9473b16a52e43e19f8d636c2d SHA512 4d431157f404948b99765b5a7062b75c3fd352c8d6f2db1535cef53a17f42dd0344cea483df13c5b4740f712602ee5126f14139c49171f9d4ad367b169bc6c08
-MISC metadata.xml 625 BLAKE2B 5347d26e31920b59a5d9f71f083e37559f1d078d81eeb2848d64ff5ab90d269772dabb09746cbe1099d756290ac3390df36adf3d6ce383525387ee560b8eeb9b SHA512 b49ed9a3c937752b192e3d2f9d129732d30104db488b75b85207cbe4257d5aaefa57570f9ca2af744a6b6ef04eb1ff5b86341fa4a6c37bacc988d7ab43c24edd
diff --git a/dev-haskell/certificate/certificate-1.3.9.ebuild b/dev-haskell/certificate/certificate-1.3.9.ebuild
deleted file mode 100644
index 50aa562eef6f..000000000000
--- a/dev-haskell/certificate/certificate-1.3.9.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-# ebuild generated by hackport 0.3.4.9999
-
-CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
-inherit eutils haskell-cabal
-
-DESCRIPTION="Certificates and Key Reader/Writer"
-HOMEPAGE="https://github.com/vincenthz/hs-certificate"
-SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~x86"
-IUSE="executable test"
-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.4:=[profile?] <dev-haskell/crypto-pubkey-types-0.5:=[profile?]
- dev-haskell/cryptohash:=[profile?]
- dev-haskell/mtl:=[profile?]
- >=dev-haskell/pem-0.1:=[profile?] <dev-haskell/pem-0.3:=[profile?]
- >=dev-lang/ghc-6.12.1:=
- executable? ( dev-haskell/cmdargs:=[profile?]
- dev-haskell/crypto-pubkey:=[profile?]
- >=dev-haskell/text-0.11:=[profile?] )
-"
-DEPEND="${RDEPEND}
- >=dev-haskell/cabal-1.8.0.2
-"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.3.9-ghc-7.10.patch
-}
-
-src_configure() {
- haskell-cabal_src_configure \
- $(cabal_flag executable executable) \
- $(cabal_flag test test)
-}
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
deleted file mode 100644
index d97947f2b233..000000000000
--- a/dev-haskell/certificate/files/certificate-1.3.6/Tests/Unit.hs
+++ /dev/null
@@ -1,46 +0,0 @@
-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/files/certificate-1.3.9-ghc-7.10.patch b/dev-haskell/certificate/files/certificate-1.3.9-ghc-7.10.patch
deleted file mode 100644
index 07a53256ded8..000000000000
--- a/dev-haskell/certificate/files/certificate-1.3.9-ghc-7.10.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff --git a/Data/Certificate/X509/Cert.hs b/Data/Certificate/X509/Cert.hs
-index 4abfadf..15e7bf8 100644
---- a/Data/Certificate/X509/Cert.hs
-+++ b/Data/Certificate/X509/Cert.hs
-@@ -1,2 +1,3 @@
-+{-# LANGUAGE FlexibleContexts #-}
- module Data.Certificate.X509.Cert
- (
-diff --git a/Data/Certificate/X509/Ext.hs b/Data/Certificate/X509/Ext.hs
-index 7595f14..8963a55 100644
---- a/Data/Certificate/X509/Ext.hs
-+++ b/Data/Certificate/X509/Ext.hs
-@@ -1,2 +1,3 @@
-+{-# LANGUAGE FlexibleContexts #-}
- -- |
- -- Module : Data.Certificate.X509.Ext
diff --git a/dev-haskell/certificate/metadata.xml b/dev-haskell/certificate/metadata.xml
deleted file mode 100644
index 3ba11e2cb4c8..000000000000
--- a/dev-haskell/certificate/metadata.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>haskell@gentoo.org</email>
- <name>Gentoo Haskell</name>
- </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>
- <use>
- <flag name="executable">Build the executable</flag>
- </use>
- <upstream>
- <remote-id type="github">vincenthz/hs-certificate</remote-id>
- </upstream>
-</pkgmetadata>