71 lines
2.3 KiB
Plaintext
71 lines
2.3 KiB
Plaintext
rpmlint is a tool to check common errors on rpm packages. rpmlint can
|
|
be used to test individual packages before uploading or to check an
|
|
entire distribution. By default all checks are processed but specific
|
|
checks can be performed by using command line parameters.
|
|
|
|
rpmlint idea comes from the lintian tool of the Debian project.
|
|
|
|
Comments and new checks welcome. Send feedback to
|
|
<flepied@mandrakesoft.com>.
|
|
|
|
Implemented checks:
|
|
|
|
o tags checks (TagsCheck).
|
|
o Distribution specific checks (MandrakeCheck).
|
|
o binaries checks (BinaryCheck).
|
|
o configuration files checks (ConfigCheck).
|
|
o locations, permissions, groups and owners checks (FileCheck).
|
|
o suid warnings (FileCheck).
|
|
o pgp checks (SignatureCheck).
|
|
o FHS checks (FHSCheck).
|
|
o Source specific checks (SourceCheck).
|
|
o i18n checks (I18NCheck).
|
|
o menu system checks (MenuCheck).
|
|
o %post; %pre, %postun and %preun scripts checks (PostCheck).
|
|
o /etc/rc.d/init.d checks (InitScriptCheck).
|
|
o spec file checks (SpecCheck).
|
|
|
|
If you want to change configuration options or the list of checks, use the
|
|
global configuration file /etc/rpmlint/config or in the user configuration
|
|
file ~/.rpmlintrc.
|
|
|
|
Configuration files are python source files and should begin with the
|
|
following line:
|
|
|
|
from Config import *
|
|
|
|
to load configuration functions.
|
|
|
|
Configuration functions:
|
|
|
|
resetChecks() resets the list of checks.
|
|
|
|
addCheck(check) adds the check to the list of checks to try.
|
|
|
|
addCheckDir(path) adds a path to look for checks.
|
|
|
|
setOption(name, value) sets the value of the configuration option. See bellow
|
|
to have the list of available options.
|
|
|
|
addFilter(regexp) adds a filter to remove the output of a check.
|
|
|
|
Available options:
|
|
|
|
name type default
|
|
========================================================
|
|
Vendor string "MandrakeSoft"
|
|
Distribution string "Linux-Mandrake"
|
|
UseBzip2 boolean 1
|
|
ValidGroups list of strings
|
|
ValidMenuSections list of strings
|
|
ReleaseExtension string or None "mdk"
|
|
UseVersionInChangelog boolen 1
|
|
ExtraMenuNeeds list of strings
|
|
ExtractDir string "/tmp"
|
|
ValidLicenses list of strings
|
|
SystemLibPaths list of strings ('/lib', '/usr/lib', '/usr/X11R6/lib')
|
|
ValidShells list of strings ('/bin/sh', '/bin/bash', '/usr/bin/perl')
|
|
Packager regex "@mandrakesoft.com|bugs@linux-mandrake.com"
|
|
RpmGamesGroup regex "Games"
|
|
DanglingSymlinkExceptions list of pairs (['consolehelper$', 'usermode'],)
|