summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-04-24 18:43:00 -0400
committerjoe <joe@jerkface.net>2016-04-24 18:43:00 -0400
commitfbf425fbef1c1e60fcdddfbd9b25976162725f97 (patch)
treeb3877b56401f22efed0486ae10950af3a5ebadf8
parent7d8798f60b11973fd17d85caf3da2e8473842d2a (diff)
Refactored build of executable and library.
-rw-r--r--kiki.cabal69
-rw-r--r--lib/Base58.hs (renamed from Base58.hs)0
-rw-r--r--lib/Compat.hs (renamed from Compat.hs)0
-rw-r--r--lib/ControlMaybe.hs (renamed from ControlMaybe.hs)0
-rw-r--r--lib/CryptoCoins.hs (renamed from CryptoCoins.hs)0
-rw-r--r--lib/DotLock.hs (renamed from DotLock.hs)0
-rw-r--r--lib/FunctorToMaybe.hs (renamed from FunctorToMaybe.hs)0
-rw-r--r--lib/Hosts.hs (renamed from Hosts.hs)0
-rw-r--r--lib/KeyRing.hs (renamed from KeyRing.hs)0
-rw-r--r--lib/PEM.hs (renamed from PEM.hs)0
-rw-r--r--lib/ProcessUtils.hs (renamed from ProcessUtils.hs)0
-rw-r--r--lib/ScanningParser.hs (renamed from ScanningParser.hs)0
-rw-r--r--lib/TimeUtil.hs (renamed from TimeUtil.hs)0
-rw-r--r--lib/dotlock.c (renamed from dotlock.c)0
-rw-r--r--lib/dotlock.h (renamed from dotlock.h)0
15 files changed, 56 insertions, 13 deletions
diff --git a/kiki.cabal b/kiki.cabal
index 176d09c..c79f313 100644
--- a/kiki.cabal
+++ b/kiki.cabal
@@ -1,7 +1,7 @@
1 1
2Name: kiki 2Name: kiki
3Version: 0.0.3 3Version: 0.0.3
4cabal-version: >= 1.6 4cabal-version: >= 1.8
5Synopsis: A bridge between (cryptographic) keys 5Synopsis: A bridge between (cryptographic) keys
6Description: gpg operations... TODO 6Description: gpg operations... TODO
7License: Undecided 7License: Undecided
@@ -23,15 +23,20 @@ Executable kiki
23 Main-is: kiki.hs 23 Main-is: kiki.hs
24 -- base >=4.6 due to use of readEither in KikiD.Message 24 -- base >=4.6 due to use of readEither in KikiD.Message
25 Build-Depends: base >=4.6.0.0, 25 Build-Depends: base >=4.6.0.0,
26 directory -any, 26 asn1-encoding,
27 openpgp-util -any, 27 asn1-types,
28 asn1-types -any, asn1-encoding -any, 28 binary,
29 dataenc -any, text -any, pretty -any, pretty-show -any, 29 bytestring,
30 bytestring -any, binary -any, 30 containers,
31 unix, time, 31 dataenc,
32 containers -any, process -any, filepath -any, 32 directory,
33 network -any, old-locale -any, zlib -any, 33 filepath,
34 tar 34 tar,
35 text,
36 time,
37 unix,
38 openpgp-util,
39 kiki
35 if !flag(cryptonite) 40 if !flag(cryptonite)
36 Build-Depends: crypto-pubkey >=0.2.3, cryptohash -any, 41 Build-Depends: crypto-pubkey >=0.2.3, cryptohash -any,
37 crypto-pubkey-types -any 42 crypto-pubkey-types -any
@@ -41,12 +46,50 @@ Executable kiki
41 Build-Depends: x509 <1.6 46 Build-Depends: x509 <1.6
42 else 47 else
43 Build-Depends: cryptonite, x509 >=1.6, memory, hourglass 48 Build-Depends: cryptonite, x509 >=1.6, memory, hourglass
44 ghc-options: -O2 -fwarn-unused-binds -fwarn-unused-imports
45 c-sources: dotlock.c
46 49
47Executable hosts 50Executable hosts
48 Main-is: hosts.hs 51 Main-is: hosts.hs
52 buildable: False
49 c-sources: dotlock.c 53 c-sources: dotlock.c
50 54
51library 55library
52 exposed-modules: KeyRing 56 hs-source-dirs: lib
57 exposed-modules: KeyRing,
58 ScanningParser,
59 PEM,
60 DotLock,
61 Base58,
62 CryptoCoins,
63 ProcessUtils
64 other-modules: Hosts,
65 TimeUtil,
66 Compat,
67 FunctorToMaybe
68
69 Build-Depends: base >=4.6.0.0,
70 asn1-encoding,
71 asn1-types,
72 binary,
73 bytestring,
74 containers,
75 dataenc,
76 directory,
77 filepath,
78 network,
79 pretty-show,
80 process,
81 text,
82 time,
83 unix,
84 zlib,
85 openpgp-util
86 if !flag(cryptonite)
87 Build-Depends: crypto-pubkey >=0.2.3, cryptohash -any,
88 crypto-pubkey-types -any
89 if flag(hourglass)
90 Build-Depends: hourglass -any, x509 >=1.5 && <1.6
91 else
92 Build-Depends: x509 <1.6
93 else
94 Build-Depends: cryptonite, x509 >=1.6, memory, hourglass
95 c-sources: lib/dotlock.c
diff --git a/Base58.hs b/lib/Base58.hs
index 3c1a113..3c1a113 100644
--- a/Base58.hs
+++ b/lib/Base58.hs
diff --git a/Compat.hs b/lib/Compat.hs
index 3b77851..3b77851 100644
--- a/Compat.hs
+++ b/lib/Compat.hs
diff --git a/ControlMaybe.hs b/lib/ControlMaybe.hs
index 659dab7..659dab7 100644
--- a/ControlMaybe.hs
+++ b/lib/ControlMaybe.hs
diff --git a/CryptoCoins.hs b/lib/CryptoCoins.hs
index f417036..f417036 100644
--- a/CryptoCoins.hs
+++ b/lib/CryptoCoins.hs
diff --git a/DotLock.hs b/lib/DotLock.hs
index af05f5d..af05f5d 100644
--- a/DotLock.hs
+++ b/lib/DotLock.hs
diff --git a/FunctorToMaybe.hs b/lib/FunctorToMaybe.hs
index 658b024..658b024 100644
--- a/FunctorToMaybe.hs
+++ b/lib/FunctorToMaybe.hs
diff --git a/Hosts.hs b/lib/Hosts.hs
index 5f09de1..5f09de1 100644
--- a/Hosts.hs
+++ b/lib/Hosts.hs
diff --git a/KeyRing.hs b/lib/KeyRing.hs
index 0fbf2c2..0fbf2c2 100644
--- a/KeyRing.hs
+++ b/lib/KeyRing.hs
diff --git a/PEM.hs b/lib/PEM.hs
index e07b3d4..e07b3d4 100644
--- a/PEM.hs
+++ b/lib/PEM.hs
diff --git a/ProcessUtils.hs b/lib/ProcessUtils.hs
index 4e3ac38..4e3ac38 100644
--- a/ProcessUtils.hs
+++ b/lib/ProcessUtils.hs
diff --git a/ScanningParser.hs b/lib/ScanningParser.hs
index f99e120..f99e120 100644
--- a/ScanningParser.hs
+++ b/lib/ScanningParser.hs
diff --git a/TimeUtil.hs b/lib/TimeUtil.hs
index 879bc32..879bc32 100644
--- a/TimeUtil.hs
+++ b/lib/TimeUtil.hs
diff --git a/dotlock.c b/lib/dotlock.c
index c111159..c111159 100644
--- a/dotlock.c
+++ b/lib/dotlock.c
diff --git a/dotlock.h b/lib/dotlock.h
index 3fb9bcb..3fb9bcb 100644
--- a/dotlock.h
+++ b/lib/dotlock.h