Safe Haskell | None |
---|
- verbosity :: Lens Atoms Int
- dryRun :: Lens Atoms Bool
- debAction :: Lens Atoms DebAction
- cabalFlagAssignments :: Lens Atoms (Set (FlagName, Bool))
- packageDescription :: Lens Atoms (Maybe PackageDescription)
- execMap :: Lens Atoms (Map String Relations)
- epochMap :: Lens Atoms (Map PackageName Int)
- missingDependencies :: Lens Atoms (Set BinPkgName)
- extraLibMap :: Lens Atoms (Map String Relations)
- debianNameMap :: Lens Atoms (Map PackageName VersionSplits)
- sourcePackageName :: Lens Atoms (Maybe SrcPkgName)
- revision :: Lens Atoms (Maybe String)
- debVersion :: Lens Atoms (Maybe DebianVersion)
- maintainer :: Lens Atoms (Maybe NameAddr)
- copyright :: Lens Atoms (Maybe Text)
- license :: Lens Atoms (Maybe License)
- licenseFile :: Lens Atoms (Maybe Text)
- sourceArchitectures :: Lens Atoms (Maybe PackageArchitectures)
- sourcePriority :: Lens Atoms (Maybe PackagePriority)
- sourceSection :: Lens Atoms (Maybe Section)
- compat :: Lens Atoms (Maybe Int)
- sourceFormat :: Lens Atoms (Maybe SourceFormat)
- changelog :: Lens Atoms (Maybe ChangeLog)
- comments :: Lens Atoms (Maybe [[Text]])
- standardsVersion :: Lens Atoms (Maybe StandardsVersion)
- rulesHead :: Lens Atoms (Maybe Text)
- rulesFragments :: Lens Atoms (Set Text)
- noProfilingLibrary :: Lens Atoms Bool
- noHoogle :: Lens Atoms Bool
- noDocumentationLibrary :: Lens Atoms Bool
- utilsPackageNames :: Lens Atoms (Set BinPkgName)
- buildDir :: Lens Atoms (Set FilePath)
- watch :: Lens Atoms (Maybe Text)
- omitLTDeps :: Lens Atoms Bool
- binaryArchitectures :: BinPkgName -> Lens Atoms (Maybe PackageArchitectures)
- executable :: Lens Atoms (Map BinPkgName InstallFile)
- serverInfo :: Lens Atoms (Map BinPkgName Server)
- website :: Lens Atoms (Map BinPkgName Site)
- backups :: Lens Atoms (Map BinPkgName String)
- apacheSite :: Lens Atoms (Map BinPkgName (String, FilePath, Text))
- extraDevDeps :: Lens Atoms Relations
- postInst :: Lens Atoms (Map BinPkgName Text)
- postRm :: Lens Atoms (Map BinPkgName Text)
- preInst :: Lens Atoms (Map BinPkgName Text)
- preRm :: Lens Atoms (Map BinPkgName Text)
- binaryPriority :: BinPkgName -> Lens Atoms (Maybe PackagePriority)
- binarySection :: BinPkgName -> Lens Atoms (Maybe Section)
- installInit :: Lens Atoms (Map BinPkgName Text)
- packageType :: BinPkgName -> Lens Atoms (Maybe PackageType)
- debianDescription :: BinPkgName -> Lens Atoms (Maybe Text)
- essential :: BinPkgName -> Lens Atoms (Maybe Bool)
- depends :: BinPkgName -> Lens Atoms Relations
- recommends :: BinPkgName -> Lens Atoms Relations
- suggests :: BinPkgName -> Lens Atoms Relations
- preDepends :: BinPkgName -> Lens Atoms Relations
- breaks :: BinPkgName -> Lens Atoms Relations
- conflicts :: BinPkgName -> Lens Atoms Relations
- provides :: BinPkgName -> Lens Atoms Relations
- replaces :: BinPkgName -> Lens Atoms Relations
- builtUsing :: BinPkgName -> Lens Atoms Relations
- link :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))
- install :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))
- installTo :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))
- installData :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))
- file :: Lens Atoms (Map BinPkgName (Set (FilePath, Text)))
- installDir :: Lens Atoms (Map BinPkgName (Set FilePath))
- logrotateStanza :: Lens Atoms (Map BinPkgName (Set Text))
- installCabalExec :: Lens Atoms (Map BinPkgName (Set (String, FilePath)))
- installCabalExecTo :: Lens Atoms (Map BinPkgName (Set (String, FilePath)))
- flags :: Lens Atoms Flags
- validate :: Lens Atoms Bool
- warning :: Lens Atoms (Set Text)
- intermediateFiles :: Lens Atoms (Set (FilePath, Text))
- packageInfo :: Lens Atoms (Map PackageName PackageInfo)
- control :: Lens Atoms SourceDebDescription
- source :: Lens Atoms (Maybe SrcPkgName)
- changedBy :: Lens Atoms (Maybe NameAddr)
- uploaders :: Lens Atoms [NameAddr]
- dmUploadAllowed :: Lens Atoms Bool
- homepage :: Lens Atoms (Maybe Text)
- vcsFields :: Lens Atoms (Set VersionControlSpec)
- xFields :: Lens Atoms (Set XField)
- buildDepends :: Lens Atoms Relations
- buildConflicts :: Lens Atoms Relations
- buildDependsIndep :: Lens Atoms Relations
- buildConflictsIndep :: Lens Atoms Relations
- binaryPackages :: Lens Atoms [BinaryDebDescription]
Modes of operation
dryRun :: Lens Atoms BoolSource
Don't write anything, just output a description of what would have happened
debAction :: Lens Atoms DebActionSource
Debianize, SubstVars, or Usage. I'm no longer sure what SubstVars does, but someone may still be using it.
cabalFlagAssignments :: Lens Atoms (Set (FlagName, Bool))Source
Cabal flag assignments to use when loading the cabal file.
Cabal package info
packageDescription :: Lens Atoms (Maybe PackageDescription)Source
The result of loading a .cabal file
Repository info
execMap :: Lens Atoms (Map String Relations)Source
Map from cabal Build-Tool names to debian binary package names.
epochMap :: Lens Atoms (Map PackageName Int)Source
Map of Debian epoch numbers assigned to cabal packages.
missingDependencies :: Lens Atoms (Set BinPkgName)Source
List if packages that should be omitted from any dependency list - e.g. a profiling package missing due to use of noProfilingPackage lens elsewhere.
extraLibMap :: Lens Atoms (Map String Relations)Source
Map from cabal Extra-Lib names to debian binary package names.
debianNameMap :: Lens Atoms (Map PackageName VersionSplits)Source
Map from cabal version number ranges to debian package names. This is a result of the fact that only one version of a debian package can be installed at a given time, while multiple versions of a cabal package can.
Source Package Info
sourcePackageName :: Lens Atoms (Maybe SrcPkgName)Source
Override the debian source package name constructed from the cabal name
revision :: Lens Atoms (Maybe String)Source
Revision string used in constructing the debian verison number from the cabal version
debVersion :: Lens Atoms (Maybe DebianVersion)Source
Exact debian version number, overrides the version generated from the cabal version
maintainer :: Lens Atoms (Maybe NameAddr)Source
Maintainer field. Overrides any value found in the cabal file, or in the DEBIANMAINTAINER environment variable. http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Maintainer
sourceArchitectures :: Lens Atoms (Maybe PackageArchitectures)Source
The architectures supported by this source package - Any
,
All
, or some list of specific architectures.
sourcePriority :: Lens Atoms (Maybe PackagePriority)Source
The source package priority - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Priority
sourceSection :: Lens Atoms (Maybe Section)Source
The source package's section assignment - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Section
compat :: Lens Atoms (Maybe Int)Source
The debian/compat
file, contains the minimum compatible version
of the debhelper
package. If not given the version number of the
installed debhelper package is used.
sourceFormat :: Lens Atoms (Maybe SourceFormat)Source
The debian/source/format
file.
comments :: Lens Atoms (Maybe [[Text]])Source
Comment entries for the latest changelog entry (DebLogComments [[Text]])
noProfilingLibrary :: Lens Atoms BoolSource
Set this to omit the prof library deb.
noDocumentationLibrary :: Lens Atoms BoolSource
Set this to omit the doc library deb.
utilsPackageNames :: Lens Atoms (Set BinPkgName)Source
Override the package name used to hold left over data files and executables. Usually only one package is specified, but if more then one are they will each receive the same list of files.
buildDir :: Lens Atoms (Set FilePath)Source
The build directory. This can be set by an argument to the Setup
script.
When Setup
is run manually it is just dist
, when it is run by
dpkg-buildpackage
the compiler name is appended, so it is typically
dist-ghc
. Cabal-debian needs the correct value of buildDir to find
the build results.
Source Package Build Dependencies
omitLTDeps :: Lens Atoms BoolSource
Set this to filter any less-than dependencies out of the generated debian dependencies. (Not sure if this is implemented.)
Binary Package Info
binaryArchitectures :: BinPkgName -> Lens Atoms (Maybe PackageArchitectures)Source
The architectures supported by a binary package
executable :: Lens Atoms (Map BinPkgName InstallFile)Source
Create a package to hold a cabal executable
serverInfo :: Lens Atoms (Map BinPkgName Server)Source
Create a package for a server
apacheSite :: Lens Atoms (Map BinPkgName (String, FilePath, Text))Source
Create an apache configuration file with the given (domain, logdir, filetext). This is called when expanding the result of the website lens above.
extraDevDeps :: Lens Atoms RelationsSource
Extra install dependencies for the devel library. Redundant with depends, but kept for backwards compatibility. Also, I think maybe this is or was needed because it can be set before the exact name of the library package is known.
binaryPriority :: BinPkgName -> Lens Atoms (Maybe PackagePriority)Source
Map of the binary package priorities (FIXME: redundant with BinaryDebDescription)
binarySection :: BinPkgName -> Lens Atoms (Maybe Section)Source
Map of the binary deb section assignments (FIXME: redundant with BinaryDebDescription)
installInit :: Lens Atoms (Map BinPkgName Text)Source
Create an etcinit.d file in the package FIXME: change signature to BinPkgName -> Lens Atoms Text
packageType :: BinPkgName -> Lens Atoms (Maybe PackageType)Source
Lens onto one of several PackageType
values of which we have
specific knowledge how to package.
debianDescription :: BinPkgName -> Lens Atoms (Maybe Text)Source
Lens into the description field of a BinaryDebDescription.
depends :: BinPkgName -> Lens Atoms RelationsSource
http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10 relations :: BinPkgName -> Lens Atoms B.PackageRelations relations b = B.relations . binaryDebDescription b
The Depends: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
recommends :: BinPkgName -> Lens Atoms RelationsSource
The Recommends: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
suggests :: BinPkgName -> Lens Atoms RelationsSource
The Suggests: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
preDepends :: BinPkgName -> Lens Atoms RelationsSource
The Pre-Depends: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
breaks :: BinPkgName -> Lens Atoms RelationsSource
The Breaks: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
conflicts :: BinPkgName -> Lens Atoms RelationsSource
The Conflicts: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
provides :: BinPkgName -> Lens Atoms RelationsSource
The Provides: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
replaces :: BinPkgName -> Lens Atoms RelationsSource
The Replaces: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
builtUsing :: BinPkgName -> Lens Atoms RelationsSource
THe Built-Using: relations for each binary deb - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.6.10
Binary package Files
link :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))Source
Add entries to a binary deb's debian/foo.links file.
install :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))Source
Install files into directories by adding entries to the binary deb's debian/foo.install file.
installTo :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))Source
Rename and install files. This is done by adding rules to debian/rules.
installData :: Lens Atoms (Map BinPkgName (Set (FilePath, FilePath)))Source
Install files into the a binary deb's data directory, usrshare/packagename-version. This expands to either an install or an installTo.
file :: Lens Atoms (Map BinPkgName (Set (FilePath, Text)))Source
Create a file in the binary deb with the given text. This is done by writing the file into the cabalInstall directory and adding an entry to the binary deb's .install file.
installDir :: Lens Atoms (Map BinPkgName (Set FilePath))Source
Create directories in the package FIXME: change signature to BinPkgName -> Lens Atoms (Set FilePath)
logrotateStanza :: Lens Atoms (Map BinPkgName (Set Text))Source
Add a stanza to the binary package's logrotate script.
installCabalExec :: Lens Atoms (Map BinPkgName (Set (String, FilePath)))Source
Install a cabal executable into a binary deb. FIXME: change signature to BinPkgName -> Lens Atoms (Set (String, FilePath))
installCabalExecTo :: Lens Atoms (Map BinPkgName (Set (String, FilePath)))Source
Rename and install a cabal executable FIXME: change signature to BinPkgName -> Lens Atoms (Set (String, FilePath))
Unknown, obsolete, internal
flags :: Lens Atoms FlagsSource
Obsolete record containing verbosity, dryRun, validate, and debAction.
validate :: Lens Atoms BoolSource
Make sure the version number and package names of the supplied and generated debianizations match.
intermediateFiles :: Lens Atoms (Set (FilePath, Text))Source
Create a file in the debianization. This is used to implement the file lens above. FIXME: change signature to BinPkgName -> Lens Atoms (Set (FilePath, Text))
packageInfo :: Lens Atoms (Map PackageName PackageInfo)Source
No longer sure what the purpose of this lens is.
control :: Lens Atoms SourceDebDescriptionSource
The debian/control
file. Many of the following lenses access parts of the SourceDebDescription
.
vcsFields :: Lens Atoms (Set VersionControlSpec)Source
Version control system field - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-VCS-fields
xFields :: Lens Atoms (Set XField)Source
User defined fields - http://www.debian.org/doc/debian-policy/ch-controlfields.html#s5.7