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

Safe HaskellNone

Debian.Policy

Contents

Description

Code pulled out of cabal-debian that straightforwardly implements parts of the Debian policy manual, or other bits of Linux standards.

Synopsis

Paths

Installed packages

getDebhelperCompatLevel :: IO (Maybe Int)Source

The version number of the installed debhelper package is the highest acceptable value for compat in a debian/control file. If the package doesn't explicitly set an (acceptable) compat value we can use the value returned by this function, assuming debhelper is installed.

getDebianStandardsVersion :: IO (Maybe StandardsVersion)Source

Assumes debian-policy is installed

Package fields

data PackageArchitectures Source

The architectures for which a binary deb can be built.

Constructors

All

The package is architecture independenct

Any

The package can be built for any architecture

Names [String]

The list of suitable architectures

parseUploaders :: String -> Either String [NameAddr]Source

Turn the uploaders field of a cabal package into a list of RFC2822 NameAddr values.

parseMaintainer :: String -> Either String NameAddrSource

Parse a string containing a single NameAddr value.