# -*- python -*- # Configuration for the rpmlint utility. # Loaded before ~/.rpmlintrc # $Id: config,v 1.38 2000/08/31 11:24:03 flepied Exp $ # This line is mandatory to access the configuration functions from Config import * # Additionale path to look for checks #addCheckDir("~/mandrake/rpmlint") # Configure the checks if you don't want the default ones resetChecks() addCheck("DistributionCheck") addCheck("TagsCheck") addCheck("BinariesCheck") addCheck("ConfigCheck") addCheck("FilesCheck") addCheck("FHSCheck") addCheck("SignatureCheck") addCheck("I18NCheck") addCheck("MenuCheck") addCheck("PostCheck") addCheck("InitScriptCheck") addCheck("SourceCheck") addCheck("SpecCheck") addCheck("NamingPolicyCheck") addCheck("ZipCheck") # Configuration options used by the checks # for ALT Linux only!!! setOption("Vendor", "ALT Linux Team") setOption("Distribution", "ALT Linux") #setOption("UseBzip2", 1) setOption("Packager", '@altlinux\.(ru|org|com)| at altlinux dot (ru|org)|@packages\.altlinux\.org| at altlinux\.ru') setOption("ReleaseExtension", "^(alt[0-9]+|ipl[0-9]+mdk)") setOption("ValidLicenses", ( "GPL", "LGPL", "GPL v2", "Proprietary", "distributable", "Distributable", "Different licenses", "Public Domain", "public domain", "OpenSource", "ARTISTIC BSD GPL_V2 LGPL_V2 QPL_V1.0", "Boost Software License", "CMU License", "GPL or Academic Free License", "MPL", "MIT", "FTL/GPL", "GPL2", "Dual: GPL or BSD", "Apache", "Artistic", "FDL", "GPL, LGPL", "AT&T open source (see COPYING)", "AFL/GPL", "GPL with exceptions (see COPYING.txt)" "BSD License", "Sun Binary Code License", "Free for non-commercial use", "BSD derivative", "QPL", "ARSENAL INC.", "QPL & LGPL", "Sleepycat", "GPL/QPL", "OSL", "MIT/X Consortium", "BSD style + APSL", "Modified BSD", "OpenLDAP Public License", "Distributable (see License.htm)", "Apple Public Source License", "Distributable (see LICENSE)", "OSI certified", "GPL & QPL", "Dual: GPL and Ruby", "Freely Distributable", "LGPL/FDL", "GNU GPL", "X/MIT and other", "Free", "PHP", "MPL/NPL", "Commercial", "free to use, but restricted (see EULA)", "Public domain", "NVIDIA", "QPL & LGPL", "Open Group Public License", "GPL, LGPL, SISSL, PDL", "GPL or Artistic", "Apache License v2.0", "GPL/Artistic/Tk/Tix (see docs)", "PHP Licence", "IBM Public License", "povray", "freeware", "PSF", "wxWindows Library Licence", "Dual: GPL and Ruby", "LGPL/FDL", "Python License", "The author disclaims copyright to this source code.", "GPL-2", "freely modifiable and distributable", "Freely distributable", "GPL, URW holds copyright", "Charityware", "wxWidgets License", "BSD with minor restrictions", "Free for personal and educational use, see /usr/share/doc/xmms-in-mac-0.2.1/COPYING", "BSD")) setOption("ValidBuildHost", '\.hasher\.altlinux\.(ru|org)|\.office\.altlinux\.ru$') # ValidGroups taken from rpm-4.0.4-alt73 setOption("ValidGroups", ( "Accessibility", "Archiving/Backup", "Archiving/Cd burning", "Archiving/Compression", "Archiving/Other", "Books/Computer books", "Books/Faqs", "Books/Howtos", "Books/Literature", "Books/Other", "Communications", "Databases", "Development/C", "Development/C++", "Development/Databases", "Development/Debuggers", "Development/Documentation", "Development/Functional", "Development/GNOME and GTK+", "Development/Haskell", "Development/Java", "Development/KDE and QT", "Development/Kernel", "Development/Lisp", "Development/ML", "Development/Objective-C", "Development/Other", "Development/Perl", "Development/Python", "Development/Ruby", "Development/Scheme", "Development/Tcl", "Documentation", "Editors", "Education", "Emulators", "File tools", "Games/Adventure", "Games/Arcade", "Games/Boards", "Games/Cards", "Games/Educational", "Games/Other", "Games/Puzzles", "Games/Sports", "Games/Strategy", "Graphical desktop/Enlightenment", "Graphical desktop/FVWM based", "Graphical desktop/GNOME", "Graphical desktop/GNUstep", "Graphical desktop/Icewm", "Graphical desktop/KDE", "Graphical desktop/Motif", "Graphical desktop/Other", "Graphical desktop/Rox", "Graphical desktop/Sawfish", "Graphical desktop/Window Maker", "Graphical desktop/XFce", "Graphics", "Monitoring", "Networking/Chat", "Networking/DNS", "Networking/File transfer", "Networking/FTN", "Networking/IRC", "Networking/Instant messaging", "Networking/Mail", "Networking/News", "Networking/Other", "Networking/Remote access", "Networking/WWW", "Office", "Publishing", "Sciences/Astronomy", "Sciences/Biology", "Sciences/Chemistry", "Sciences/Computer science", "Sciences/Geosciences", "Sciences/Mathematics", "Sciences/Medicine", "Sciences/Other", "Sciences/Physics", "Security/Antivirus", "Security/Networking", "Shells", "Sound", "System/Base", "System/Configuration/Boot and Init", "System/Configuration/Hardware", "System/Configuration/Networking", "System/Configuration/Other", "System/Configuration/Packaging", "System/Configuration/Printing", "System/Fonts/Console", "System/Fonts/True type", "System/Fonts/Type1", "System/Fonts/X11 bitmap", "System/Internationalization", "System/Kernel and hardware", "System/Libraries", "System/Servers", "System/Servers/ZProducts", "System/X11", "System/XFree86", "Terminals", "Text tools", "Toys", "Video")) # taken from menu-policy-0.0.2.txt setOption("ValidMenuSections", ( "Amusement/Adventure", "Amusement/Arcade", "Amusement/Boards", "Amusement/Cards", "Amusement/Puzzles", "Amusement/Sports", "Amusement/Strategy", "Amusement/Toys", "Amusement/Other", "Applications/Accessibility", "Applications/Archiving/Compression", "Applications/Archiving/Cd burning", "Applications/Archiving/Backup", "Applications/Archiving/Other", "Applications/Communications", "Applications/Databases", "Applications/Development/Interpreters", "Applications/Development/Code generators", "Applications/Development/Development environments", "Applications/Development/Tools", "Applications/Editors", "Applications/Emulators", "Applications/File tools", "Applications/Finances", "Applications/Monitoring", "Applications/Publishing", "Applications/Sciences/Astronomy", "Applications/Sciences/Biology", "Applications/Sciences/Chemistry", "Applications/Sciences/Computer science", "Applications/Sciences/Geosciences", "Applications/Sciences/Mathematics", "Applications/Sciences/Physics", "Applications/Sciences/Other", "Applications/Shells", "Applications/Text tools", "Chinese/Configuration", "Chinese/Boot and Init", "Chinese/Hardware", "Chinese/Networking", "Chinese/Packaging", "Chinese/Printing", "Chinese/Other", "Documentation", "Edutainment/Languages", "Edutainment/Mathematics", "Edutainment/Science", "Edutainment/Tools", "Edutainment/Other", "Multimedia/Graphics", "Multimedia/Sound", "Multimedia/Video", "Networking/Chat", "Networking/IRC", "Networking/Instant messaging", "Networking/File transfer", "Networking/Mail", "Networking/News", "Networking/Remote access", "Networking/WWW", "Networking/Other", "Office/Accessories", "Office/AddressBooks", "Office/Graphs", "Office/PDA", "Office/Presentations", "Office/Spreadsheets", "Office/Tasks management", "Office/Time management", "Office/Wordprocessors", "Session/Windowmanagers", "Terminals")) # Output filters # addFilter("E: .* no-signature") # ALT Linux filters # defaults addFilter('E: .* no-buildroot-tag') addFilter('W: .* hardcoded-packager-tag') addFilter('E: .* no-%clean-section') addFilter('E: .* no-cleaning-of-buildroot') addFilter('W: .* setup-not-quiet') addFilter('W: .* source-or-patch-not-bzipped') addFilter('W: .* manpage-not-bzipped') addFilter('W: .* infopage-not-bzipped') addFilter('W: .* non-conffile-in-etc /etc/rpm/macros.d/') addFilter('E: .* requires-on-release') # addFilter('W: .* not-standard-release-extension') addFilter('W: .* invalid-license') addFilter('W: .* summary-not-capitalized') addFilter('W: .* summary-ended-with-dot') addFilter('W: .* non-conffile-in-etc /etc/buildreqs') # kernel's addFilter('unstripped-binary-or-object /lib/modules/') # rootfiles-alt-alt9.noarch.rpm addFilter('rootfiles non-etc-or-var-file-marked-as-conffile /root/.*') addFilter('rootfiles non-readable /root/.*') # mkinitrd-busybox-1.00.rel-alt3.i586.rpm addFilter('mkinitrd-busybox statically-linked-binary /lib/mkinitrd/busybox') # glibc-2.3.5-alt5.i586.rpm addFilter('glibc no-binary') addFilter('glibc-core statically-linked-binary /sbin/ldconfig') # etcskel-2.0.10-alt1.2.noarch.rpm addFilter('etcskel hidden-file-or-dir /etc/skel.*/') addFilter('etcskel zero-length /etc/skel.*/.mutt/folder') addFilter('etcskel executable-marked-as-config-file /etc/skel.*/.mutt/color-select') # filesystem-2.3.1-alt1.i586.rpm addFilter('filesystem no-binary') addFilter('filesystem non-standard-dir-perm /root 0700') addFilter('filesystem non-standard-dir-perm /lib/modules 0700') addFilter('filesystem non-standard-dir-perm /boot 0700') addFilter('filesystem non-standard-dir-perm /sys 0555') addFilter('filesystem non-standard-dir-perm /proc 0555') addFilter('filesystem non-standard-dir-perm /tmp 01777') addFilter('filesystem dir-or-file-in-usr-local .*') addFilter('filesystem dir-or-file-in-mnt /mnt/(floppy|disk|cdrom)') # MPlayer-1.0-alt20.pre7.i586.rpm # MPlayer-doc-1.0-alt20.pre7.i586.rpm # MPlayer-gui-1.0-alt20.pre7.i586.rpm # MPlayer-skin-default-1.7-alt1.1.i586.rpm addFilter('MPlayer invalid-license GPL for all but not for OpenDivX') addFilter('MPlayer-doc invalid-license GPL for all but not for OpenDivX') addFilter('MPlayer-gui invalid-license GPL for all but not for OpenDivX') addFilter('MPlayer-skin-default invalid-license GPL for all but not for OpenDivX') addFilter('MPlayer conffile-without-noreplace-flag /etc/MPlayer/codecs.conf') # altlinux-release-Sisyphus-alt20050723.noarch.rpm addFilter('altlinux-release non-conffile-in-etc /etc/altlinux-release') # rpm-4.0.4-alt89.i586.rpm and later addFilter('E: rpm-build.* only-non-binary-in-usr-lib') # files in /usr/lib/rpm/ may be scripts # hack's #addFilter('E: .* invalid-lc-messages-dir') #addFilter('W: .* no-url-tag') #addFilter('W: .* no-documentation') # config ends here