summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McGrath <mmcgrath@redhat.com>2009-01-05 14:56:25 (GMT)
committerMike McGrath <mmcgrath@redhat.com>2009-01-05 14:56:25 (GMT)
commit62a85c87cc532a7e0b4fe0e49122ca8ae153d90a (patch)
tree0bd7131ac7c8c7604702142ef247fbe3789b7d1d
parent14f53f1fd4c1fac00265c03d4d517b2900e873a1 (diff)
parent919f2d62aaa5a25ac887ea7fe9f59941cf2b7a8a (diff)
downloadfedora-infrastructure-62a85c87cc532a7e0b4fe0e49122ca8ae153d90a.zip
fedora-infrastructure-62a85c87cc532a7e0b4fe0e49122ca8ae153d90a.tar.gz
fedora-infrastructure-62a85c87cc532a7e0b4fe0e49122ca8ae153d90a.tar.xz
Merge branch 'master' of ssh://git.fedorahosted.org/git/fedora-infrastructure
-rw-r--r--scripts/Auth_FAS_MediaWiki/Auth_FAS.php2
-rwxr-xr-xscripts/epel-repoclosure/checkEpel.sh38
-rwxr-xr-xscripts/fedoraUsage/fedoraUsage.sh23
-rw-r--r--scripts/planet/people/css/content.css237
-rw-r--r--scripts/planet/people/css/docbook.css71
-rw-r--r--scripts/planet/people/css/layout.css362
-rw-r--r--scripts/planet/people/css/people-style.css169
-rw-r--r--scripts/planet/people/css/print.css86
-rw-r--r--scripts/planet/people/images/blue.pngbin0 -> 124 bytes
-rw-r--r--scripts/planet/people/images/corner-bl.pngbin0 -> 340 bytes
-rw-r--r--scripts/planet/people/images/corner-br.pngbin0 -> 346 bytes
-rw-r--r--scripts/planet/people/images/corner-tl.pngbin0 -> 331 bytes
-rw-r--r--scripts/planet/people/images/corner-tr.pngbin0 -> 374 bytes
-rw-r--r--scripts/planet/people/images/favicon.icobin0 -> 3638 bytes
-rw-r--r--scripts/planet/people/images/header-download.pngbin0 -> 1170 bytes
-rw-r--r--scripts/planet/people/images/header-faq.pngbin0 -> 2089 bytes
-rw-r--r--scripts/planet/people/images/header-fedora_logo.pngbin0 -> 2206 bytes
-rw-r--r--scripts/planet/people/images/header-projects.pngbin0 -> 1224 bytes
-rw-r--r--scripts/planet/people/images/heads/default.pngbin0 -> 4653 bytes
-rw-r--r--scripts/planet/people/images/heads/fdp.pngbin0 -> 5881 bytes
-rw-r--r--scripts/planet/people/images/heads/map_brazil_fedora_small.pngbin0 -> 12072 bytes
-rw-r--r--scripts/planet/people/images/intro-computer.pngbin0 -> 6308 bytes
-rw-r--r--scripts/planet/people/images/intro-download.pngbin0 -> 3569 bytes
-rw-r--r--scripts/planet/people/images/logo-spacer.pngbin0 -> 139 bytes
-rw-r--r--scripts/planet/people/images/logo.pngbin0 -> 5413 bytes
-rw-r--r--scripts/planet/people/images/mainBack.pngbin0 -> 261 bytes
-rw-r--r--scripts/planet/people/images/people-entry-bottom-center.pngbin0 -> 173 bytes
-rw-r--r--scripts/planet/people/images/people-entry-bottom-left.pngbin0 -> 486 bytes
-rw-r--r--scripts/planet/people/images/people-entry-bottom-right.pngbin0 -> 719 bytes
-rw-r--r--scripts/planet/people/images/people-entry-center-left.pngbin0 -> 129 bytes
-rw-r--r--scripts/planet/people/images/people-entry-center-right.pngbin0 -> 225 bytes
-rw-r--r--scripts/planet/people/images/people-entry-group-date-background.pngbin0 -> 136 bytes
-rw-r--r--scripts/planet/people/images/people-entry-group-date-header.pngbin0 -> 472 bytes
-rw-r--r--scripts/planet/people/images/people-entry-top-center.pngbin0 -> 257 bytes
-rw-r--r--scripts/planet/people/images/people-entry-top-left.pngbin0 -> 472 bytes
-rw-r--r--scripts/planet/people/images/people-entry-top-right.pngbin0 -> 1004 bytes
-rw-r--r--scripts/planet/people/images/people-header.pngbin0 -> 185 bytes
-rw-r--r--scripts/planet/people/images/people-logo.pngbin0 -> 5630 bytes
-rw-r--r--scripts/planet/people/images/people-logo.png.bakbin0 -> 4135 bytes
-rw-r--r--scripts/planet/people/images/people-sidebar-header.pngbin0 -> 135 bytes
-rw-r--r--scripts/planet/people/images/planet.pngbin0 -> 426 bytes
-rw-r--r--scripts/planet/people/templates/atom.xml.tmpl64
-rw-r--r--scripts/planet/people/templates/foafroll.xml.tmpl31
-rw-r--r--scripts/planet/people/templates/heads.html.tmpl111
-rw-r--r--scripts/planet/people/templates/index.html.tmpl125
-rw-r--r--scripts/planet/people/templates/opml.xml.tmpl16
-rw-r--r--scripts/planet/people/templates/rss10.xml.tmpl33
-rw-r--r--scripts/planet/people/templates/rss20.xml.tmpl27
-rwxr-xr-xscripts/planet/planetconfigbuilder.py173
-rw-r--r--scripts/zabbix/pathchecker.py11
-rw-r--r--scripts/zabbix/zabbixhelper.cfg3
-rwxr-xr-xscripts/zabbix/zabbixhelper.py45
52 files changed, 1613 insertions, 14 deletions
diff --git a/scripts/Auth_FAS_MediaWiki/Auth_FAS.php b/scripts/Auth_FAS_MediaWiki/Auth_FAS.php
index cce27b6..4a76928 100644
--- a/scripts/Auth_FAS_MediaWiki/Auth_FAS.php
+++ b/scripts/Auth_FAS_MediaWiki/Auth_FAS.php
@@ -14,7 +14,7 @@
curl_setopt($ch, CURLOPT_USERAGENT, "Auth_FAS 0.9");
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=".urlencode($username)."&user_name=".urlencode($username)."&password=".urlencode($password)."&login=Login");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
+ curl_setopt($ch, CURLOPT_VERBOSE, 0);
# I hate chained certificates
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
# This is only required because of the wildcard cert on pt10
diff --git a/scripts/epel-repoclosure/checkEpel.sh b/scripts/epel-repoclosure/checkEpel.sh
index 14f4fc7..c0016dd 100755
--- a/scripts/epel-repoclosure/checkEpel.sh
+++ b/scripts/epel-repoclosure/checkEpel.sh
@@ -4,32 +4,44 @@ DATE=`date +%Y%m%d`
YUM_CONF_LOC=/etc/yum.repos.d/yum.epel.conf
OUTPUT_DIR=$HOME
RC_REPORT_CFG=/etc/rc-report-epel.cfg
+PATH=$PATH:.:/usr/local/bin
+
+OUTFILE=/tmp/epel-deps-$DATE.txt
+>$OUTFILE
+
+SEND_EMAIL="yes"
+
process_deps()
{
release=$1
arch=$2
testing=$3
- mail=$4
- [ -z $4 ] && mail="no" || mail="yes"
[ $arch = "ppc" ] && arch_label=ppc64 || arch_label=$arch
- command="/usr/local/bin/rc-modified -d mdcache -n -c $YUM_CONF_LOC -a $arch_label -r rhel-$release-$arch -r fedora-epel-$release-$arch -r buildsys-$release-$arch -r rhel-$arch-server-productivity-$release"
+ [ $arch = "i386" ] && arch_label=i686 || arch_label=$arch
+ command="rc-modified -q -d mdcache -n -c $YUM_CONF_LOC -a $arch_label -r rhel-$release-$arch -r fedora-epel-$release-$arch -r buildsys-$release-$arch -r rhel-$arch-server-productivity-$release"
[ $release -eq 5 ] && command="$command -r rhel-$release-$arch-vt "
[ "$testing" = "testing" ] && command="$command -r fedora-epel-testing-$release-$arch "
- OUTFILE=$OUTPUT_DIR/epel${release}${arch}-$DATE.txt
- $command > $OUTFILE
- [ "$4" = "yes" ] && /usr/local/bin/rc-report.py $OUTFILE -k epel -c $RC_REPORT_CFG -w testing -m summary -m owner
+ $command >> $OUTFILE
}
+mailer()
+{
+ rc-report.py $OUTFILE -k epel -c $RC_REPORT_CFG -w testing -m summary -m owner
+}
-# process_deps RHEL_RELEASE ARCH INCLUDE_TESTING? MAIL?
+# process_deps RHEL_RELEASE ARCH INCLUDE_TESTING?
# RHEL 5
-process_deps 5 i386 testing yes
-process_deps 5 x86_64 testing yes
-process_deps 5 ppc testing yes
+process_deps 5 i386 testing
+process_deps 5 x86_64 testing
+process_deps 5 ppc testing
# RHEL 4
-process_deps 4 i386 testing yes
-process_deps 4 x86_64 testing yes
-process_deps 4 ppc testing yes
+process_deps 4 i386 testing
+process_deps 4 x86_64 testing
+process_deps 4 ppc testing
+
+if [ "$SEND_EMAIL" = "yes" ] ; then
+ mailer
+fi
diff --git a/scripts/fedoraUsage/fedoraUsage.sh b/scripts/fedoraUsage/fedoraUsage.sh
new file mode 100755
index 0000000..50cc075
--- /dev/null
+++ b/scripts/fedoraUsage/fedoraUsage.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+function updateIps {
+ release=$1
+ YESTERDAY=`/bin/date -d yesterday +%Y-%m-%d`
+ YEAR=`/bin/date -d yesterday +%Y`
+ MONTH=`/bin/date -d yesterday +%m`
+ DAY=`/bin/date -d yesterday +%d`
+
+ /bin/mkdir -p /srv/web/fedoraUsage.private
+ /bin/awk /$release/'{ print $1 }' /var/log/hosts/proxy*/$YEAR/$MONTH/$DAY/http/mirrors.fedoraproject.org-access.log | /bin/sort -u > /srv/web/fedoraUsage.private/$release.tmp
+ /bin/sort -u /srv/web/fedoraUsage.private/$release.tmp /srv/web/fedoraUsage.private/$release.ips > /srv/web/fedoraUsage.private/$release.ips.new
+ /bin/mv /srv/web/fedoraUsage.private/$release.ips.new /srv/web/fedoraUsage.private/$release.ips
+ /usr/bin/wc -l /srv/web/fedoraUsage.private/$release.ips > /srv/web/fedoraUsage/$release
+}
+
+updateIps rawhide
+updateIps updates-released-fc6
+updateIps updates-released-f7
+updateIps updates-released-f8
+updateIps updates-released-f9
+updateIps updates-released-f10
+
diff --git a/scripts/planet/people/css/content.css b/scripts/planet/people/css/content.css
new file mode 100644
index 0000000..982924e
--- /dev/null
+++ b/scripts/planet/people/css/content.css
@@ -0,0 +1,237 @@
+.name-project, .name-release, .name-version {
+}
+
+/* Front page H1 */
+#page-main h1 {
+ font-size: 1.35em;
+}
+
+#page-main h1.center {
+ text-align: center;
+}
+
+h1, h2, h3, h4 {
+ /*
+ font-style: italic;
+ */
+ font-family: luxi sans,sans-serif;
+}
+h1 {
+ font-size: 1.75em;
+}
+
+h2 {
+ font-size: 1.25em;
+# background-color: #eee;
+}
+
+h3 {
+ font-size: 1.1em;
+}
+
+hr {
+ border: 0;
+ border-bottom: 1px solid #ccc;
+}
+
+.fedora-side-right-content {
+ padding: 1 5px 1.5em;
+ font-size: 1em;
+}
+#fedora-side-right h1, #fedora-side-right h2, #fedora-side-right h3 {
+ margin: 0;
+ padding: 0 4pt 0;
+ font-size: 1em;
+ letter-spacing: 2pt;
+ border-bottom: 1px solid #bbb;
+}
+#fedora-side-right hr {
+ border-bottom: 1px solid #aaa;
+ margin: 0.5em 0;
+}
+
+table tr {
+ font-size: 0.9em;
+}
+
+
+#link-offsite {
+}
+.link-offsite-notation {
+ font-size: 0.9em;
+ color: #777;
+ padding-left: 1pt;
+ text-decoration: none !important;
+}
+#fedora-content .link-offsite-notation {
+ color: #999;
+}
+#link-redhat {
+}
+#fedora-content #link-redhat {
+}
+#link-internal {
+}
+
+#fedora-content li {
+ padding: 1pt;
+}
+#fedora-content h1 {
+ margin-top: 0;
+}
+
+#fedora-content a img {
+ margin: 1px;
+ border: 0;
+}
+#fedora-content a:hover img {
+ margin: 0;
+ border: 1px solid #f00;
+}
+#fedora-content a img.noborder {
+ margin: 0;
+ border: 0;
+}
+#fedora-content a:hover img .noborder {
+ margin: 0;
+ border: 0;
+}
+
+#fedora-project-maintainers p, #fedora-project-contributors p, #fedora-project-bugs p {
+ margin-left: 5pt;
+}
+
+#fedora-project-download dt {
+ font-weight: bold;
+ margin-top: 8pt;
+ margin-left: 5pt;
+}
+#fedora-project-download dd {
+ padding: 0;
+ margin: 10px 20px 0;
+}
+#fedora-project-screenshots a img {
+ margin: 5px;
+}
+#fedora-project-screenshots a:hover img {
+ margin: 4px;
+}
+#fedora-project-todo ul {
+ border: 1px solid #cad4e9;
+ margin: 0 1em;
+ padding: 0;
+ list-style: none;
+ border-radius: 2.5px;
+ -moz-border-radius: 2.5px;
+}
+#fedora-project-todo li {
+ margin: 0;
+ padding: 6px 8px;
+}
+#fedora-project-todo li.odd {
+ background-color: #ecf0f7;
+}
+#fedora-project-todo li.even {
+ background-color: #f7f9fc;
+}
+
+#fedora-list-packages {
+ border-collapse: collapse;
+ border: 1px solid #cad4e9;
+ border-radius: 2.5px;
+ -moz-border-radius: 2.5px;
+}
+#fedora-list-packages tr.odd td {
+ background-color: #ecf0f7;
+}
+#fedora-list-packages tr.even td {
+ background-color: #f7f9fc;
+}
+#fedora-list-packages th,
+#fedora-list-packages td {
+ margin: 0;
+ padding: 6px 8px;
+}
+#fedora-list-packages td.column-2 {
+ text-align: center;
+}
+#fedora-list-packages th {
+ background-color: #cad4e9;
+ color: #000;
+ font-weight: bold;
+ text-align: center;
+
+}
+
+/* pre.screen is for DocBook HTML output */
+code.screen, pre.screen {
+ font-family: monospace;
+ font-size: 1em;
+ display: block;
+ padding: 10px;
+ border: 1px solid #bbb;
+ background-color: #eee;
+ color: #000;
+ overflow: auto;
+ border-radius: 2.5px;
+ -moz-border-radius: 2.5px;
+ margin: 0.5em 2em;
+}
+#fedora-project code.screen {
+ margin: 0;
+}
+
+code.command, code.filename {
+ font-family: monospace;
+}
+
+code.citetitle {
+ font-family: sans-serif;
+ font-style: italic;
+}
+
+strong.application {
+ font-weight: bold;
+}
+.indent {
+ margin: 0 2em;
+}
+.fedora-docs-nav {
+ text-align: center;
+ position: relative;
+ padding: 1em;
+ margin-top: 2em;
+ border-top: 1px solid #ccc;
+}
+.fedora-docs-nav a {
+ padding: 0 1em;
+}
+.fedora-docs-nav-left {
+ position: absolute;
+ left: 0;
+}
+.fedora-docs-nav-right {
+ position: absolute;
+ right: 0;
+}
+
+.fedoraEntry {
+
+padding-left: 10px;
+padding-right: 10px;
+padding-bottom: 10px;
+padding-top: 10px;
+border-bottom: 1px solid #ccc;
+}
+
+.fedoraStory {
+}
+
+.fedoraFace {
+ margin: 0 0 10px 10px;
+ float: right;
+}
+
+.fedoraTitle {
+ font-size: 1.25em;
+}
diff --git a/scripts/planet/people/css/docbook.css b/scripts/planet/people/css/docbook.css
new file mode 100644
index 0000000..3181bce
--- /dev/null
+++ b/scripts/planet/people/css/docbook.css
@@ -0,0 +1,71 @@
+#fedora-content li p {
+ margin: 0.2em;
+}
+
+#fedora-content div.table table {
+ width: 95%;
+ background-color: #DCDCDC;
+ color: #000000;
+ border-spacing: 0;
+}
+
+#fedora-content div.table table th {
+ border: 1px solid #A9A9A9;
+ background-color: #A9A9A9;
+ color: #000000;
+}
+
+#fedora-content div.table table td {
+ border: 1px solid #A9A9A9;
+ background-color: #DCDCDC;
+ color: #000000;
+ padding: 0.5em;
+ margin-bottom: 0.5em;
+ margin-top: 2px;
+
+}
+
+div.note table, div.tip table, div.important table, div.caution table, div.warning table {
+ width: 95%;
+ border: 2px solid #B0C4DE;
+ background-color: #F0F8FF;
+ color: #000000;
+ /* padding inside table area */
+ padding: 0.5em;
+ margin-bottom: 0.5em;
+ margin-top: 0.5em;
+}
+
+/* "Just the FAQs, ma'm." */
+.qandaset table {
+ border-collapse: collapse;
+}
+.qandaset {
+}
+.qandaset tr.question {
+}
+.qandaset tr.question td {
+ font-weight: bold;
+ padding: 0 0.5em;
+ margin: 0;
+}
+.qandaset tr.answer td {
+ padding: 0 0.5em 1.5em;
+ margin: 0;
+}
+.qandaset tr.question td, .qandaset tr.answer td {
+ vertical-align: top;
+}
+.qandaset strong {
+ text-align: right;
+}
+
+.article .table table {
+ border: 0;
+ margin: 0 auto;
+ border-collapse: collapse;
+}
+.article .table table th {
+ padding: 5px;
+ text-align: center;
+}
diff --git a/scripts/planet/people/css/layout.css b/scripts/planet/people/css/layout.css
new file mode 100644
index 0000000..6ceba83
--- /dev/null
+++ b/scripts/planet/people/css/layout.css
@@ -0,0 +1,362 @@
+ body {
+ font-size: 0.9em;
+ font-family: bitstream vera sans,sans-serif;
+ margin: 0;
+ padding: 0;
+ /* (The background color is specified elsewhere, so do a global replacement if it ever changes) */
+ background-color: #d9d9d9;
+}
+
+a:link {
+ color: #900;
+}
+a:visited {
+ color: #48468f;
+}
+a:hover {
+ color: #f20;
+}
+a[name] {
+ color: inherit;
+ text-decoration: inherit;
+}
+
+#fedora-header {
+ background-color: #fff;
+ height: 62px;
+}
+#fedora-header img {
+ border: 0;
+ vertical-align: middle;
+}
+#fedora-header-logo {
+ /* position is offset by the header padding amount */
+ position: absolute;
+ left: 26px;
+ top: 13px;
+ z-index: 3;
+}
+#fedora-header-logo img {
+ width: 110px;
+ height: 40;
+}
+#fedora-header-items {
+ /* position is offset by the header padding amount */
+ position: absolute;
+ right: 10px;
+ top: 15px;
+ text-align: right;
+ display: inline;
+}
+#fedora-header-items a {
+ color: #000;
+ text-decoration: none;
+ padding: 7pt;
+ font-size: 0.8em;
+}
+#fedora-header-items a:hover, #fedora-header-search-button:hover {
+ color: #f20;
+ cursor: pointer;
+}
+#fedora-header-items img {
+ margin-right: 1px;
+ width: 36px;
+ height: 36px;
+}
+#fedora-header-search {
+ height: 25px;
+}
+#fedora-header-search-entry {
+ vertical-align: top;
+ margin: 0.65em 4px 0 10px;
+ padding: 2px 4px;
+ background-color: #f5f5f5;
+ border: 1px solid #999;
+ font-size: 0.8em !important;
+}
+#fedora-header-search-entry:focus {
+ background-color: #fff;
+ border: 1px solid #555;
+}
+#fedora-header-search-button {
+ font-size: 0.8em !important;
+ vertical-align: top;
+ margin-top: 0.2em;
+ border: 0;
+ padding: 7px;
+ background: #fff url('../images/header-search.png') no-repeat left;
+ padding-left: 21px;
+}
+#fedora-header-items form {
+ float: right;
+}
+#fedora-header-items input {
+ font-size: 0.85em;
+}
+#fedora-nav {
+ margin: 0;
+ padding: 0;
+ background-color: #22437f;
+ font-size: 0;
+ height: 5px;
+ border-top: 1px solid #000;
+ border-bottom: 1px solid #f5f5f5;
+}
+#fedora-nav ul {
+ margin: 0;
+ padding: 0;
+}
+#fedora-nav li {
+ display: inline;
+ list-style: none;
+ padding: 0 5pt;
+}
+#fedora-nav li + li {
+ padding-left: 8pt;
+ border-left: 1px solid #99a5bf;
+}
+#fedora-nav a {
+ color: #c5ccdb;
+ text-decoration: none;
+}
+#fedora-nav a:hover {
+ color: #fff;
+}
+
+#fedora-side-left {
+ position: absolute;
+ z-index: 2;
+ width: 11em;
+ /* Space down for the approx line height (fonts) */
+ left: 12px;
+}
+#fedora-side-right {
+ position: absolute;
+ z-index: 1;
+ width: 20em;
+ right: 12px;
+ padding-top: 3px;
+ }
+#fedora-side-left, #fedora-side-right {
+ top: 2px;
+ /* add to the top margin to compensate for the fixed sizes */
+ margin-top: 75px;
+ color: #555;
+ font-size: 0.9em;
+}
+#fedora-side-right ul {
+ list-style: square inside;
+ padding: 0;
+ margin: 0;
+}
+
+/* Left-side naviagation */
+#fedora-side-nav-label {
+ display: none;
+}
+#fedora-side-nav {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ border: 1px solid #5976b2;
+ border-top: 0;
+ background-color: #22437f;
+}
+#fedora-side-nav li {
+ margin: 0;
+ padding: 0;
+ border-top: 1px solid #5976b2;
+ /* IE/Win gets upset if there is no bottom border... Go figure. */
+ border-bottom: 1px solid #22437f;
+}
+#fedora-side-nav a {
+ margin: 0;
+ color: #c5ccdb;
+ display: block;
+ text-decoration: none;
+ padding: 4px 6px;
+}
+#fedora-side-nav a:hover {
+ background-color: #34548f;
+ color: #fff;
+}
+#fedora-side-nav ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+#fedora-side-nav ul li {
+ border-top: 1px solid #34548e;
+ background-color: #34548e;
+ /* IE/Win gets upset if there is no bottom border... Go figure. */
+ border-bottom: 1px solid #34548e;
+}
+#fedora-side-nav ul li:hover {
+ border-bottom: 1px solid #34548f;
+}
+#fedora-side-nav ul li a {
+ padding-left: 12px;
+ color: #a7b2c9;
+}
+#fedora-side-nav ul li a:hover {
+ background-color: #46659e;
+}
+#fedora-side-nav ul ul li a {
+ padding-left: 18px;
+}
+#fedora-side-nav strong a {
+ font-weight: normal;
+ color: #fff !important;
+ background-color: #10203b;
+}
+#fedora-side-nav strong a:hover {
+ background-color: #172e56 !important;
+}
+
+/* content containers */
+#fedora-middle-one, #fedora-middle-two, #fedora-middle-three {
+ font-size: 0.9em;
+ /* position: relative; */ /* relative to utilize z-index */
+ width: auto;
+ min-width: 120px;
+ margin: 10px;
+ z-index: 3; /* content can overlap when the browser is narrow */
+}
+/*
+#fedora-middle-two, #fedora-middle-three {
+ margin-left: 11em;
+ padding-left: 24px;
+}
+*/
+#fedora-middle-three {
+ margin-right: 20em;
+ padding-right: 24px;
+}
+
+#fedora-content {
+ padding: 24px;
+ border: 1px solid #aaa;
+ background-color: #fff;
+}
+
+#fedora-content > .fedora-corner-bottom { top: 0 }
+
+.fedora-corner-tl, .fedora-corner-tr, .fedora-corner-bl, .fedora-corner-br {
+ background-color: #d9d9d9;
+ position: relative;
+ width: 19px;
+ height: 19px;
+ /* The following line is to render PNGs with alpha transparency within IE/Win, using DirectX */
+ /* Work-around for IE6/Mac borkage (Part 1) */
+ display: none;
+}
+
+.fedora-corner-tl, .fedora-corner-bl { float: left; left: 0px; }
+.fedora-corner-tr, .fedora-corner-br { float: right; right: 0px; }
+.fedora-corner-tl, .fedora-corner-tr { top: 0px; }
+.fedora-corner-bl, .fedora-corner-br { bottom: 0px; margin-top: -19px; }
+
+
+html>body .fedora-corner-tl { background: #d9d9d9 url("../images/corner-tl.png") no-repeat left top; }
+html>body .fedora-corner-tr { background: #d9d9d9 url("../images/corner-tr.png") no-repeat right top; }
+html>body .fedora-corner-bl { background: #d9d9d9 url("../images/corner-bl.png") no-repeat left bottom; }
+html>body .fedora-corner-br { background: #d9d9d9 url("../images/corner-br.png") no-repeat right bottom; }
+
+.fedora-corner-tl { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-tl.png',sizingMethod='scale'); }
+.fedora-corner-tr { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-tr.png',sizingMethod='scale'); }
+.fedora-corner-br { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-br.png',sizingMethod='scale'); }
+.fedora-corner-bl { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-bl.png',sizingMethod='scale'); }
+
+/* \*/
+.fedora-corner-tl, .fedora-corner-tr, .fedora-corner-bl, .fedora-corner-br {
+ /* Restore the view for everything but IE6/Mac (part 2 of the "IE/Mac fix") */
+ display: block;
+}
+/* */
+
+html*.fedora-corner-bl, html*.fedora-corner-br {
+ /* Compensate for Opera's inability to position some things correctly (Part 2) */
+ top: 0px;
+}
+
+.content { margin: 0 1em }
+
+#fedora-sidelist {
+ position: relative;
+ bottom: 3px;
+ margin: 0;
+ padding: 3px !important;
+ border: 1px solid #bbb;
+ background-color: #ccc;
+ border-radius: 2.5px;
+ -moz-border-radius: 2.5px;
+}
+#fedora-sidelist strong a {
+ font-weight: normal;
+ background-color: #555;
+ color: #fff;
+}
+#fedora-sidelist strong a:hover {
+ background-color: #333;
+ color: #fff;
+}
+#fedora-sidelist li {
+ list-style-position: outside;
+ font-size: 0.9em;
+ list-style: none;
+ border: 1px solid #ccc;
+ border-width: 1px 0;
+ padding: 0;
+ list-style: none;
+}
+#fedora-sidelist li a {
+ text-decoration: none;
+ display: block;
+ padding: 6px 8px;
+ border-radius: 2.5px;
+ -moz-border-radius: 2.5px;
+}
+#fedora-sidelist li a:hover {
+ background-color: #999;
+ color: #eee;
+}
+
+#fedora-footer {
+ font-size: 0.75em;
+ text-align: center;
+ color: #777;
+ margin-bottom: 2em;
+}
+#fedora-printable {
+ text-align: center;
+ margin: 1em 0;
+ font-size: 0.85em;
+}
+#fedora-printable a {
+ text-decoration: none;
+ padding: 5px 0;
+ padding-left: 18px;
+ background: transparent url("../images/printable.png") no-repeat left;
+}
+#fedora-printable a:hover {
+ text-decoration: underline;
+}
+
+
+.left {
+ margin: 10px;
+ padding: 0px;
+ float: left;
+}
+
+.right {
+ margin: 10px;
+ padding: 0px;
+ float: right;
+}
+
+
+.blosxomStory p {
+ margin-top: 7px;
+ margin-bottom: 7px;
+} \ No newline at end of file
diff --git a/scripts/planet/people/css/people-style.css b/scripts/planet/people/css/people-style.css
new file mode 100644
index 0000000..9f95fc7
--- /dev/null
+++ b/scripts/planet/people/css/people-style.css
@@ -0,0 +1,169 @@
+html, body {
+ border: 0;
+ padding: 0;
+ margin: 0;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ min-width: 912px;
+ background-color: #eeeff1;
+}
+#header {
+ margin-bottom: 23px; /* sync this value with margin-top of #content */
+ background: #2963a5 url("../images/people-header.png") repeat-y 20% 0%;
+ height: 74px;
+}
+#header .logo {
+ position: absolute;
+ display: block;
+ left: 5px;
+ top: 3px;
+}
+#content {
+ margin-top: -23px; /* sync this value with margin-top of #content */
+ margin-right: 210px;
+ background-color: white;
+}
+.blog-entries-daily {
+ background: white url("../images/people-entry-group-date-header.png") no-repeat top right;
+ margin-right: 25px;
+ position: relative;
+ padding-bottom: 12px;
+ margin-bottom: 30px;
+}
+.blog-date {
+ text-align: center;
+ background: transparent url("../images/people-entry-group-date-background.png") repeat-y top right;
+ color: white;
+ margin-top: 11px;
+ position: absolute;
+ right: 0;
+ font-size: 0.9em;
+ width: 229px;
+ height: 100%;
+}
+.blog-entry {
+ clear: both;
+ margin: 11px 0;
+ position: relative;
+ top: 40px;
+}
+.blog-entry-author {
+ float: left;
+ margin-top: 30px;
+ padding: 0 20px 30px 0;
+ width: 125px;
+ font-size: 0.8em;
+ text-align: center;
+}
+.blog-entry-author :link, .blog-entry-author :visited {
+ font-size: 0.9em;
+}
+.blog-entry-author .head {
+ display: block;
+ margin: 1ex auto;
+ border: 0;
+}
+.blog-entry-post {
+ margin: 1em 0 1em 145px;
+ border-radius: 20px;
+ background: transparent url("../images/people-entry-center-left.png") repeat-y center left;
+}
+.blog-entry-header {
+ background: transparent url("../images/people-entry-top-center.png") repeat-x top center;
+ height: 50px;
+}
+.blog-entry-title {
+ font-size: larger;
+ background: transparent url("../images/people-entry-top-left.png") no-repeat top left;
+ height: 50px;
+}
+.blog-entry-title a {
+ padding: 1em 0;
+ display: block;
+ margin-left: 25px;
+ background: transparent url("../images/people-entry-top-right.png") no-repeat top right;
+ height: 50px;
+}
+.blog-entry-content {
+ padding-top:10px;
+ padding-right: 3em;
+ margin-left: 25px;
+ text-align: justify;
+ font-size: 0.8em;
+ font-weight: normal;
+ background: transparent url("../images/people-entry-center-right.png") repeat-y center right;
+ padding-bottom:10px;
+ position: relative;
+ overflow: auto;
+}
+.blog-entry-content img {
+ max-width: 575px;
+ margin-left: 2ex;
+}
+.blog-entry-footer {
+ background: transparent url("../images/people-entry-bottom-center.png") repeat-x bottom center;
+}
+.blog-entry-timestamp {
+ font-size: x-small;
+ text-align: right;
+ color: #b3b3b3;
+ background: transparent url("../images/people-entry-bottom-left.png") no-repeat bottom left;
+}
+.blog-entry-timestamp a {
+ display: block;
+ color: #b3b3b3;
+ text-decoration: none;
+ height: 35px;
+ background: transparent url("../images/people-entry-bottom-right.png") no-repeat bottom right;
+ padding: 1em 5em 0 0;
+}
+#disclaimer {
+ font-size: x-small;
+ color: #b3b3b3;
+ text-align: center;
+ padding: 1em;
+}
+#sidebar {
+ color: #555555;
+ background-color: #eeeff1;
+ font-size: 0.8em;
+ position: absolute;
+ width: 210px;
+ min-width: 210px;
+ max-width: 210px;
+ top: 0;
+ right: 0;
+ margin: 0;
+ border-left: 2px solid white;
+ height: 100%;
+}
+#sidebar #sidebar-header {
+ display: block;
+ background-color: #2963a5;
+}
+#sidebar-inner {
+ padding: 10px;
+}
+#sidebar h2 {
+ font-size: 1.4em;
+ font-weight: normal;
+ border-bottom: 1px solid #cfd4d9;
+ margin: 5px 0px;
+ padding: 0px 5px;
+}
+
+#sidebar ul {
+ list-style: square inside;
+ padding: 0;
+ margin: 0 0 1em 0;
+ color: #22538b;
+}
+#spacer {
+ height: 1em;
+}
+:link {
+ color: #337ACC;
+}
+:visited {
+ color: #6A3B18;
+}
+
diff --git a/scripts/planet/people/css/print.css b/scripts/planet/people/css/print.css
new file mode 100644
index 0000000..0be9bea
--- /dev/null
+++ b/scripts/planet/people/css/print.css
@@ -0,0 +1,86 @@
+body {
+ background: white;
+ color: black;
+ font-size: 10pt;
+ font-family: sans-serif;
+ line-height: 1.25em;
+}
+
+div {
+ border: 1px solid white;
+}
+li {
+ border: 1px solid white;
+ margin: 0;
+}
+li p {
+ display: inline;
+}
+
+h1 {
+ font-size: 16pt;
+}
+h2 {
+ font-size: 12pt;
+}
+h3,h4,h5 {
+ font-size: 10pt;
+}
+img {
+ border: 1px solid white;
+ background-color: white;
+}
+hr {
+ border: 1px dotted gray;
+ border-width: 0 0 1 0;
+ margin: 1em;
+}
+table {
+ border-collapse: collapse;
+}
+td,th {
+ border: 1px solid gray;
+ padding: 8pt;
+ font-size: 10pt;
+}
+th {
+ font-weight: bold;
+}
+#fedora-header, #fedora-footer {
+ text-align: center;
+}
+#fedora-header-items, #fedora-side-left, #fedora-side-right {
+ display: none;
+}
+
+#fedora-project-download dt {
+ font-weight: bold;
+ margin-top: 8pt;
+ margin-left: 5pt;
+}
+#fedora-project-download dd {
+ padding: 0;
+ margin: 10px 20px 0;
+}
+
+code.screen, pre.screen {
+ font-family: monospace;
+ font-size: 1em;
+ display: block;
+ padding: 5pt;
+ border: 1px dashed gray;
+ margin: 0.5em 2em;
+}
+#fedora-project code.screen {
+ margin: 0;
+}
+
+/*
+#fedora-content a:link:after, #fedora-content a:visited:after {
+ content: " (" attr(href) ") ";
+ font-size: 80%;
+}
+*/
+.navheader table, .navheader table td {
+ border: 0 !important;
+}
diff --git a/scripts/planet/people/images/blue.png b/scripts/planet/people/images/blue.png
new file mode 100644
index 0000000..6987cab
--- /dev/null
+++ b/scripts/planet/people/images/blue.png
Binary files differ
diff --git a/scripts/planet/people/images/corner-bl.png b/scripts/planet/people/images/corner-bl.png
new file mode 100644
index 0000000..58d269c
--- /dev/null
+++ b/scripts/planet/people/images/corner-bl.png
Binary files differ
diff --git a/scripts/planet/people/images/corner-br.png b/scripts/planet/people/images/corner-br.png
new file mode 100644
index 0000000..c03dd92
--- /dev/null
+++ b/scripts/planet/people/images/corner-br.png
Binary files differ
diff --git a/scripts/planet/people/images/corner-tl.png b/scripts/planet/people/images/corner-tl.png
new file mode 100644
index 0000000..08ab7a3
--- /dev/null
+++ b/scripts/planet/people/images/corner-tl.png
Binary files differ
diff --git a/scripts/planet/people/images/corner-tr.png b/scripts/planet/people/images/corner-tr.png
new file mode 100644
index 0000000..b279db2
--- /dev/null
+++ b/scripts/planet/people/images/corner-tr.png
Binary files differ
diff --git a/scripts/planet/people/images/favicon.ico b/scripts/planet/people/images/favicon.ico
new file mode 100644
index 0000000..d1ae2d2
--- /dev/null
+++ b/scripts/planet/people/images/favicon.ico
Binary files differ
diff --git a/scripts/planet/people/images/header-download.png b/scripts/planet/people/images/header-download.png
new file mode 100644
index 0000000..a1cf3e5
--- /dev/null
+++ b/scripts/planet/people/images/header-download.png
Binary files differ
diff --git a/scripts/planet/people/images/header-faq.png b/scripts/planet/people/images/header-faq.png
new file mode 100644
index 0000000..1e7c3c9
--- /dev/null
+++ b/scripts/planet/people/images/header-faq.png
Binary files differ
diff --git a/scripts/planet/people/images/header-fedora_logo.png b/scripts/planet/people/images/header-fedora_logo.png
new file mode 100644
index 0000000..552f201
--- /dev/null
+++ b/scripts/planet/people/images/header-fedora_logo.png
Binary files differ
diff --git a/scripts/planet/people/images/header-projects.png b/scripts/planet/people/images/header-projects.png
new file mode 100644
index 0000000..aad307e
--- /dev/null
+++ b/scripts/planet/people/images/header-projects.png
Binary files differ
diff --git a/scripts/planet/people/images/heads/default.png b/scripts/planet/people/images/heads/default.png
new file mode 100644
index 0000000..407185b
--- /dev/null
+++ b/scripts/planet/people/images/heads/default.png
Binary files differ
diff --git a/scripts/planet/people/images/heads/fdp.png b/scripts/planet/people/images/heads/fdp.png
new file mode 100644
index 0000000..5d00abe
--- /dev/null
+++ b/scripts/planet/people/images/heads/fdp.png
Binary files differ
diff --git a/scripts/planet/people/images/heads/map_brazil_fedora_small.png b/scripts/planet/people/images/heads/map_brazil_fedora_small.png
new file mode 100644
index 0000000..7362552
--- /dev/null
+++ b/scripts/planet/people/images/heads/map_brazil_fedora_small.png
Binary files differ
diff --git a/scripts/planet/people/images/intro-computer.png b/scripts/planet/people/images/intro-computer.png
new file mode 100644
index 0000000..9298aec
--- /dev/null
+++ b/scripts/planet/people/images/intro-computer.png
Binary files differ
diff --git a/scripts/planet/people/images/intro-download.png b/scripts/planet/people/images/intro-download.png
new file mode 100644
index 0000000..c77db0b
--- /dev/null
+++ b/scripts/planet/people/images/intro-download.png
Binary files differ
diff --git a/scripts/planet/people/images/logo-spacer.png b/scripts/planet/people/images/logo-spacer.png
new file mode 100644
index 0000000..a104f55
--- /dev/null
+++ b/scripts/planet/people/images/logo-spacer.png
Binary files differ
diff --git a/scripts/planet/people/images/logo.png b/scripts/planet/people/images/logo.png
new file mode 100644
index 0000000..f277bf9
--- /dev/null
+++ b/scripts/planet/people/images/logo.png
Binary files differ
diff --git a/scripts/planet/people/images/mainBack.png b/scripts/planet/people/images/mainBack.png
new file mode 100644
index 0000000..1372780
--- /dev/null
+++ b/scripts/planet/people/images/mainBack.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-bottom-center.png b/scripts/planet/people/images/people-entry-bottom-center.png
new file mode 100644
index 0000000..8d8ee6a
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-bottom-center.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-bottom-left.png b/scripts/planet/people/images/people-entry-bottom-left.png
new file mode 100644
index 0000000..1aadc48
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-bottom-left.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-bottom-right.png b/scripts/planet/people/images/people-entry-bottom-right.png
new file mode 100644
index 0000000..047c908
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-bottom-right.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-center-left.png b/scripts/planet/people/images/people-entry-center-left.png
new file mode 100644
index 0000000..9da8d17
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-center-left.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-center-right.png b/scripts/planet/people/images/people-entry-center-right.png
new file mode 100644
index 0000000..379c8c0
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-center-right.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-group-date-background.png b/scripts/planet/people/images/people-entry-group-date-background.png
new file mode 100644
index 0000000..f029a67
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-group-date-background.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-group-date-header.png b/scripts/planet/people/images/people-entry-group-date-header.png
new file mode 100644
index 0000000..47ee607
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-group-date-header.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-top-center.png b/scripts/planet/people/images/people-entry-top-center.png
new file mode 100644
index 0000000..6b3b33a
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-top-center.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-top-left.png b/scripts/planet/people/images/people-entry-top-left.png
new file mode 100644
index 0000000..007a1e2
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-top-left.png
Binary files differ
diff --git a/scripts/planet/people/images/people-entry-top-right.png b/scripts/planet/people/images/people-entry-top-right.png
new file mode 100644
index 0000000..bfb41fb
--- /dev/null
+++ b/scripts/planet/people/images/people-entry-top-right.png
Binary files differ
diff --git a/scripts/planet/people/images/people-header.png b/scripts/planet/people/images/people-header.png
new file mode 100644
index 0000000..d1fcbbc
--- /dev/null
+++ b/scripts/planet/people/images/people-header.png
Binary files differ
diff --git a/scripts/planet/people/images/people-logo.png b/scripts/planet/people/images/people-logo.png
new file mode 100644
index 0000000..6404e08
--- /dev/null
+++ b/scripts/planet/people/images/people-logo.png
Binary files differ
diff --git a/scripts/planet/people/images/people-logo.png.bak b/scripts/planet/people/images/people-logo.png.bak
new file mode 100644
index 0000000..1543ebe
--- /dev/null
+++ b/scripts/planet/people/images/people-logo.png.bak
Binary files differ
diff --git a/scripts/planet/people/images/people-sidebar-header.png b/scripts/planet/people/images/people-sidebar-header.png
new file mode 100644
index 0000000..c820256
--- /dev/null
+++ b/scripts/planet/people/images/people-sidebar-header.png
Binary files differ
diff --git a/scripts/planet/people/images/planet.png b/scripts/planet/people/images/planet.png
new file mode 100644
index 0000000..9606a0c
--- /dev/null
+++ b/scripts/planet/people/images/planet.png
Binary files differ
diff --git a/scripts/planet/people/templates/atom.xml.tmpl b/scripts/planet/people/templates/atom.xml.tmpl
new file mode 100644
index 0000000..578f075
--- /dev/null
+++ b/scripts/planet/people/templates/atom.xml.tmpl
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title><TMPL_VAR name></title>
+ <link rel="self" href="<TMPL_VAR feed ESCAPE="HTML">"/>
+ <link href="<TMPL_VAR link ESCAPE="HTML">"/>
+ <id><TMPL_VAR feed ESCAPE="HTML"></id>
+ <updated><TMPL_VAR date_iso></updated>
+ <generator uri="http://planet.fedoraproject.org/"><TMPL_VAR generator ESCAPE="HTML"></generator>
+
+<TMPL_LOOP Items>
+ <entry<TMPL_IF channel_language> xml:lang="<TMPL_VAR channel_language>"</TMPL_IF>>
+ <title type="html"<TMPL_IF title_language> xml:lang="<TMPL_VAR title_language>"</TMPL_IF>><TMPL_VAR title ESCAPE="HTML"></title>
+ <link href="<TMPL_VAR link ESCAPE="HTML">"/>
+ <id><TMPL_VAR id ESCAPE="HTML"></id>
+ <updated><TMPL_VAR date_iso></updated>
+ <content type="html"<TMPL_IF content_language> xml:lang="<TMPL_VAR content_language>"</TMPL_IF>>
+ <TMPL_IF channel_face>
+ &lt;img src=&quot;<TMPL_VAR channel_face>&quot; <TMPL_IF channel_facewidth>width=&quot;<TMPL_VAR channel_facewidth>&quot; </TMPL_IF><TMPL_IF channel_faceheight>height=&quot;<TMPL_VAR channel_faceheight>&quot; </TMPL_IF> alt=&quot;&quot; style=&quot;float: right;&quot;&gt;
+ </TMPL_IF> <TMPL_VAR content ESCAPE="HTML"></content>
+ <author>
+<TMPL_IF author_name>
+ <name><TMPL_VAR author_name ESCAPE="HTML"></name>
+<TMPL_IF author_email>
+ <email><TMPL_VAR author_email ESCAPE="HTML"></email>
+</TMPL_IF author_email>
+<TMPL_ELSE>
+<TMPL_IF channel_author_name>
+ <name><TMPL_VAR channel_author_name ESCAPE="HTML"></name>
+<TMPL_IF channel_author_email>
+ <email><TMPL_VAR channel_author_email ESCAPE="HTML"></email>
+</TMPL_IF channel_author_email>
+<TMPL_ELSE>
+ <name><TMPL_VAR channel_name ESCAPE="HTML"></name>
+</TMPL_IF>
+</TMPL_IF>
+ <uri><TMPL_VAR channel_link ESCAPE="HTML"></uri>
+ </author>
+ <source>
+<TMPL_IF channel_title>
+ <title type="html"><TMPL_VAR channel_title ESCAPE="HTML"></title>
+<TMPL_ELSE>
+ <title type="html"><TMPL_VAR channel_name ESCAPE="HTML"></title>
+</TMPL_IF>
+<TMPL_IF channel_subtitle>
+ <subtitle type="html"><TMPL_VAR channel_subtitle ESCAPE="HTML"></subtitle>
+</TMPL_IF>
+ <link rel="self" href="<TMPL_VAR channel_url ESCAPE="HTML">"/>
+<TMPL_IF channel_id>
+ <id><TMPL_VAR channel_id ESCAPE="HTML"></id>
+<TMPL_ELSE>
+ <id><TMPL_VAR channel_url ESCAPE="HTML"></id>
+</TMPL_IF>
+<TMPL_IF channel_updated_iso>
+ <updated><TMPL_VAR channel_updated_iso></updated>
+</TMPL_IF>
+<TMPL_IF channel_rights>
+ <rights type="html"><TMPL_VAR channel_rights ESCAPE="HTML"></rights>
+</TMPL_IF>
+ </source>
+ </entry>
+
+</TMPL_LOOP>
+</feed>
diff --git a/scripts/planet/people/templates/foafroll.xml.tmpl b/scripts/planet/people/templates/foafroll.xml.tmpl
new file mode 100644
index 0000000..b2cecf3
--- /dev/null
+++ b/scripts/planet/people/templates/foafroll.xml.tmpl
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+ xmlns:foaf="http://xmlns.com/foaf/0.1/"
+ xmlns:rss="http://purl.org/rss/1.0/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+>
+<foaf:Group>
+ <foaf:name><TMPL_VAR name></foaf:name>
+ <foaf:homepage><TMPL_VAR link></foaf:homepage>
+ <rdfs:seeAlso rdf:resource="<TMPL_VAR uri ESCAPE="HTML">" />
+
+<TMPL_LOOP Channels>
+ <foaf:member>
+ <foaf:Agent>
+ <foaf:name><TMPL_VAR name></foaf:name>
+ <foaf:weblog>
+ <foaf:Document rdf:about="<TMPL_VAR link ESCAPE="HTML">">
+ <dc:title><TMPL_VAR title></dc:title>
+ <rdfs:seeAlso>
+ <rss:channel rdf:about="<TMPL_VAR uri ESCAPE="HTML">" />
+ </rdfs:seeAlso>
+ </foaf:Document>
+ </foaf:weblog>
+ </foaf:Agent>
+ </foaf:member>
+</TMPL_LOOP>
+
+</foaf:Group>
+</rdf:RDF>
diff --git a/scripts/planet/people/templates/heads.html.tmpl b/scripts/planet/people/templates/heads.html.tmpl
new file mode 100644
index 0000000..1b3c377
--- /dev/null
+++ b/scripts/planet/people/templates/heads.html.tmpl
@@ -0,0 +1,111 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>Planet Fedora</title>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
+ <meta http-equiv="Content-Type" content="text/html">
+ <meta name="MSSmartTagsPreventParsing" content="TRUE">
+ <link rel="stylesheet" type="text/css" media="print" href="http://planet.fedoraproject.org/css/print.css">
+ <link rel="stylesheet" type="text/css" media="all" href="http://fedoraproject.org/static/css/fedora.css">
+ <link rel="stylesheet" type="text/css" media="all" href="/css/fedora_planet.css">
+ <link rel="shortcut icon" href="/images/favicon.ico">
+ <link rel="icon" href="/images/favicon.ico">
+ <link rel="alternate" type="application/xml" title="RSS" href="http://planet.fedoraproject.org/rss20.xml">
+ <link rel="alternate" type="application/atom+xml" title="Fedora People Atom 1.0" href="http://planet.fedoraproject.org/atom.xml">
+ <style type="text/css">
+ #content ul {
+ overflow: auto;
+ list-style: none;
+ }
+ #content ul li {
+ height: 160px;
+ float: left;
+ text-align: center;
+ margin: 1em;
+ }
+ #content ul li img {
+ display: block;
+ margin: 0 auto;
+ }
+ </style>
+</head>
+<body class="home">
+ <div id="wrapper">
+
+ <div id="head">
+ <h1><a href="http://fedoraproject.org/">Fedora</a></h1>
+ </div>
+
+ <div id="sidebar">
+ <div id="planet_nav">
+
+ <h2>Feeds</h2>
+ <a href="rss10.xml">RSS 1.0</a><br>
+ <a href="rss20.xml">RSS 2.0</a><br>
+ <a href="atom.xml">Atom 1.0</a><br>
+ <a href="foafroll.xml">FOAF blogroll</a><br>
+
+ <h2>Links</h2>
+ <ul>
+ <li><a href="http://fedoraproject.org">Fedora Home</a></li>
+ <li><a href="http://fedoranews.org">Fedora News</a></li>
+ <li><a href="http://planet.fedoraproject.org/heads/">Hackergotchi Heads</a></li>
+ <li><a href="http://fedoraproject.org/infofeed/">Fedora Info</a></li>
+ </ul>
+
+ <h2>Other Aggregates</h2>
+ <ul>
+ <li><a href="http://advogato.org/recentlog.html?thresh=4">Advogato</a> <a href="http://advogato.org/">(main)</a></li>
+ <li><a href="http://www.planetapache.org/">Planet Apache</a></li>
+ <li><a href="http://planet.arslinux.com/">Planet Ars Linux</a></li>
+ <li><a href="http://planet.debian.net/">Planet Debian</a></li>
+
+ <li><a href="http://planet.gnome.org/">Planet Gnome</a></li>
+ <li><a href="http://www.kdedevelopers.org/blog">KDE Developers</a></li>
+ <li><a href="http://planet.freedesktop.org">Freedesktop.org</a></li>
+ <li><a href="http://www.planetmysql.org/">Planet MySQL</a></li>
+ </ul>
+
+ <h2>People</h2>
+ <ul id="people_feeds">
+
+ <TMPL_LOOP Channels>
+ <li><a href="<TMPL_VAR url ESCAPE="HTML">"><img src="/images/rss.png" alt="RSS"></a><a href="<TMPL_VAR link>" title="<TMPL_VAR title>"><TMPL_VAR name></a></li>
+ </TMPL_LOOP>
+ </ul>
+
+ <h2>Add your blog</h2>
+ <ul><li><a href="http://fedoraproject.org/wiki/Planet_HowTo">Add your blog</a></li></ul>
+ </div>
+ </div>
+
+
+ <div id="content">
+ <div class="spacer">
+ </div> <!-- :-} -->
+<ul>
+<TMPL_LOOP Channels>
+<!--<li class="head"><TMPL_IF link><a href="<TMPL_VAR link>" title="<TMPL_VAR title>"></TMPL_IF><img src="<TMPL_VAR face>" <TMPL_IF facewidth>width="<TMPL_VAR facewidth>" </TMPL_IF><TMPL_IF faceheight>height="<TMPL_VAR faceheight>" </TMPL_IF>alt="" /><TMPL_VAR name><TMPL_IF link></a></TMPL_IF></li>-->
+<li class="head"><TMPL_IF link><a href="<TMPL_VAR link>" title="<TMPL_VAR title>"></TMPL_IF><img src="<TMPL_VAR face>" /><TMPL_VAR name><TMPL_IF link></a></TMPL_IF></li>
+</TMPL_LOOP>
+</ul>
+
+ </div>
+</div>
+ <div id="bottom">
+ <div id="footer">
+ <p class="copy">Copyright &copy; 2008 Red Hat, Inc. and others. All Rights Reserved. Please send any comments or corrections to the <a href="mailto:webmaster@fedoraproject.org">websites team</a>.</p>
+ <p class="disclaimer">The Fedora Project is maintained and driven by the community and sponsored by Red Hat. This is a community maintained site. Red Hat is not responsible for content.</p>
+ <p class="disclaimer">Your words are your own, duh. Nothing here represents Fedora™, Red Hat, Inc, or pretty much anything else. If you think it does then you are badly misled</p>
+ <ul>
+ <li class="first"><a href="/en/sponsors">Sponsors</a></li>
+ <li><a href="http://fedoraproject.org/wiki/Legal">Legal</a></li>
+ <li><a href="http://fedoraproject.org/wiki/Legal/TrademarkGuidelines">Trademark Guidelines</a></li>
+ </ul>
+ </div>
+ </div>
+
+
+</body>
+</html>
diff --git a/scripts/planet/people/templates/index.html.tmpl b/scripts/planet/people/templates/index.html.tmpl
new file mode 100644
index 0000000..ecfae31
--- /dev/null
+++ b/scripts/planet/people/templates/index.html.tmpl
@@ -0,0 +1,125 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>Planet Fedora</title>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
+ <meta http-equiv="Content-Type" content="text/html">
+ <meta name="MSSmartTagsPreventParsing" content="TRUE">
+ <link rel="stylesheet" type="text/css" media="print" href="http://planet.fedoraproject.org/css/print.css">
+ <link rel="stylesheet" type="text/css" media="all" href="http://fedoraproject.org/static/css/fedora.css">
+ <link rel="stylesheet" type="text/css" media="all" href="/css/fedora_planet.css">
+ <link rel="shortcut icon" href="/images/favicon.ico">
+ <link rel="icon" href="/images/favicon.ico">
+ <link rel="alternate" type="application/xml" title="RSS" href="http://planet.fedoraproject.org/rss20.xml">
+ <link rel="alternate" type="application/atom+xml" title="Fedora People Atom 1.0" href="http://planet.fedoraproject.org/atom.xml">
+</head>
+<body class="home">
+ <div id="wrapper">
+
+ <div id="head">
+ <h1><a href="http://fedoraproject.org/">Fedora</a></h1>
+ </div>
+
+ <div id="sidebar">
+ <div id="planet_nav">
+
+ <h2>Feeds</h2>
+ <a href="rss10.xml">RSS 1.0</a><br>
+ <a href="rss20.xml">RSS 2.0</a><br>
+ <a href="atom.xml">Atom 1.0</a><br>
+ <a href="foafroll.xml">FOAF blogroll</a><br>
+
+ <h2>Links</h2>
+ <ul>
+ <li><a href="http://fedoraproject.org">Fedora Home</a></li>
+ <li><a href="http://fedoranews.org">Fedora News</a></li>
+ <li><a href="http://planet.fedoraproject.org/heads/">Hackergotchi Heads</a></li>
+ <li><a href="http://fedoraproject.org/infofeed/">Fedora Info</a></li>
+ </ul>
+
+ <h2>Other Aggregates</h2>
+ <ul>
+ <li><a href="http://advogato.org/recentlog.html?thresh=4">Advogato</a> <a href="http://advogato.org/">(main)</a></li>
+ <li><a href="http://www.planetapache.org/">Planet Apache</a></li>
+ <li><a href="http://planet.arslinux.com/">Planet Ars Linux</a></li>
+ <li><a href="http://planet.debian.net/">Planet Debian</a></li>
+
+ <li><a href="http://planet.gnome.org/">Planet Gnome</a></li>
+ <li><a href="http://www.kdedevelopers.org/blog">KDE Developers</a></li>
+ <li><a href="http://planet.freedesktop.org">Freedesktop.org</a></li>
+ <li><a href="http://www.planetmysql.org/">Planet MySQL</a></li>
+ </ul>
+
+ <h2>People</h2>
+ <ul id="people_feeds">
+
+ <TMPL_LOOP Channels>
+ <li><a href="<TMPL_VAR url ESCAPE="HTML">"><img src="images/rss.png" alt="RSS"></a><a href="<TMPL_VAR link>" title="<TMPL_VAR title>"><TMPL_VAR name></a></li>
+ </TMPL_LOOP>
+ </ul>
+
+ <h2>Add your blog</h2>
+ <ul><li><a href="http://fedoraproject.org/wiki/Planet_HowTo">Add your blog</a></li></ul>
+ </div>
+ </div>
+
+
+ <div id="content">
+ <div class="spacer">
+ <TMPL_LOOP Items>
+
+ <TMPL_IF new_date>
+ </div> <!-- :-} -->
+
+ <div class="blog-entries-daily">
+ <h2 class="blog-date"><TMPL_VAR new_date></h2>
+ </TMPL_IF>
+
+
+ <div class="blog-entry <TMPL_VAR channel_name>">
+ <div class="blog-entry-post">
+ <div class="blog-entry-header">
+ <div class="blog-entry-author">
+
+ <TMPL_IF channel_face>
+ <img src="<TMPL_VAR channel_face>" <TMPL_IF channel_facewidth>width="<TMPL_VAR channel_facewidth>" </TMPL_IF><TMPL_IF channel_faceheight>height="<TMPL_VAR channel_faceheight>" </TMPL_IF>alt="">
+ <br><a href="<TMPL_VAR channel_link>"><TMPL_VAR channel_name></a>
+
+ </TMPL_IF>
+
+ </div>
+
+ <div class="blog-entry-title"><a href="<TMPL_VAR link>"><TMPL_IF title><TMPL_VAR title><TMPL_ELSE>Untitled Post</TMPL_IF></a></div>
+ </div>
+
+ <div class="blog-entry-content-container">
+
+ <div class="blog-entry-content"><TMPL_VAR content></div>
+
+ </div>
+ <div class="blog-entry-footer">
+ <div class="blog-entry-timestamp"><a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_IF creator>by <TMPL_VAR creator> at </TMPL_IF><TMPL_VAR date></a></div>
+ </div>
+ </div>
+ </div>
+ </TMPL_LOOP>
+ </div>
+ </div>
+</div>
+ <div id="bottom">
+ <div id="footer">
+ <p class="copy">Copyright &copy; 2008 Red Hat, Inc. and others. All Rights Reserved. Please send any comments or corrections to the <a href="mailto:webmaster@fedoraproject.org">websites team</a>.</p>
+ <p class="disclaimer">The Fedora Project is maintained and driven by the community and sponsored by Red Hat. This is a community maintained site. Red Hat is not responsible for content.</p>
+ <p class="disclaimer">Your words are your own, duh. Nothing here represents Fedora™, Red Hat, Inc, or pretty much anything else. If you think it does then you are badly misled</p>
+ <ul>
+ <li class="first"><a href="/en/sponsors">Sponsors</a></li>
+ <li><a href="http://fedoraproject.org/wiki/Legal">Legal</a></li>
+ <li><a href="http://fedoraproject.org/wiki/Legal/TrademarkGuidelines">Trademark Guidelines</a></li>
+ </ul>
+ </div>
+ </div>
+
+
+</body>
+</html>
diff --git a/scripts/planet/people/templates/opml.xml.tmpl b/scripts/planet/people/templates/opml.xml.tmpl
new file mode 100644
index 0000000..50bbabe
--- /dev/null
+++ b/scripts/planet/people/templates/opml.xml.tmpl
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<opml version="1.1">
+ <head>
+ <title><TMPL_VAR name></title>
+ <dateCreated><TMPL_VAR date_822></dateCreated>
+ <dateModified><TMPL_VAR date_822></dateModified>
+ <ownerName><TMPL_VAR owner_name></ownerName>
+ <ownerEmail><TMPL_VAR owner_email></ownerEmail>
+ </head>
+
+ <body>
+ <TMPL_LOOP Channels>
+ <outline text="<TMPL_VAR name ESCAPE="HTML">" xmlUrl="<TMPL_VAR uri ESCAPE="HTML">"/>
+ </TMPL_LOOP>
+ </body>
+</opml>
diff --git a/scripts/planet/people/templates/rss10.xml.tmpl b/scripts/planet/people/templates/rss10.xml.tmpl
new file mode 100644
index 0000000..a8d6bc0
--- /dev/null
+++ b/scripts/planet/people/templates/rss10.xml.tmpl
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:foaf="http://xmlns.com/foaf/0.1/"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns="http://purl.org/rss/1.0/"
+>
+<channel rdf:about="<TMPL_VAR link ESCAPE="HTML">">
+ <title><TMPL_VAR name></title>
+ <link><TMPL_VAR link></link>
+ <description>Fedora People: http://planet.fedoraproject.org</description>
+ <items>
+ <rdf:Seq>
+<TMPL_LOOP Items>
+ <rdf:li rdf:resource="<TMPL_VAR id ESCAPE="HTML">" />
+</TMPL_LOOP>
+ </rdf:Seq>
+ </items>
+</channel>
+
+<TMPL_LOOP Items>
+<item rdf:about="<TMPL_VAR id ESCAPE="HTML">">
+ <title><TMPL_VAR channel_name><TMPL_IF title>: <TMPL_VAR title></TMPL_IF></title>
+ <link><TMPL_VAR link></link>
+ <TMPL_IF content>
+ <content:encoded><TMPL_VAR content ESCAPE="HTML"></content:encoded>
+ </TMPL_IF>
+ <dc:date><TMPL_VAR date_iso></dc:date>
+</item>
+</TMPL_LOOP>
+
+</rdf:RDF>
diff --git a/scripts/planet/people/templates/rss20.xml.tmpl b/scripts/planet/people/templates/rss20.xml.tmpl
new file mode 100644
index 0000000..6ca5dee
--- /dev/null
+++ b/scripts/planet/people/templates/rss20.xml.tmpl
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<rss version="2.0">
+<channel>
+ <title><TMPL_VAR name></title>
+ <link><TMPL_VAR link></link>
+ <language>en</language>
+ <description>Fedora People: http://planet.fedoraproject.org</description>
+
+<TMPL_LOOP Items>
+<item>
+ <title><TMPL_VAR channel_name><TMPL_IF title>: <TMPL_VAR title></TMPL_IF></title>
+ <guid><TMPL_VAR id></guid>
+ <link><TMPL_VAR link></link>
+ <TMPL_IF content>
+
+ <description>
+ <TMPL_IF channel_face>
+ &lt;img src=&quot;<TMPL_VAR channel_face>&quot; <TMPL_IF channel_facewidth>width=&quot;<TMPL_VAR channel_facewidth>&quot; </TMPL_IF><TMPL_IF channel_faceheight>height=&quot;<TMPL_VAR channel_faceheight>&quot; </TMPL_IF> alt=&quot;&quot; style=&quot;float: right;&quot;&gt;
+ </TMPL_IF>
+ <TMPL_VAR content ESCAPE="HTML"></description>
+ </TMPL_IF>
+ <pubDate><TMPL_VAR date_822></pubDate>
+</item>
+</TMPL_LOOP>
+
+</channel>
+</rss>
diff --git a/scripts/planet/planetconfigbuilder.py b/scripts/planet/planetconfigbuilder.py
new file mode 100755
index 0000000..cdb49a7
--- /dev/null
+++ b/scripts/planet/planetconfigbuilder.py
@@ -0,0 +1,173 @@
+#!/usr/bin/python
+# 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 Library 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.
+# Copyright 2008 (c) Red Hat, Inc - written by Seth Vidal <skvidal@fedoraproject.org>
+
+from ConfigParser import ConfigParser, ParsingError
+import os
+import os.path
+import sys
+import pwd
+import time
+
+class Config(object):
+ def __init__(self, fn='/etc/planetbuilder.conf'):
+ """read in our config data"""
+ self.ignore_users = []
+ self.banned_stanzas = ['Planet', 'main', 'DEFAULT']
+ self.base_config = None
+ self.group = None
+ self.output = sys.stdout
+ self.output_fn = None
+
+ cp = ConfigParser()
+ cp.read(fn)
+ if cp.has_section('main'):
+ if cp.has_option('main', 'base_config'):
+ self.base_config = cp.get('main', 'base_config')
+ if cp.has_option('main', 'group'):
+ self.group = cp.get('main', 'group')
+
+ if cp.has_option('main', 'ignore_users'):
+ iu = cp.get('main', 'ignore_users')
+ iu = iu.replace(',',' ')
+ for user in iu.split(' '):
+ self.ignore_users.append(user)
+ if cp.has_option('main', 'banned_stanzas'):
+ bs = cp.get('main', 'banned_stanzas')
+ bs = bs.replace(',',' ')
+ for banned in bs.split(' '):
+ self.banned_stanzas.append(banned)
+ if cp.has_option('main', 'output'):
+ of = cp.get('main', 'output')
+ self.output = open(of, 'w')
+ self.output_fn = of
+
+def error_print(msg):
+ print >> sys.stderr, msg
+
+class PlanetBuilderException(Exception):
+ def __init__(self, value=None):
+ Exception.__init__(self)
+ self.value = value
+
+ def __str__(self):
+ return "%s" %(self.value,)
+
+
+class PlanetBuilder(object):
+ def __init__(self, config_file):
+ self.entries = {}
+ self.conf = Config(config_file)
+
+ def add(self, entry):
+ if not entry.feed or not entry.name:
+ raise PlanetBuilderException, "entry %s lacks feed or name" % entry
+
+ if entry.feed in self.conf.banned_stanzas:
+ raise PlanetBuilderException, "entry %s is in banned list" % entry
+
+ if self.entries.has_key(entry.feed):
+ raise PlanetBuilderException, "entry %s already exists in list" % entry
+
+ self.entries[entry.feed] = entry
+
+ def compile(self):
+ result = "#planet config compiled on %s\n" % time.ctime()
+ result += "#using group %s and config %s\n" % (self.conf.group, self.conf.base_config)
+ if self.conf.base_config:
+ bc = open(self.conf.base_config, 'r').read()
+ result += bc
+
+ for e in self.entries.values():
+ e_format = "# Origin: %s\n" % (e.origin)
+ e_format += "[%s]\nname=%s\n" % (e.feed, e.name)
+ if e.face:
+ e_format += "face=%s\n" % (e.face)
+ result += e_format
+ result += "\n"
+
+ self.result = result
+
+ def produce_output(self):
+ self.conf.output.write(self.result)
+ self.conf.output.close()
+
+class PlanetEntry(object):
+
+ def __init__(self, origin, feed=None, name=None, face=None):
+ self.origin = origin
+ self.feed = feed
+ self.name = name
+ if not name:
+ self.name = origin
+ self.face = face
+
+ def __str__(self):
+ return '%s:%s' % (self.origin, self.feed)
+
+class PlanetFile(object):
+ def __init__(self, filename):
+ self.entries = []
+ # open up with cp
+ cp = ConfigParser()
+ try:
+ cp.read(filename)
+ except ParsingError, e:
+ error_print("Problem parsing %s - %s" % (filename, str(e)))
+ return
+
+ for s in cp.sections():
+ name = face = None
+ if cp.has_option(s, 'name'):
+ name = cp.get(s, 'name')
+ if cp.has_option(s, 'face'):
+ face = cp.get(s, 'face')
+ e = PlanetEntry(filename, feed=s, name=name, face=face)
+ self.entries.append(e)
+
+ def __iter__(self):
+ return self.entries.__iter__()
+
+def main(config_file='/etc/planetbuilder.conf'):
+ pb = PlanetBuilder(config_file)
+
+ fn = '.planet'
+ if pb.conf.group:
+ fn = '.planet.%s' % pb.conf.group
+
+ for (n, p, u, g, c, h, s) in pwd.getpwall():
+ if u < 500:
+ continue
+ if n in pb.conf.ignore_users:
+ continue
+
+ if os.path.exists(h + '/' + fn):
+ for entry in PlanetFile(h + '/' + fn):
+ pb.add(entry)
+
+ pb.compile()
+ pb.produce_output()
+ print pb.conf.output_fn
+
+
+if __name__ == "__main__":
+ if len(sys.argv) > 1:
+ main(sys.argv[1])
+ else:
+ main()
+
+
+
+
diff --git a/scripts/zabbix/pathchecker.py b/scripts/zabbix/pathchecker.py
new file mode 100644
index 0000000..925ffd7
--- /dev/null
+++ b/scripts/zabbix/pathchecker.py
@@ -0,0 +1,11 @@
+import os,sys
+
+files = sys.argv[1:]
+if not files:
+ print "you must specify a file"
+ sys.exit(1)
+for file in files:
+ if os.access(file, os.R_OK):
+ print 1
+ else:
+ print 0
diff --git a/scripts/zabbix/zabbixhelper.cfg b/scripts/zabbix/zabbixhelper.cfg
new file mode 100644
index 0000000..5660095
--- /dev/null
+++ b/scripts/zabbix/zabbixhelper.cfg
@@ -0,0 +1,3 @@
+[commands]
+restarthttpd = /sbin/service httpd restart
+gracefulhttpd = /sbin/service httpd graceful \ No newline at end of file
diff --git a/scripts/zabbix/zabbixhelper.py b/scripts/zabbix/zabbixhelper.py
new file mode 100755
index 0000000..fa95836
--- /dev/null
+++ b/scripts/zabbix/zabbixhelper.py
@@ -0,0 +1,45 @@
+#!/usr/bin/python -tt
+# -*- coding: utf-8 -*-
+#
+# Copyright © 2008 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties 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., 51 Franklin Street,
+# Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat trademarks that are
+# incorporated in the source code or documentation are not subject to the GNU
+# General Public License and may only be used or replicated with the express
+# permission of Red Hat, Inc.
+#
+# Red Hat Author(s): Nigel Jones <nigjones@redhat.com>
+#
+
+
+from configobj import ConfigObj
+import os
+import sys
+import subprocess
+
+config = ConfigObj("/etc/zabbixhelper.cfg")
+
+try:
+ command = config['commands'][sys.argv[1]]
+except KeyError:
+ print "Invalid command passed to script, check input"
+ sys.exit(1)
+except IndexError:
+ print "No parameters passed to script"
+ sys.exit(1)
+
+devnull = open("/dev/null", "w")
+ret = subprocess.Popen(command.split(), stderr=devnull, stdout=devnull).wait()
+
+if ret != 0:
+ print "Execution Failed"
+
+sys.exit(ret)