blob: e9134ea5d52da20ce5b8ea425a99946adffd1ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/bin/sh
DATE=`date +%Y%m%d`
DEBIAN=http://packages.debian.org
UBUNTU=http://packages.ubuntu.com
UBUNTU_VERSIONS="quantal precise oneiric lucid"
PACKAGES=allpackages?format=txt.gz
PACMAN=/usr/libexec/ipsec/pacman
DIR=/etc/pts
cd $DIR
for v in $UBUNTU_VERSIONS
do
wget $UBUNTU/$v/$PACKAGES -O $DATE-$v.txt.gz
wget $UBUNTU/$v-updates/$PACKAGES -O $DATE-$v-updates.txt.gz
done
wget $DEBIAN/stable/$PACKAGES -O $DATE-squeeze.txt.gz
gunzip *.gz
$PACMAN --product "Ubuntu 12.10" --file $DATE-quantal.txt
echo
$PACMAN --product "Ubuntu 12.10" --file $DATE-quantal-updates.txt --update
echo
$PACMAN --product "Ubuntu 12.04" --file $DATE-precise.txt
echo
$PACMAN --product "Ubuntu 12.04" --file $DATE-precise-updates.txt --update
echo
$PACMAN --product "Ubuntu 11.10" --file $DATE-oneiric.txt
echo
$PACMAN --product "Ubuntu 11.10" --file $DATE-oneiric-updates.txt --update
echo
$PACMAN --product "Ubuntu 10.04" --file $DATE-lucid.txt
echo
$PACMAN --product "Ubuntu 10.04" --file $DATE-lucid-updates.txt --update
echo
$PACMAN --product "Debian squeeze" --file $DATE-squeeze.txt
cp config.db config.db-$DATE
|