diff options
author | 2010-09-12 23:18:29 +0300 | |
---|---|---|
committer | 2010-09-12 23:18:29 +0300 | |
commit | 700a153bda9138adf418ae978fc1dd449d8e11f4 (patch) | |
tree | 0d77ce8cfcec0e85f29959b2c80542809066ca49 | |
parent | remove fauli from universe (diff) | |
download | planet-700a153bda9138adf418ae978fc1dd449d8e11f4.tar.gz planet-700a153bda9138adf418ae978fc1dd449d8e11f4.tar.bz2 planet-700a153bda9138adf418ae978fc1dd449d8e11f4.zip |
svnignore->gitignore
Add media dir with static data taken from the server
Add scripts dir with the cron job and the python scripts
Correct the templates dir
-rw-r--r-- | .gitignore (renamed from .svnignore) | 0 | ||||
-rw-r--r-- | media/favicon.ico | bin | 0 -> 1406 bytes | |||
-rw-r--r-- | media/icons/back.gif | bin | 0 -> 216 bytes | |||
-rw-r--r-- | media/icons/blank.gif | bin | 0 -> 148 bytes | |||
-rw-r--r-- | media/icons/image2.gif | bin | 0 -> 309 bytes | |||
-rw-r--r-- | media/images/gbot-s.gif | bin | 0 -> 2223 bytes | |||
-rw-r--r-- | media/images/gentoo.gif | bin | 0 -> 4789 bytes | |||
-rw-r--r-- | media/images/gridtest.gif | bin | 0 -> 3199 bytes | |||
-rw-r--r-- | media/images/gtop-s.jpg | bin | 0 -> 3157 bytes | |||
-rw-r--r-- | media/images/larry_the_cow.jpg | bin | 0 -> 1191 bytes | |||
-rw-r--r-- | media/images/opml.png | bin | 0 -> 298 bytes | |||
-rw-r--r-- | media/images/rss20.png | bin | 0 -> 313 bytes | |||
-rw-r--r-- | media/images/tux.png | bin | 0 -> 9191 bytes | |||
-rw-r--r-- | media/planet.css | 160 | ||||
-rw-r--r-- | media/robots.txt | 1 | ||||
-rw-r--r-- | scripts/adduser.py (renamed from adduser.py) | 0 | ||||
-rw-r--r-- | scripts/gravatar.py (renamed from gravatar.py) | 0 | ||||
-rw-r--r-- | scripts/update-venus | 33 | ||||
-rw-r--r-- | templates/config.ini | 2 |
19 files changed, 195 insertions, 1 deletions
diff --git a/media/favicon.ico b/media/favicon.ico Binary files differnew file mode 100644 index 00000000..e26ba885 --- /dev/null +++ b/media/favicon.ico diff --git a/media/icons/back.gif b/media/icons/back.gif Binary files differnew file mode 100644 index 00000000..a694ae1e --- /dev/null +++ b/media/icons/back.gif diff --git a/media/icons/blank.gif b/media/icons/blank.gif Binary files differnew file mode 100644 index 00000000..0ccf01e1 --- /dev/null +++ b/media/icons/blank.gif diff --git a/media/icons/image2.gif b/media/icons/image2.gif Binary files differnew file mode 100644 index 00000000..751faeea --- /dev/null +++ b/media/icons/image2.gif diff --git a/media/images/gbot-s.gif b/media/images/gbot-s.gif Binary files differnew file mode 100644 index 00000000..9dc9ed33 --- /dev/null +++ b/media/images/gbot-s.gif diff --git a/media/images/gentoo.gif b/media/images/gentoo.gif Binary files differnew file mode 100644 index 00000000..9153b82c --- /dev/null +++ b/media/images/gentoo.gif diff --git a/media/images/gridtest.gif b/media/images/gridtest.gif Binary files differnew file mode 100644 index 00000000..6dd05dc0 --- /dev/null +++ b/media/images/gridtest.gif diff --git a/media/images/gtop-s.jpg b/media/images/gtop-s.jpg Binary files differnew file mode 100644 index 00000000..191c375f --- /dev/null +++ b/media/images/gtop-s.jpg diff --git a/media/images/larry_the_cow.jpg b/media/images/larry_the_cow.jpg Binary files differnew file mode 100644 index 00000000..3d2b2e50 --- /dev/null +++ b/media/images/larry_the_cow.jpg diff --git a/media/images/opml.png b/media/images/opml.png Binary files differnew file mode 100644 index 00000000..109bfc89 --- /dev/null +++ b/media/images/opml.png diff --git a/media/images/rss20.png b/media/images/rss20.png Binary files differnew file mode 100644 index 00000000..acdba302 --- /dev/null +++ b/media/images/rss20.png diff --git a/media/images/tux.png b/media/images/tux.png Binary files differnew file mode 100644 index 00000000..96506b6d --- /dev/null +++ b/media/images/tux.png diff --git a/media/planet.css b/media/planet.css new file mode 100644 index 00000000..9db6227a --- /dev/null +++ b/media/planet.css @@ -0,0 +1,160 @@ +body { + background-color: #000000; + color: black; + font-family: Verdana, Arial, Helvetica; + font-size: 0.9em; + margin: 0px 0px 0px 0px; +} + + +a.highlight:link { color: #00ff00; text-decoration: none; } +a.highlight:visited { color: #00ff00; text-decoration: none; } +a.highlight:hover { color: #00ff00; text-decoration: underline; } +a.highlight:active { color: #00ff00; text-decoration: underline; } + +a.menulink:link { color: #a0a0d0; text-decoration: none; } +a.menulink:visited { color: #a0a0d0; text-decoration: none; } +a.menulink:hover { color: #00ff00; text-decoration: underline; } +a.menulink:active { color: #00ff00; text-decoration: underline; } + +a.altlink:link { color: #7a5ada; text-decoration: none; } +a.altlink:visited { color: #5a3aba; text-decoration: none; } +a.altlink:hover { color: #7a5ada; text-decoration: underline; } +a.altlink:active { color: #7a5ada; text-decoration: underline; } + +td.logobox { + background-color: #45347B; + padding-bottom: 5px; + vertical-align: top; +} + +td.linkbar { + background-color: #000000; + padding-bottom: 10px; + vertical-align: bottom; +} + +td.leftmenu { + vertical-align: top; + background-color: #DDDAEC; +} + +div.dateheading { + background-color: rgb(122, 90, 218); + color: #FFFFFF; + font-size: 1.6em; + font-weight: bold; + padding: 3px 3px 3px 5px; +} + +div.entryheading { + background-color: #EFEFEF; +} + +span.entryheading { + font-weight: bold; + padding-left: 15px; +} + +div.entrycontent { + padding-left: 15px; + padding-bottom: 10px; + min-height: 85px; +} + +div.entrycontent pre { + overflow: auto; +} + +div.personheading { + background-color: #DEE3E7; +} + +span.personheading { + font-size: 1.4em; + font-weight: bold; + padding-left: 8px; +} + +span.commentlink { + font-style: italic; +} + +.menu { + font-size: 0.9em; + font-weight: bold; + font-family: Verdana, Arial, Helvetica; + color: #c0c0f0; + padding-left: 1.0em; + padding-right: 1.0em; + padding-top: 0.5em; +} + +.altmenu { + font-size: 0.8em; + font-weight: bold; + font-family: Verdana, Arial, Helvetica; + color: #000000; + padding-left: 2.0em; + padding-right: 1.0em; +} + +td.footer { + font-size: 0.7em; + font-family: Verdana, Arial, Helvetica; + padding-top: 0.2em; + padding-bottom: 0.2em; + padding-left: 1.0em; + margin-left: 1.0em; + color: #ffffff; + font-weight: bold; + width: 100%; + text-align: right; + background-color: #7A5ADA; +} + +td.content { + padding: 1.0em 1.0em 0em 1.0em; + font-family: Verdana, Arial, Helvetica; + font-size: 0.9em; + width: 100%; + vertical-align: top; + background-color: #FFFFFF; +} + +pre { + padding: 0.5em; + font-family: Lucida Console, Courier; + color: #000000; + font-size: 0.9em; +} + +img { + border: 0px; + max-width: 500px; +} + +div#intro { + clear: both; + display: block; + height: 70px; +} + +div#intro img { + padding-right: 10px; + float: left; + vertical-align: top; +} + +div#intro p { + margin: 0; + padding-top: 20px; +} + +pre { + border-left: 2px double grey; +} + +blockquote { + overflow: auto; +} diff --git a/media/robots.txt b/media/robots.txt new file mode 100644 index 00000000..7d329b1d --- /dev/null +++ b/media/robots.txt @@ -0,0 +1 @@ +User-agent: * diff --git a/adduser.py b/scripts/adduser.py index 0a4f8c27..0a4f8c27 100644 --- a/adduser.py +++ b/scripts/adduser.py diff --git a/gravatar.py b/scripts/gravatar.py index 940be1fa..940be1fa 100644 --- a/gravatar.py +++ b/scripts/gravatar.py diff --git a/scripts/update-venus b/scripts/update-venus new file mode 100644 index 00000000..7c0c02e9 --- /dev/null +++ b/scripts/update-venus @@ -0,0 +1,33 @@ +#!/bin/bash +DATE=$(date +%F) +LOG_DATE=$(date +%F-%R) +BASE_DIR="/var/www/planet.gentoo.org/" +RESTRICT="" +VENUS_DIR="/usr/lib/python2.6/site-packages/venus/" + +cd ${BASE_DIR} + +# Get latest SVN changes +git pull ${BASE_DIR}/planet-gentoo/configs/ >/dev/null 2>&1 +git pull ${BASE_DIR}/planet-gentoo/templates/ >/dev/null 2>&1 + +# Run Venus +for x in planet universe; do + if [[ ! -z $RESTRICT ]]; then + for y in $RESTRICT; do + rm ${BASE_DIR}configs/${x}/${y} + done + fi + cat ${BASE_DIR}planet-gentoo/configs/base/venus.${x} ${BASE_DIR}planet-gentoo/configs/${x}/* > ${BASE_DIR}generated_configs/venus.${x}.ini + python ${VENUS_DIR}planet.py ${BASE_DIR}configs/venus.${x}.ini > ${BASE_DIR}logs/${x}/${LOG_DATE}.log 2>&1 +done + +# Delete old logs +find ${BASE_DIR}logs -type f -mtime +30 -delete + +# Archive posts +cp ${BASE_DIR}htdocs/index.html \ + ${BASE_DIR}htdocs/archives/${DATE}.html +cp ${BASE_DIR}htdocs/universe/index.html \ + ${BASE_DIR}htdocs/universe/archives/${DATE}.html + diff --git a/templates/config.ini b/templates/config.ini index 7e87097a..3c383486 100644 --- a/templates/config.ini +++ b/templates/config.ini @@ -8,4 +8,4 @@ template_files: index.html.tmpl template_directories: - /var/www/planet.gentoo.org/venus/themes/common/ + /var/www/planet.gentoo.org/planet-gentoo/templates |