2013-05-15 00:59:14 +00:00
|
|
|
{- Bundled programs
|
|
|
|
-
|
|
|
|
- Copyright 2013 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
{-# LANGUAGE CPP #-}
|
|
|
|
|
|
|
|
module Build.BundledPrograms where
|
|
|
|
|
|
|
|
import Data.Maybe
|
|
|
|
|
|
|
|
import Build.SysConfig as SysConfig
|
|
|
|
|
|
|
|
{- Programs that git-annex uses, to include in the bundle.
|
|
|
|
-
|
|
|
|
- These may be just the command name, or the full path to it. -}
|
|
|
|
bundledPrograms :: [FilePath]
|
|
|
|
bundledPrograms = catMaybes
|
|
|
|
[ Nothing
|
|
|
|
#ifndef mingw32_HOST_OS
|
|
|
|
-- git is not included in the windows bundle
|
|
|
|
, Just "git"
|
|
|
|
#endif
|
|
|
|
, Just "cp"
|
2013-10-17 19:56:56 +00:00
|
|
|
#ifndef mingw32_HOST_OS
|
|
|
|
-- using xargs on windows led to problems, so it's not used there
|
2013-05-15 00:59:14 +00:00
|
|
|
, Just "xargs"
|
2013-10-17 19:56:56 +00:00
|
|
|
#endif
|
2013-05-15 00:59:14 +00:00
|
|
|
, Just "rsync"
|
|
|
|
, Just "ssh"
|
2013-11-08 18:29:47 +00:00
|
|
|
, Just "ssh-keygen"
|
2013-05-15 00:59:14 +00:00
|
|
|
#ifndef mingw32_HOST_OS
|
|
|
|
, Just "sh"
|
|
|
|
#endif
|
2013-05-19 21:59:58 +00:00
|
|
|
, SysConfig.gpg
|
2013-05-15 00:59:14 +00:00
|
|
|
, ifset SysConfig.curl "curl"
|
|
|
|
, ifset SysConfig.wget "wget"
|
|
|
|
, ifset SysConfig.bup "bup"
|
|
|
|
, SysConfig.lsof
|
2013-09-13 16:05:47 +00:00
|
|
|
, SysConfig.gcrypt
|
2013-05-15 00:59:14 +00:00
|
|
|
, SysConfig.sha1
|
|
|
|
, SysConfig.sha256
|
|
|
|
, SysConfig.sha512
|
|
|
|
, SysConfig.sha224
|
|
|
|
, SysConfig.sha384
|
2013-11-24 04:26:20 +00:00
|
|
|
#ifdef linux_HOST_OS
|
|
|
|
-- used to unpack the tarball when upgrading
|
|
|
|
, Just "gunzip"
|
|
|
|
, Just "tar"
|
|
|
|
#endif
|
2013-10-17 20:13:33 +00:00
|
|
|
-- nice and ionice are not included in the bundle; we rely on the
|
|
|
|
-- system's own version, which may better match its kernel
|
2013-05-15 00:59:14 +00:00
|
|
|
]
|
|
|
|
where
|
|
|
|
ifset True s = Just s
|
|
|
|
ifset False _ = Nothing
|