Safe Haskell | None |
---|
Code pulled out of cabal-debian that straightforwardly implements parts of the Debian policy manual, or other bits of Linux standards.
- databaseDirectory :: BinPkgName -> String
- apacheLogDirectory :: BinPkgName -> String
- apacheErrorLog :: BinPkgName -> String
- apacheAccessLog :: BinPkgName -> String
- serverLogDirectory :: BinPkgName -> String
- serverAppLog :: BinPkgName -> String
- serverAccessLog :: BinPkgName -> String
- errorLogBaseName :: String
- appLogBaseName :: String
- accessLogBaseName :: String
- debianPackageVersion :: String -> IO (Maybe DebianVersion)
- getDebhelperCompatLevel :: IO (Maybe Int)
- data StandardsVersion = StandardsVersion Int Int Int (Maybe Int)
- getDebianStandardsVersion :: IO (Maybe StandardsVersion)
- parseStandardsVersion :: String -> StandardsVersion
- data SourceFormat
- readSourceFormat :: Text -> Either Text SourceFormat
- data PackagePriority
- readPriority :: String -> PackagePriority
- data PackageArchitectures
- parsePackageArchitectures :: String -> PackageArchitectures
- data Section
- readSection :: String -> Section
- data Area
- parseUploaders :: String -> Either String [NameAddr]
- parseMaintainer :: String -> Either String NameAddr
- getDebianMaintainer :: IO (Maybe NameAddr)
- haskellMaintainer :: NameAddr
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.
data StandardsVersion Source
getDebianStandardsVersion :: IO (Maybe StandardsVersion)Source
Assumes debian-policy is installed
Package fields
data SourceFormat Source
data PackagePriority Source
data PackageArchitectures Source
The architectures for which a binary deb can be built.
readSection :: String -> SectionSource
parseUploaders :: String -> Either String [NameAddr]Source
Turn the uploaders field of a cabal package into a list of RFC2822 NameAddr values.