summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Hopkins <marduk@gentoo.org>2007-01-16 03:06:46 +0000
committerAlbert Hopkins <marduk@gentoo.org>2007-01-16 03:06:46 +0000
commit7e5c54d75da3788528af33947955464c092b7650 (patch)
tree12c0bd0e428c4fe47020a0f31dbd047fbb766624
parentRemoved unused caching logic (diff)
downloadgentoo-7e5c54d75da3788528af33947955464c092b7650.tar.gz
gentoo-7e5c54d75da3788528af33947955464c092b7650.tar.bz2
gentoo-7e5c54d75da3788528af33947955464c092b7650.zip
Example config file.
-rw-r--r--src/packages/config.py.example58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/packages/config.py.example b/src/packages/config.py.example
new file mode 100644
index 0000000000..c86a489ec7
--- /dev/null
+++ b/src/packages/config.py.example
@@ -0,0 +1,58 @@
+"""config.py general system configuration parameters
+Every fe module should probably import config"""
+
+__version__ = '1.3'
+PORTAGE_DIR = '/usr/portage'
+WEBBASE="/"
+FEHOME="http://dragonfly.xen.nbk/"
+FELIB="/home/marduk/Projects/packages.old"
+FAVICON="http://www.gentoo.org/favicon.ico"
+ICONS="%simages" % FEHOME
+ARCHLIST_EXCLUDE = ['m68k', 'ppc-od', 'x86-obsd', 'x86-od', 'sh']
+ARCHLIST=[i for i in open('/usr/portage/profiles/arch.list','r').read().split()
+ if i not in ARCHLIST_EXCLUDE]
+MAXPERPAGE=50
+MAX_RECENT_RELEASES=50
+MAX_CATEGORIES=30
+LOCALHOME="/var/www/localhost/htdocs"
+EBUILD_FILES="%s/ebuilds" % LOCALHOME
+INDEX="main.shtml"
+STYLESHEET = 'http://packages.gentoo.org/css/main.css'
+RSS = 'gentoo.rss'
+RSS2 = 'gentoo_simple.rss'
+RSS_WEBMASTER = 'www@gentoo.org'
+RSS_EDITOR = 'marduk@gentoo.org'
+RSS_IMAGE = 'http://packages.gentoo.org/images/opd.png'
+
+# Database connection info
+HOST = 'dbhost'
+DATABASE = 'dbdb'
+USER = 'dbuser'
+PASSWD = 'dbpasswd'
+
+# max # words to compare for similarity
+SIMILAR_MAX_WORDS = 20
+
+# minimum # of occurences of words in package
+SIMILAR_MIN_MATCHES = 2
+# words to be excluded in Similiar Packages check. Make
+# all words lowercase
+EXCLUDED_FROM_SIMILAR = ('plugins', 'for', 'plug-ins', 'based', 'the', 'and',
+ 'is', 'to', 'the', 'from', 'your', 'within', 'on', 'in', 'use',
+ 'used', 'library', 'another', 'display', 'plugin', 'policy',
+ 'that', 'each', 'simple', 'program', 'client', 'server',
+ 'standard', 'utility', 'which', 'enable', 'enables', 'allow',
+ 'allows', 'using', 'uses', 'input', 'output',
+ 'automatically','are', 'an', 'plug-in', 'daemon', 'app', 'applet',
+ 'kit', 'style', 'easy', 'made', 'making', 'tool', 'processing',
+ 'create', 'creating', 'tools', 'software', 'provide', 'provides',
+ 'easier', 'with', 'interface', 'module', 'modules', 'its', 'util',
+ 'fast', 'allowing','you', 'or', 'such','as', 'version', 'this',
+ 'set', 'sets', 'powerful', 'support', 'supports', 'front', 'end',
+ 'powered', 'file', 'files', 'high', 'highly', 'performance',
+ 'between', 'gnome', 'gnome2', 'kde', 'kde3', 'application', 'etc',
+ 'more', 'gnu', 'gpl', 'free', 'com', 'read', 'reads', 'write',
+ 'writes', 'various' ,'formats', 'gtk', 'gtk2', 'frontend',
+ 'manage', 'manager', 'managing', 'command', 'commands', 'line',
+ 'lines', 'stuff', 'some', 'full', 'featured', 'best', 'meta',
+ 'package', 'small', 'system', 'systems', 'replacement')