git-annex/Build/BundledPrograms.hs

76 lines
1.9 KiB
Haskell
Raw Normal View History

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; msysgit is used
2013-05-15 00:59:14 +00:00
, Just "git"
-- Not strictly needed in PATH by git-annex, but called
-- by git when it sshes to a remote.
, Just "git-upload-pack"
, Just "git-receive-pack"
2013-12-27 20:35:24 +00:00
, Just "git-shell"
2013-05-15 00:59:14 +00:00
#endif
, Just "cp"
#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"
#endif
2013-05-15 00:59:14 +00:00
, Just "rsync"
#ifndef darwin_HOST_OS
-- OS X has ssh installed by default.
-- Linux probably has ssh, but not guaranteed.
-- On Windows, msysgit provides ssh, but not in PATH,
-- so we ship our own.
2013-05-15 00:59:14 +00:00
, Just "ssh"
, Just "ssh-keygen"
#endif
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"
#ifndef darwin_HOST_OS
-- wget on OSX has been problimatic, looking for certs in the wrong
-- places. Don't ship it, use curl or the OSX's own wget if it has
-- one.
2013-05-15 00:59:14 +00:00
, ifset SysConfig.wget "wget"
#endif
2013-05-15 00:59:14 +00:00
, ifset SysConfig.bup "bup"
, SysConfig.lsof
, SysConfig.gcrypt
2013-05-15 00:59:14 +00:00
, SysConfig.sha1
, SysConfig.sha256
, SysConfig.sha512
, SysConfig.sha224
, SysConfig.sha384
#ifdef linux_HOST_OS
-- used to unpack the tarball when upgrading
, Just "gunzip"
, Just "tar"
#endif
-- nice, ionice, and nocache are not included in the bundle;
-- we rely on the system's own version, which may better match
-- its kernel, and avoid using them if not available.
2013-05-15 00:59:14 +00:00
]
where
ifset True s = Just s
ifset False _ = Nothing