cabal-debian-3.0.5: Create a debianization for a cabal package

Safe HaskellNone

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

defaultAtoms :: AtomsSource

This may not look like a goodie, but it incorporates knowledge about the debian repository - what the epoch number of HaXml is, the fact that the debian package name of parsec changed, etc.

tightDependencyFixup :: [(BinPkgName, BinPkgName)] -> BinPkgName -> Atoms -> AtomsSource

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 :: BinPkgName -> Server -> Atoms -> AtomsSource

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

doWebsite :: BinPkgName -> Site -> Atoms -> AtomsSource

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

doBackups :: BinPkgName -> String -> Atoms -> AtomsSource

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

doExecutable :: BinPkgName -> InstallFile -> Atoms -> AtomsSource

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