ossp-pkg/quos/quos.cfg
##
## OSSP quos - Query On Steroids
## Copyright (c) 2004 Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 2004 The OSSP Project <http://www.ossp.org/>
##
## This file is part of OSSP quos, a Web user interface for querying
## a database which can be found at http://www.ossp.org/pkg/tool/quos/.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
## USA, or contact Ralf S. Engelschall <rse@engelschall.com>.
##
## quos.cfg: configuration
##
options {
webpage "quos.html" "%BODY%";
database "dbi:SQLite:dbname=openpkg.db" {
fields {
field Name quos.package.pk_name;
field Version quos.package.pk_version;
field Release quos.package.pk_release;
field Distribution quos.package.pk_distribution;
field Group quos.package.pk_group;
field License quos.package.pk_license;
field Packager quos.package.pk_packager;
field Summary quos.package.pk_summary;
field URL quos.package.pk_url;
field Vendor quos.package.pk_vendor;
field Description quos.package.pk_description;
field BuildPreReq.Key quos_buildprereq.bp_key;
field BuildPreReq.Op quos_buildprereq.bp_op;
field BuildPreReq.Val quos_buildprereq.bp_val;
field PreReq.Key quos_prereq.rp_key;
field PreReq.Op quos_prereq.rp_op;
field PreReq.Val quos_prereq.rp_val;
field Provide.Key quos_provide.pr_key;
field Provide.Op quos_provide.pr_op;
field Provide.Val quos_provide.pr_val;
field Source quos_source.sr_url;
};
relations {
key quos_package.pk_id {
quos_buildprereq.bp_id
quos_prereq.rp_id
quos_provide.pr_id
quos_source.sr_id
};
};
};
};
queries {
group "by Group" {
query "Mail" { GROUP EQ "Mail" };
query "News" { GROUP EQ "News" };
};
group "by Release" {
query "OpenPKG-2.2" { RELEASE RE "2\.2\.\d+$" };
query "OpenPKG-CURRENT" { RELEASE RE "2\d{7}" };
};
};
views {
view "TXT: rpm -qa" q{
[%{NAME}-%{VERSION}-%{RELEASE}\n]
};
view "TXT: rpm -qi" q{
Name: %-25{NAME} Source RPM: %{SOURCERPM}\n\
Version: %-25{VERSION} Signature: %|DSAHEADER?{dsa:%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{rsa:%{RSAHEADER:pgpsig}}:{%|SIG?{gpg:%{SIGGPG:pgpsig}}:{%|SIGPGP?{pgp:%{SIGPGP:pgpsig}}:{%|SIGMD5?{md5:%{SIGMD5}}:{(none)}|}|}|}|}|\n\
Release: %-25{RELEASE} Build Host: %{BUILDHOST}\n\
Group: %-25{GROUP} Build System: %{ARCH}-%{OS}\n\
Class: %-25{CLASS} Build Time: %{BUILDTIME:date}\n\
Distrib: %-25{DISTRIBUTION} Install Time: %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n\
License: %-25{LICENSE} Install Size: %{SIZE} bytes\n\
Packager: %-25{PACKAGER} Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocateable)}|\n\
Vendor: %{VENDOR}\n\
Summary: %{SUMMARY}\n\
URL: %{URL}\n\
Description:\n%{DESCRIPTION}\n\
%|PROVIDENAME?{Provides:\n\
[ %{PROVIDENAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags} %{PROVIDEVERSION}}:{}|\n]}:{}|
};
};