created packman daily update script

This commit is contained in:
Andreas Steffen
2012-11-08 09:19:10 +01:00
parent b18b924b2f
commit da72eb388a
2 changed files with 38 additions and 0 deletions
+2
View File
@@ -20,3 +20,5 @@ pacman_SOURCES = pacman.c
pacman_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
pacman.o : $(top_builddir)/config.status
EXTRA_DIST = pacman.sh
+36
View File
@@ -0,0 +1,36 @@
#!/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
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
ipsec pacman --product "Ubuntu 12.10" --file $DATE-quantal.txt
echo
ipsec pacman --product "Ubuntu 12.10" --file $DATE-quantal-updates.txt --update
echo
ipsec pacman --product "Ubuntu 12.04" --file $DATE-precise.txt
echo
ipsec pacman --product "Ubuntu 12.04" --file $DATE-precise-updates.txt
echo
ipsec pacman --product "Ubuntu 11.10" --file $DATE-oneiric.txt
echo
ipsec pacman --product "Ubuntu 11.10" --file $DATE-oneiric-updates.txt --update
echo
ipsec pacman --product "Ubuntu 10.04" --file $DATE-lucid.txt
echo
ipsec pacman --product "Ubuntu 10.04" --file $DATE-lucid-updates.txt --update
echo
ipsec pacman --product "Debian squeeze" --file $DATE-squeeze.txt
cp config.db config.db-$DATE