libimcv: Fix Doxygen comments after merging libpts into libimcv
[strongswan.git] / src / libimcv / plugins / imv_os / pacman.sh
1 #!/bin/sh
2
3 DIR="/etc/pts"
4 DATE=`date +%Y%m%d-%H%M`
5 UBUNTU="http://security.ubuntu.com/ubuntu/dists"
6 UBUNTU_VERSIONS="trusty saucy raring quantal precise lucid"
7 UBUNTU_DIRS="main multiverse restricted universe"
8 UBUNTU_ARCH="binary-amd64 binary-i386"
9 DEBIAN="http://security.debian.org/dists"
10 DEBIAN_VERSIONS="jessie wheezy squeeze"
11 DEBIAN_DIRS="main contrib non-free"
12 DEBIAN_ARCH="binary-amd64 binary-i386"
13 PACMAN=/usr/libexec/ipsec/pacman
14 PACMAN_LOG="$DIR/$DATE-pacman.log"
15
16 mkdir -p $DIR/dists
17 cd $DIR/dists
18
19 for v in $UBUNTU_VERSIONS
20 do
21 for a in $UBUNTU_ARCH
22 do
23 mkdir -p $v-security/$a $v-updates/$a
24 for d in $UBUNTU_DIRS
25 do
26 wget $UBUNTU/$v-security/$d/$a/Packages.bz2 -O $v-security/$a/Packages-$d.bz2
27 bunzip2 -f $v-security/$a/Packages-$d.bz2
28 wget $UBUNTU/$v-updates/$d/$a/Packages.bz2 -O $v-updates/$a/Packages-$d.bz2
29 bunzip2 -f $v-updates/$a/Packages-$d.bz2
30 done
31 done
32 done
33
34 for v in $DEBIAN_VERSIONS
35 do
36 for a in $DEBIAN_ARCH
37 do
38 mkdir -p $v-updates/$a
39 for d in $DEBIAN_DIRS
40 do
41 wget $DEBIAN/$v/updates/$d/$a/Packages.bz2 -O $v-updates/$a/Packages-$d.bz2
42 bunzip2 -f $v-updates/$a/Packages-$d.bz2
43 done
44 done
45 done
46
47 for f in trusty-security/binary-amd64/*
48 do
49 $PACMAN --product "Ubuntu 14.04 x86_64" --file $f --security >> $PACMAN_LOG
50 done
51 echo
52 for f in trusty-updates/binary-amd64/*
53 do
54 $PACMAN --product "Ubuntu 14.04 x86_64" --file $f >> $PACMAN_LOG
55 done
56 echo
57 for f in trusty-security/binary-i386/*
58 do
59 $PACMAN --product "Ubuntu 14.04 i686" --file $f --security >> $PACMAN_LOG
60 done
61 echo
62 for f in trusty-updates/binary-i386/*
63 do
64 $PACMAN --product "Ubuntu 14.04 i686" --file $f >> $PACMAN_LOG
65 done
66 echo
67
68 for f in saucy-security/binary-amd64/*
69 do
70 $PACMAN --product "Ubuntu 13.10 x86_64" --file $f --security >> $PACMAN_LOG
71 done
72 echo
73 for f in saucy-updates/binary-amd64/*
74 do
75 $PACMAN --product "Ubuntu 13.10 x86_64" --file $f >> $PACMAN_LOG
76 done
77 echo
78 for f in saucy-security/binary-i386/*
79 do
80 $PACMAN --product "Ubuntu 13.10 i686" --file $f --security >> $PACMAN_LOG
81 done
82 echo
83 for f in saucy-updates/binary-i386/*
84 do
85 $PACMAN --product "Ubuntu 13.10 i686" --file $f >> $PACMAN_LOG
86 done
87 echo
88
89 for f in raring-security/binary-amd64/*
90 do
91 $PACMAN --product "Ubuntu 13.04 x86_64" --file $f --security >> $PACMAN_LOG
92 done
93 echo
94 for f in raring-updates/binary-amd64/*
95 do
96 $PACMAN --product "Ubuntu 13.04 x86_64" --file $f >> $PACMAN_LOG
97 done
98 echo
99 for f in raring-security/binary-i386/*
100 do
101 $PACMAN --product "Ubuntu 13.04 i686" --file $f --security >> $PACMAN_LOG
102 done
103 echo
104 for f in raring-updates/binary-i386/*
105 do
106 $PACMAN --product "Ubuntu 13.04 i686" --file $f >> $PACMAN_LOG
107 done
108 echo
109
110 for f in quantal-security/binary-amd64/*
111 do
112 $PACMAN --product "Ubuntu 12.10 x86_64" --file $f --security >> $PACMAN_LOG
113 done
114 echo
115 for f in quantal-updates/binary-amd64/*
116 do
117 $PACMAN --product "Ubuntu 12.10 x86_64" --file $f >> $PACMAN_LOG
118 done
119 echo
120 for f in quantal-security/binary-i386/*
121 do
122 $PACMAN --product "Ubuntu 12.10 i686" --file $f --security >> $PACMAN_LOG
123 done
124 echo
125 for f in quantal-updates/binary-i386/*
126 do
127 $PACMAN --product "Ubuntu 12.10 i686" --file $f >> $PACMAN_LOG
128 done
129 echo
130
131 for f in precise-security/binary-amd64/*
132 do
133 $PACMAN --product "Ubuntu 12.04 x86_64" --file $f --security >> $PACMAN_LOG
134 done
135 echo
136 for f in precise-updates/binary-amd64/*
137 do
138 $PACMAN --product "Ubuntu 12.04 x86_64" --file $f >> $PACMAN_LOG
139 done
140 echo
141 for f in precise-security/binary-i386/*
142 do
143 $PACMAN --product "Ubuntu 12.04 i686" --file $f --security >> $PACMAN_LOG
144 done
145 echo
146 for f in precise-updates/binary-i386/*
147 do
148 $PACMAN --product "Ubuntu 12.04 i686" --file $f >> $PACMAN_LOG
149 done
150 echo
151
152 for f in lucid-security/binary-amd64/*
153 do
154 $PACMAN --product "Ubuntu 10.04 x86_64" --file $f --security >> $PACMAN_LOG
155 done
156 echo
157 for f in lucid-updates/binary-amd64/*
158 do
159 $PACMAN --product "Ubuntu 10.04 x86_64" --file $f >> $PACMAN_LOG
160 done
161 echo
162 for f in lucid-security/binary-i386/*
163 do
164 $PACMAN --product "Ubuntu 10.04 i686" --file $f --security >> $PACMAN_LOG
165 done
166 echo
167 for f in lucid-updates/binary-i386/*
168 do
169 $PACMAN --product "Ubuntu 10.04 i686" --file $f >> $PACMAN_LOG
170 done
171 echo
172
173 for f in jessie-updates/binary-amd64/*
174 do
175 $PACMAN --product "Debian 8.0 x86_64" --file $f --security >> $PACMAN_LOG
176 done
177 echo
178 for f in jessie-updates/binary-i386/*
179 do
180 $PACMAN --product "Debian 8.0 i686" --file $f --security >> $PACMAN_LOG
181 done
182
183 for f in wheezy-updates/binary-amd64/*
184 do
185 $PACMAN --product "Debian 7.0 x86_64" --file $f --security >> $PACMAN_LOG
186 done
187 echo
188 for f in wheezy-updates/binary-i386/*
189 do
190 $PACMAN --product "Debian 7.0 i686" --file $f --security >> $PACMAN_LOG
191 done
192
193 for f in squeeze-updates/binary-amd64/*
194 do
195 $PACMAN --product "Debian 6.0 x86_64" --file $f --security >> $PACMAN_LOG
196 done
197 echo
198 for f in squeeze-updates/binary-i386/*
199 do
200 $PACMAN --product "Debian 6.0 i686" --file $f --security >> $PACMAN_LOG
201 done
202
203 cp $DIR/config.db $DIR/config.db-$DATE