summaryrefslogtreecommitdiff
path: root/git-annex.cabal
blob: b5b58897448f880041483edb31269bf9f501e410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
Name: git-annex
Version: 6.20160114
Cabal-Version: >= 1.8
License: GPL-3
Maintainer: Joey Hess <id@joeyh.name>
Author: Joey Hess
Stability: Stable
Copyright: 2010-2014 Joey Hess
License-File: COPYRIGHT
Extra-Source-Files: CHANGELOG
Homepage: http://git-annex.branchable.com/
Build-type: Custom
Category: Utility
Synopsis: manage files with git, without checking their contents into git
Description:
 git-annex allows managing files with git, without checking the file
 contents into git. While that may seem paradoxical, it is useful when
 dealing with files larger than git can currently easily handle, whether due
 to limitations in memory, time, or disk space.
 .
 It can store large files in many places, from local hard drives, to a
 large number of cloud storage services, including S3, WebDAV,
 and rsync, with a dozen cloud storage providers usable via plugins.
 Files can be stored encrypted with gpg, so that the cloud storage
 provider cannot see your data. git-annex keeps track of where each file
 is stored, so it knows how many copies are available, and has many
 facilities to ensure your data is preserved.
 .
 git-annex can also be used to keep a folder in sync between computers,
 noticing when files are changed, and automatically committing them
 to git and transferring them to other computers. The git-annex webapp
 makes it easy to set up and use git-annex this way.

Flag S3
  Description: Enable S3 support

Flag WebDAV
  Description: Enable WebDAV support

Flag Assistant
  Description: Enable git-annex assistant and watch command

Flag Webapp
  Description: Enable git-annex webapp

Flag Webapp-secure
  Description: Secure webapp

Flag Pairing
  Description: Enable pairing

Flag DNS
  Description: Enable the haskell DNS library for DNS lookup

Flag Production
  Description: Enable production build (slower build; faster binary)

Flag Android
  Description: Cross building for Android
  Default: False

Flag AndroidSplice
  Description: Building to get TH splices for Android
  Default: False

Flag TestSuite
  Description: Embed the test suite into git-annex

Flag TDFA
  Description: Use regex-tdfa for wildcards

Flag Feed
  Description: Enable podcast feed support

Flag Quvi
  Description: Enable use of quvi to download videos

Flag Tahoe
  Description: Enable the tahoe special remote

Flag TorrentParser
  Description: Use haskell torrent library to parse torrent files

Flag ConcurrentOutput
  Description: Use concurrent-output library

Flag EKG
  Description: Enable use of EKG to monitor git-annex as it runs (at http://localhost:4242/)
  Default: False

Flag Benchmark
  Description: Enable benchmarking
  Default: False

Flag network-uri
  Description: Get Network.URI from the network-uri package
  Default: True

Flag Cryptonite
  Description: Use the cryptonite library, instead of the older cryptohash

Executable git-annex
  Main-Is: git-annex.hs
  Build-Depends:
   base (>= 4.5 && < 4.9),
   optparse-applicative (>= 0.11.0), 
   containers (>= 0.5.0.0), 
   exceptions (>= 0.6),
   QuickCheck (>= 2.1),
   stm (>= 2.3),
   mtl (>= 2),
   process, data-default, case-insensitive, uuid, random, dlist,
   unix-compat, SafeSemaphore, async, directory, filepath, IfElse,
   MissingH, hslogger, monad-logger,
   utf8-string, bytestring, text, sandi, json,
   monad-control, transformers,
   bloomfilter, edit-distance,
   resourcet, http-conduit, http-client, http-types,
   time, old-locale,
   esqueleto, persistent-sqlite, persistent, persistent-template
  CC-Options: -Wall
  GHC-Options: -Wall -fno-warn-tabs
  Extensions: PackageImports
  -- Some things don't work with the non-threaded RTS.
  GHC-Options: -threaded

  -- Avoid linking with unused dynamic libaries.
  -- (Only tested on Linux).
  if os(Linux)
    GHC-Options: -optl-Wl,--as-needed

  if flag(network-uri)
    Build-Depends: network-uri (>= 2.6), network (>= 2.6)
  else
    Build-Depends: network (< 2.6), network (>= 2.0)

  if flag(Cryptonite)
    Build-Depends: cryptonite
    CPP-Options: -DWITH_CRYPTONITE
  else
    Build-Depends: cryptohash (>= 0.11.0)

  -- Fully optimize for production.
  if flag(Production)
    GHC-Options: -O2

  if (os(windows))
    Build-Depends: Win32, Win32-extras, unix-compat (>= 0.4.1.3), setenv,
      process (>= 1.3.0.0)
  else
    Build-Depends: unix
    -- Need to list these because they're generated from .hsc files.
    Other-Modules: Utility.Touch Utility.Mounts
    Include-Dirs: Utility
    C-Sources: Utility/libdiskfree.c Utility/libmounts.c
    CPP-Options: -DWITH_CLIBS

  if flag(TestSuite)
    Build-Depends: tasty (>= 0.7), tasty-hunit, tasty-quickcheck, tasty-rerun,
     crypto-api
    CPP-Options: -DWITH_TESTSUITE

  if flag(TDFA)
    Build-Depends: regex-tdfa
    CPP-Options: -DWITH_TDFA
  else
    Build-Depends: regex-compat

  if flag(S3)
    Build-Depends: conduit, conduit-extra, aws (>= 0.9.2)
    CPP-Options: -DWITH_S3

  if flag(WebDAV)
    Build-Depends: DAV (>= 1.0)
    CPP-Options: -DWITH_WEBDAV

  if flag(Assistant) && ! os(solaris)
    CPP-Options: -DWITH_ASSISTANT

  if flag(Assistant)
    if os(linux)
      Build-Depends: hinotify
      CPP-Options: -DWITH_INOTIFY
    else
      if os(darwin)
        Build-Depends: hfsevents
        CPP-Options: -DWITH_FSEVENTS
      else
        if os(windows)
          Build-Depends: Win32-notify
          CPP-Options: -DWITH_WIN32NOTIFY
        else
          if (! os(solaris) && ! os(linux))
            if flag(Android)
              Build-Depends: hinotify
              CPP-Options: -DWITH_INOTIFY
            else
              CPP-Options: -DWITH_KQUEUE
              C-Sources: Utility/libkqueue.c

  if (os(linux))
    Build-Depends: dbus (>= 0.10.7), fdo-notify (>= 0.3)
    CPP-Options: -DWITH_DBUS -DWITH_DESKTOP_NOTIFY -DWITH_DBUS_NOTIFICATIONS

  if flag(Android)
    Build-Depends: data-endian
    CPP-Options: -D__ANDROID__ -DANDROID_SPLICES -D__NO_TH__
  if flag(AndroidSplice)
    CPP-Options: -DANDROID_SPLICES

  if flag(Webapp)
    Build-Depends:
     yesod (>= 1.2.6), 
     yesod-default (>= 1.2.0),
     yesod-static (>= 1.2.4),
     yesod-form (>= 1.3.15),
     yesod-core (>= 1.2.19),
     path-pieces (>= 0.1.4),
     warp (>= 3.0.0.5),
     warp-tls,
     wai, wai-extra,
     blaze-builder, crypto-api, clientsession,
     template-haskell, aeson,
     shakespeare (>= 2.0.0)
    CPP-Options: -DWITH_WEBAPP

  if flag(Webapp) && flag (Webapp-secure)
    Build-Depends: warp-tls (>= 1.4), securemem, byteable
    CPP-Options: -DWITH_WEBAPP_SECURE

  if flag(Pairing)
    Build-Depends: network-multicast, network-info
    CPP-Options: -DWITH_PAIRING

  if (! os(windows))
    Build-Depends: network-protocol-xmpp, gnutls (>= 0.1.4), xml-types
    CPP-Options: -DWITH_XMPP

  if flag(DNS)
    Build-Depends: dns
    CPP-Options: -DWITH_DNS

  if flag(Feed)
    Build-Depends: feed (>= 0.3.4)
    CPP-Options: -DWITH_FEED
  
  if flag(Quvi)
    Build-Depends: aeson
    CPP-Options: -DWITH_QUVI
  
  if flag(Tahoe)
    Build-Depends: aeson
    CPP-Options: -DWITH_TAHOE

  if flag(TorrentParser)
    Build-Depends: torrent (>= 10000.0.0)
    CPP-Options: -DWITH_TORRENTPARSER

  if flag(ConcurrentOutput)
    Build-Depends: concurrent-output (>= 1.6)
    CPP-Options: -DWITH_CONCURRENTOUTPUT

  if flag(EKG)
    Build-Depends: ekg
    GHC-Options: -with-rtsopts=-T
    CPP-Options: -DWITH_EKG
  
  if flag(Benchmark)
    Build-Depends: criterion, deepseq
    CPP-Options: -DWITH_BENCHMARK

source-repository head
  type: git
  location: git://git-annex.branchable.com/