cabal-debian-4.19.1: Create a Debianization for a Cabal package

Safe HaskellNone
LanguageHaskell98

Debian.Debianize.Goodies

Description

Things that seem like they could be clients of this library, but are instead included as part of the library.

Synopsis

Documentation

tightDependencyFixup :: Monad m => [(BinPkgName, BinPkgName)] -> BinPkgName -> DebT m () Source

Create equals dependencies. For each pair (A, B), use dpkg-query to find out B's version number, version B. Then write a rule into P's .substvar that makes P require that that exact version of A, and another that makes P conflict with any older version of A.

doServer :: Monad m => BinPkgName -> Server -> DebT m () Source

Add a debian binary package to the debianization containing a cabal executable file set up to be a server.

doWebsite :: Monad m => BinPkgName -> Site -> DebT m () Source

Add a debian binary package to the debianization containing a cabal executable file set up to be a web site.

doBackups :: Monad m => BinPkgName -> String -> DebT m () Source

Add a debian binary package to the debianization containing a cabal executable file set up to be a backup script.

doExecutable :: Monad m => BinPkgName -> InstallFile -> DebT m () Source

Add a debian binary package to the debianization containing a cabal executable file.

makeRulesHead :: (Monad m, Functor m) => DebT m Text Source

Build a suitable value for the head of the rules file.