debian/0000755000000000000000000000000012323452525007171 5ustar debian/watch0000644000000000000000000000033012241226533010213 0ustar version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|nettle-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/nettle \ ([\d\.]*\d)/ debian/rules0000755000000000000000000000020512241226542010243 0ustar #!/usr/bin/make -f DEB_ENABLE_TESTS = yes include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk debian/copyright0000644000000000000000000000253412241226527011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: nettle Upstream-Contact: Stefan Bühler Source: http://hackage.haskell.org/package/nettle Files: * Copyright: 2013 Stefan Bühler License: Expat Files: debian/* Copyright: 2013 Clint Adams License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/source/0000755000000000000000000000000011775351420010473 5ustar debian/source/format0000644000000000000000000000001411775351420011701 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012323452473010622 5ustar debian/patches/disable-leaky-tests.diff0000644000000000000000000000145012241234376015321 0ustar Index: nettle-0.1.0/src/Tests/VectorsUMAC.hs =================================================================== --- nettle-0.1.0.orig/src/Tests/VectorsUMAC.hs 2013-10-19 10:01:14.000000000 -0400 +++ nettle-0.1.0/src/Tests/VectorsUMAC.hs 2013-11-14 15:56:24.945325221 -0500 @@ -33,9 +33,9 @@ ]) -- /* Needs POLY128 */ -- /* For the 'a' * 2^25 testcase, see errata http://fastcrypto.org/umac/rfc4418.errata.txt */ - , ("abcdefghijklmnop", Just "bcdefghi", repString (2^(25::Int)) "aaaaaaaa", +{- , ("abcdefghijklmnop", Just "bcdefghi", repString (2^(25::Int)) "aaaaaaaa", [ ("85EE5CAE", "FACA46F856E9B45F", "a621c2457c0012e64f3fdae9e7e1870c") - ]) + ]) -} , ("abcdefghijklmnop", Just "bcdefghi", repString 3 "abc", [ ("ABF3A3A0", "D4D7B9F6BD4FBFCF", "883c3d4b97a61976ffcf232308cba5a5") ]) debian/patches/series0000644000000000000000000000007312323451673012040 0ustar disable-leaky-tests.diff no-annotations-without-ghci.patch debian/patches/no-annotations-without-ghci.patch0000644000000000000000000001057712323452466017237 0ustar Index: b/src/Crypto/Nettle/CCM.hs =================================================================== --- a/src/Crypto/Nettle/CCM.hs +++ b/src/Crypto/Nettle/CCM.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-} +{-# LANGUAGE CPP, MultiParamTypeClasses, FlexibleInstances #-} ----------------------------------------------------------------------------- -- | -- Module : Crypto.Nettle.CCM @@ -45,8 +45,10 @@ import Nettle.Utils +#ifdef GHCI -- internal functions are not camelCase on purpose {-# ANN module "HLint: ignore Use camelCase" #-} +#endif -- ccm needs a 128-bit block cipher Index: b/src/Crypto/Nettle/Ciphers.hs =================================================================== --- a/src/Crypto/Nettle/Ciphers.hs +++ b/src/Crypto/Nettle/Ciphers.hs @@ -72,8 +72,10 @@ import Crypto.Nettle.Ciphers.ForeignImports import Nettle.Utils +#ifdef GHCI -- internal functions are not camelCase on purpose {-# ANN module "HLint: ignore Use camelCase" #-} +#endif #define INSTANCE_CIPHER(Typ) \ instance Cipher Typ where \ Index: b/src/Crypto/Nettle/Ciphers/ForeignImports.hsc =================================================================== --- a/src/Crypto/Nettle/Ciphers/ForeignImports.hsc +++ b/src/Crypto/Nettle/Ciphers/ForeignImports.hsc @@ -102,8 +102,10 @@ import Nettle.Utils +#ifdef GHCI -- internal functions are not camelCase on purpose {-# ANN module "HLint: ignore Use camelCase" #-} +#endif #include "nettle-ciphers.h" Index: b/src/Crypto/Nettle/Ciphers/Internal.hs =================================================================== --- a/src/Crypto/Nettle/Ciphers/Internal.hs +++ b/src/Crypto/Nettle/Ciphers/Internal.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FlexibleContexts #-} +{-# LANGUAGE CPP, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts #-} module Crypto.Nettle.Ciphers.Internal ( NettleCipher(..) @@ -38,8 +38,10 @@ import Nettle.Utils import Crypto.Nettle.Ciphers.ForeignImports +#ifdef GHCI -- internal functions are not camelCase on purpose {-# ANN module "HLint: ignore Use camelCase" #-} +#endif class NettleCipher c where -- | pointer to new context, key length, (const) key pointer Index: b/src/Crypto/Nettle/Hash.hs =================================================================== --- a/src/Crypto/Nettle/Hash.hs +++ b/src/Crypto/Nettle/Hash.hs @@ -68,8 +68,10 @@ import qualified Data.ByteString as B import qualified Data.ByteString.Internal as B +#ifdef GHCI -- internal functions are not camelCase on purpose {-# ANN module "HLint: ignore Use camelCase" #-} +#endif nettleHashBlockSize :: NettleHashAlgorithm a => Tagged a Int nettleHashBlockSize = nha_block_size Index: b/src/Crypto/Nettle/Hash/ForeignImports.hsc =================================================================== --- a/src/Crypto/Nettle/Hash/ForeignImports.hsc +++ b/src/Crypto/Nettle/Hash/ForeignImports.hsc @@ -1,4 +1,4 @@ -{-# LANGUAGE ForeignFunctionInterface #-} +{-# LANGUAGE CPP, ForeignFunctionInterface #-} module Crypto.Nettle.Hash.ForeignImports ( NettleHashInit @@ -134,8 +134,10 @@ import Nettle.Utils +#ifdef GHCI -- internal functions are not camelCase on purpose {-# ANN module "HLint: ignore Use camelCase" #-} +#endif #include "nettle-hash.h" Index: b/src/Crypto/Nettle/UMAC.hs =================================================================== --- a/src/Crypto/Nettle/UMAC.hs +++ b/src/Crypto/Nettle/UMAC.hs @@ -37,8 +37,10 @@ import Crypto.Nettle.KeyedHash import Crypto.Nettle.Hash.ForeignImports +#ifdef GHCI -- internal functions are not camelCase on purpose {-# ANN module "HLint: ignore Use camelCase" #-} +#endif {-| 'UMAC' is a class of keyed hash algorithms that take an additional nonce. Index: b/src/Tests/Ciphers.hs =================================================================== --- a/src/Tests/Ciphers.hs +++ b/src/Tests/Ciphers.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} import Test.Framework (defaultMain, testGroup, Test(..)) import Test.Framework.Providers.QuickCheck2 (testProperty) @@ -76,7 +77,9 @@ , label "ctrCombine + ctrCombine unaligned" $ (ctrCombine c iv . ctrCombine c iv) input == input ] +#ifdef GHCI {-# ANN module "HLint: ignore Reduce duplication" #-} +#endif genStreamTest :: StreamCipher c => c -> Test genStreamTest c' = testProperty ("generated " ++ cipherName c' ++ " stream cipher test") $ do c <- genCipher c' debian/compat0000644000000000000000000000000212241225565010370 0ustar 9 debian/control0000644000000000000000000000430012323452523010567 0ustar Source: haskell-nettle Section: haskell Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Haskell Group Uploaders: Clint Adams Build-Depends: debhelper (>= 9) , cdbs , haskell-devscripts (>= 0.8.15) , ghc , ghc-prof , libghc-byteable-dev , libghc-byteable-prof , libghc-crypto-cipher-types-dev (>= 0.0.3) , libghc-crypto-cipher-types-dev (<< 0.1) , libghc-crypto-cipher-types-prof , libghc-securemem-dev (>= 0.1.2) , libghc-securemem-prof , libghc-tagged-dev , libghc-tagged-prof , pkg-config , nettle-dev , libghc-quickcheck2-dev , libghc-test-framework-dev (>= 0.3.3) , libghc-test-framework-hunit-dev , libghc-test-framework-quickcheck2-dev (>= 0.2.9) , libghc-crypto-cipher-tests-dev Build-Depends-Indep: ghc-doc , libghc-byteable-doc , libghc-crypto-cipher-types-doc , libghc-securemem-doc , libghc-tagged-doc Standards-Version: 3.9.5 Homepage: http://hackage.haskell.org/package/nettle Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-nettle Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-nettle X-Description: safe bindings to nettle crypto library This is another set of bindings to Nettle. Package: libghc-nettle-dev Architecture: any Depends: ${haskell:Depends} , ${shlibs:Depends} , ${misc:Depends} , nettle-dev Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: ${haskell:ShortDescription}${haskell:ShortBlurb} ${haskell:LongDescription} . ${haskell:Blurb} Package: libghc-nettle-prof Architecture: any Depends: ${haskell:Depends} , ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: ${haskell:ShortDescription}${haskell:ShortBlurb} ${haskell:LongDescription} . ${haskell:Blurb} Package: libghc-nettle-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${haskell:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Description: ${haskell:ShortDescription}${haskell:ShortBlurb} ${haskell:LongDescription} . ${haskell:Blurb} debian/changelog0000644000000000000000000000075012323452525011045 0ustar haskell-nettle (0.1.0-1ubuntu1) trusty; urgency=medium * Don't try to use annotations on architectures without GHCi. -- Colin Watson Wed, 16 Apr 2014 11:03:00 +0100 haskell-nettle (0.1.0-1build1) trusty; urgency=low * Rebuild for new GHC ABIs. -- Colin Watson Sat, 14 Dec 2013 02:30:17 +0000 haskell-nettle (0.1.0-1) unstable; urgency=low * Initial release. -- Clint Adams Thu, 14 Nov 2013 14:58:48 -0500