From: Frank Lichtenheld Date: Sat, 14 Apr 2007 17:23:39 +0000 (+0200) Subject: Basic configuration for packages.ubuntu.com X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=ea4bd46118fe7f7ada75068981d83ec0de0f4515;p=deb%2Fpackages.git Basic configuration for packages.ubuntu.com Site is actually packages.ubuntu.lichtenheld.net until I switch the real site to this code. This doesn't change any HTML templates yet. So the site still look a lot like packages.debian.org. Basic functionality should be there, though. --- diff --git a/config.sh.sed.in b/config.sh.sed.in index 1868bce..b7b9f9f 100644 --- a/config.sh.sed.in +++ b/config.sh.sed.in @@ -25,14 +25,8 @@ cachedir=${topdir}/cache # path to private ftp directory #ftproot=/org/ftp.root -ftpsite=http://ftp.de.debian.org/debian -nonus_ftpsite=http://ftp.uk.debian.org/debian-non-US -security_ftpsite=http://security.debian.org/debian-security -volatile_ftpsite=http://volatile.debian.org/debian-volatile -backports_ftpsite=http://backports.org/debian -amd64_ftpsite=http://amd64.debian.net/debian -#kfreebsd_ftpsite=http://kfreebsd-gnu.debian.net/debian -kfreebsd_ftpsite=http://ftp.de.debian.org/debian-kfreebsd +ftpsite=http://archive.ubuntu.com/ubuntu +security_ftpsite=$ftpsite root="" @@ -40,20 +34,28 @@ root="" # polangs="de fi nl fr uk" ddtplangs="de cs da eo es fi fr hu it ja nl pl pt_BR pt_PT ru sk sv_SE uk" -archives="us security amd64 kfreebsd backports volatile" -sections="main contrib non-free" -parts="$sections" -suites="oldstable oldstable-volatile oldstable-backports stable stable-volatile stable-backports testing unstable experimental" +archives="us security" +sections="main multiverse restricted universe" +parts="${sections}" +suites="warty hoary hoary-backports breezy breezy-backports dapper dapper-backports edgy edgy-backports feisty" priorities="required important standard optional extra" -dists="$suites" -architectures="alpha amd64 arm hppa hurd-i386 i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc" -arch_oldstable="alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc" -arch_stable="alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc" -arch_testing="${arch_stable}" -arch_unstable="${arch_oldstable} hurd-i386 kfreebsd-i386 kfreebsd-amd64" -arch_experimental="${arch_unstable}" -arch_testing_proposed_updates="${arch_testing}" -arch_stable_proposed_updates="${arch_stable}" +dists="${suites}" +architectures="i386 amd64 powerpc" +arch_warty="i386 amd64 powerpc" +arch_warty_updates="${arch_warty}" +arch_hoary="${arch_warty}" +arch_hoary_backports="${arch_hoary}" +arch_hoary_updates="${arch_hoary}" +arch_breezy="${arch_hoary}" +arch_breezy_updates="${arch_breezy}" +arch_breezy_backports="${arch_breezy}" +arch_dapper="${arch_breezy}" +arch_dapper_updates="${arch_dapper}" +arch_dapper_backports="${arch_dapper}" +arch_edgy="${arch_dapper}" +arch_edgy_updates="${arch_edgy}" +arch_edgy_backports="${arch_edgy}" +arch_feisty="${arch_edgy}" # Miscellaneous # diff --git a/cron.d/100syncarchive_amd64 b/cron.d/100syncarchive_amd64 deleted file mode 100755 index 03fd109..0000000 --- a/cron.d/100syncarchive_amd64 +++ /dev/null @@ -1,31 +0,0 @@ -#! /bin/bash - -. `dirname $0`/../config.sh - -test -d ${archivedir} || mkdir -p ${archivedir} -cd ${archivedir} - -# Main archive -# -arch=amd64 - -for dist in oldstable - do - echo "retrieve Release(.gpg) $dist" - test -d amd64/${dist} || mkdir -p amd64/${dist} - (cd amd64/${dist} && - wget -q -N ${amd64_ftpsite}/dists/${dist}/Release && - wget -q -N ${amd64_ftpsite}/dists/${dist}/Release.gpg ) - - for part in ${parts} main/debian-installer - do - echo retrieve Packages $dist/$part/$arch - test -d amd64/${dist}/${part}/binary-${arch} || mkdir -p amd64/${dist}/${part}/binary-${arch} - (cd amd64/${dist}/${part}/binary-${arch} && - wget -q -N ${amd64_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz) - done - echo retrieve Contents $dist/$arch - (cd amd64/${dist} && - wget -q -N ${amd64_ftpsite}/dists/${dist}/Contents-${arch}.gz) -done - diff --git a/cron.d/100syncarchive_backports b/cron.d/100syncarchive_backports deleted file mode 100755 index 6411eb1..0000000 --- a/cron.d/100syncarchive_backports +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -. `dirname $0`/../config.sh - -test -d ${archivedir} || mkdir -p ${archivedir} -cd ${archivedir} - -# backports archive -# -for dist in oldstable -do - echo "retrieve Release(.gpg) $dist-backports" - test -d backports/${dist}-backports || mkdir -p backports/${dist}-backports - (cd backports/${dist}-backports && - wget -q -N ${backports_ftpsite}/dists/sarge-backports/Release && - wget -q -N ${backports_ftpsite}/dists/sarge-backports/Release.gpg ) - - foo=\$arch_${dist//-/_} - for arch in `eval echo $foo` - do - for part in ${parts} - do - echo retrieve Packages $dist-backports/$part/$arch - test -d backports/${dist}-backports/${part}/binary-${arch} || mkdir -p backports/${dist}-backports/${part}/binary-${arch} - (cd backports/${dist}-backports/${part}/binary-${arch} && - wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/binary-${arch}/Packages.gz) - done - echo retrieve Contents $dist-backports/$arch - (cd backports/${dist}-backports && - wget -q -N ${backports_ftpsite}/dists/sarge-backports/Contents-${arch}.gz) - done - for part in ${parts} - do - echo retrieve Sources $dist-backports/$part - test -d backports/${dist}-backports/${part}/source || mkdir -p backports/${dist}-backports/${part}/source - (cd backports/${dist}-backports/${part}/source && - wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/source/Sources.gz) - done -done diff --git a/cron.d/100syncarchive_kfreebsd b/cron.d/100syncarchive_kfreebsd deleted file mode 100755 index 287b00a..0000000 --- a/cron.d/100syncarchive_kfreebsd +++ /dev/null @@ -1,33 +0,0 @@ -#! /bin/bash - -. `dirname $0`/../config.sh - -test -d ${archivedir} || mkdir -p ${archivedir} -cd ${archivedir} - -# Main archive -# -architectures="kfreebsd-i386 kfreebsd-amd64" - -for dist in unstable experimental - do - echo "retrieve Release(.gpg) $dist" - test -d kfreebsd/${dist} || mkdir -p kfreebsd/${dist} - (cd kfreebsd/${dist} && - wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/Release && - wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/Release.gpg ) - - for arch in $architectures - do - for part in ${parts} main/debian-installer - do - echo retrieve Packages $dist/$part/$arch - test -d kfreebsd/${dist}/${part}/binary-${arch} || mkdir -p kfreebsd/${dist}/${part}/binary-${arch} - (cd kfreebsd/${dist}/${part}/binary-${arch} && - wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz) - done - echo retrieve Contents $dist/$arch - (cd kfreebsd/${dist} && - wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/Contents-${arch}.gz) - done -done diff --git a/cron.d/100syncarchive_maintainers b/cron.d/100syncarchive_maintainers deleted file mode 100755 index adb5f7f..0000000 --- a/cron.d/100syncarchive_maintainers +++ /dev/null @@ -1,21 +0,0 @@ -#! /bin/bash - -. `dirname $0`/../config.sh - -test -d ${archivedir} || mkdir -p ${archivedir} -cd ${archivedir} - -# scp -q auric:/org/ftp.debian.org/ftp/indices/Maintainers . - -if [ -f /org/ftp.root/debian/indices/Maintainers ] -then - if [ ! -s Maintainers -a -L Maintainers ] - then - ln -s /org/ftp.root/debian/indices/Maintainers . - fi -else - if [ ! -L Maintainers ] - then - wget -q -O Maintainers ftp://ftp.debian.org/debian/indices/Maintainers - fi -fi diff --git a/cron.d/100syncarchive_volatile b/cron.d/100syncarchive_volatile deleted file mode 100755 index b8cef9a..0000000 --- a/cron.d/100syncarchive_volatile +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -. `dirname $0`/../config.sh - -test -d ${archivedir} || mkdir -p ${archivedir} -cd ${archivedir} - -# volatile archive -# -for dist in oldstable stable -do - echo "retrieve Release(.gpg) $dist-volatile" - test -d volatile/${dist}-volatile || mkdir -p volatile/${dist}-volatile - (cd volatile/${dist}-volatile && - wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Release && - wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Release.gpg ) - - foo=\$arch_${dist//-/_} - for arch in `eval echo $foo` - do - for part in ${parts} - do - echo retrieve Packages $dist-volatile/$part/$arch - test -d volatile/${dist}-volatile/${part}/binary-${arch} || mkdir -p volatile/${dist}-volatile/${part}/binary-${arch} - (cd volatile/${dist}-volatile/${part}/binary-${arch} && - wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/binary-${arch}/Packages.gz) - done - echo retrieve Contents $dist-volatile/$arch - (cd volatile/${dist}-volatile && - wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Contents-${arch}.gz) - - done - for part in ${parts} - do - echo retrieve Sources $dist-volatile/$part - test -d volatile/${dist}-volatile/${part}/source || mkdir -p volatile/${dist}-volatile/${part}/source - (cd volatile/${dist}-volatile/$part/source && - wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/source/Sources.gz) - done -done diff --git a/cron.d/300maintainerdb b/cron.d/300maintainerdb deleted file mode 100755 index 898a4c0..0000000 --- a/cron.d/300maintainerdb +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/bash - -. `dirname $0`/../config.sh - -cd ${bindir} -${bindir}/build-maintainerdb diff --git a/templates/config.tmpl b/templates/config.tmpl index 0d99856..268ec27 100644 --- a/templates/config.tmpl +++ b/templates/config.tmpl @@ -2,46 +2,47 @@ charset = 'UTF-8' lang = 'en' - organisation = 'Debian' - homepage = 'http://www.debian.org/' - packages_homepage = 'http://packages.debian.net/' + organisation = 'Ubuntu' + homepage = 'http://www.ubuntulinux.org/' + packages_homepage = 'http://packages.ubuntu.lichtenheld.net/' searchformurl = packages_homepage search_url = '/' tags_url = 'http://debtags.alioth.debian.org/' bugs_url = 'http://bugs.debian.org/' + launchpad_url = 'https://launchpad.net/distros/ubuntu/+source/' pts_url = 'http://packages.qa.debian.org/' ddpo_url = 'http://qa.debian.org/developer.php?login=' src_bugs_url = bugs_url _ 'src:' - mirror_url = 'http://ftp.debian.org/' - changelogs_url = 'http://packages.debian.org/changelogs/' + mirror_url = 'http://archive.ubuntu.com/' + changelogs_url = 'http://changelogs.ubuntu.com/changelogs' policy_url = 'http://www.debian.org/doc/debian-policy/' - cn_help_url = homepage _ 'intro/cn' +# cn_help_url = homepage _ 'intro/cn' logo = { url => homepage, src => '/Pics/openlogo-nd-50.png', alt => organisation, } copyright = { - url => 'http://www.spi-inc.org/', - name => 'SPI Inc.', - years => '1997 - ' _ timestamp.year, - } - license = { - url => homepage _ 'license' +# url => 'http://www.spi-inc.org/', + name => 'Canonical Ltd.', +# years => '1997 - ' _ timestamp.year, } +# license = { +# url => homepage _ 'license' +# } contact = { - name => 'Debian Web Mailinglist', - mail => 'debian-www@lists.debian.org', - url => homepage _ 'contact', + name => 'Frank Lichtenheld', + mail => 'frank@lichtenheld.de', + url => homepage _ 'support', } admin = { - name => 'Debian Webmaster', - mail => 'webmaster@debian.org', + name => 'Frank Lichtenheld', + mail => 'frank@lichtenheld.de', } trademarknotes = organisation _ ' is a trademark of ' _ copyright.name -%] [%- # possible values for importance: high, normal, low sitewidemsg = { importance => "high", - txt => "Please note that this is an experimental version of packages.debian.org. Errors and obsolete information should be expected" } + txt => "Please note that this is an experimental version of packages.ubuntu.com. Errors and obsolete information should be expected" } -%]