]> git.deb.at Git - deb/packages.git/commitdiff
Basic configuration for packages.ubuntu.com
authorFrank Lichtenheld <frank@lichtenheld.de>
Sat, 14 Apr 2007 17:23:39 +0000 (19:23 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 14 Apr 2007 17:23:39 +0000 (19:23 +0200)
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.

config.sh.sed.in
cron.d/100syncarchive_amd64 [deleted file]
cron.d/100syncarchive_backports [deleted file]
cron.d/100syncarchive_kfreebsd [deleted file]
cron.d/100syncarchive_maintainers [deleted file]
cron.d/100syncarchive_volatile [deleted file]
cron.d/300maintainerdb [deleted file]
templates/config.tmpl

index 1868bce8cd62d7f6dd3af6f60a26f6e9a0e137ec..b7b9f9f684d08e3a257f2fe4521eaa32d4b5a735 100644 (file)
@@ -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 (executable)
index 03fd109..0000000
+++ /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 (executable)
index 6411eb1..0000000
+++ /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 (executable)
index 287b00a..0000000
+++ /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 (executable)
index adb5f7f..0000000
+++ /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 (executable)
index b8cef9a..0000000
+++ /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 (executable)
index 898a4c0..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#! /bin/bash
-
-. `dirname $0`/../config.sh
-
-cd ${bindir}
-${bindir}/build-maintainerdb
index 0d99856e98278bde22d094979a083266aebb5ffd..268ec274775ddf2e974d3ebd292bc09928743c49 100644 (file)
@@ -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 <a href=\"http://packages.debian.org/\">packages.debian.org</a>. Errors and obsolete information should be expected" }
+                  txt => "Please note that this is an experimental version of <a href=\"http://packages.ubuntu.com/\">packages.ubuntu.com</a>. Errors and obsolete information should be expected" }
 -%]