-
Notifications
You must be signed in to change notification settings - Fork 1
/
package_checker.sh
executable file
·389 lines (308 loc) · 13.5 KB
/
package_checker.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
#!/bin/bash
debian_pool="http://ftp.de.debian.org/debian/pool"
sigrok_dl="http://sigrok.org/download/source"
generic_http () {
echo "Checking: ${package_name}"
if [ -f /tmp/index.html ] ; then
rm -f /tmp/index.html
fi
wget --no-verbose --directory-prefix=/tmp/ ${site}/${package_name}/ &> /dev/null
cat /tmp/index.html | grep "<a href=" > /tmp/temp.html
sed -i -e "s/<a href/\\n<a href/g" /tmp/temp.html
sed -i -e 's/\"/\"><\/a>\n/2' /tmp/temp.html
cat /tmp/temp.html | grep href | grep dsc > /tmp/index.html
sed -i -e 's/<a href="//g' /tmp/index.html
sed -i -e 's/"><\/a>//g' /tmp/index.html
}
generic_http_tar () {
echo "Checking: ${package_name}"
if [ -f /tmp/index.html ] ; then
rm -f /tmp/index.html
fi
wget --no-verbose --directory-prefix=/tmp/ ${site}/${package_name}/ &> /dev/null
cat /tmp/index.html | grep "<a href=" > /tmp/temp.html
sed -i -e "s/<a href/\\n<a href/g" /tmp/temp.html
sed -i -e 's/\"/\"><\/a>\n/2' /tmp/temp.html
cat /tmp/temp.html | grep tar | grep tar > /tmp/index.html
sed -i -e 's/<a href="//g' /tmp/index.html
sed -i -e 's/"><\/a>//g' /tmp/index.html
sed -i -e 's/>//g' /tmp/index.html
}
generic_check () {
if [ ! "x${version}" = "x" ] ; then
if [ ! "x${package_version}" = "x${version}" ] ; then
echo "PACKAGE UPDATE: ${package_name}: debian-repo:${version} bb.org-repo:${package_version}"
echo ""
fi
else
echo "Fail: [${site}/${package_name}/]"
echo ""
fi
}
check_http_tar () {
generic_http_tar
version=$(cat /tmp/index.html | grep tar | tail -n 1 | awk -F ".tar.gz" '{print $1}')
generic_check
}
check_http_exp () {
generic_http
version=$(cat /tmp/index.html | grep -v bpo | grep dsc | tail -n 1 | awk -F ".dsc" '{print $1}')
generic_check
}
check_http () {
generic_http
if [ "x${filter}" = "x" ] ; then
version=$(cat /tmp/index.html | grep -v '~deb' | grep -v exp | grep -v bpo | grep dsc | tail -n 1 | awk -F ".dsc" '{print $1}')
else
version=$(cat /tmp/index.html | grep ${filter} | grep -v '~deb' | grep -v exp | grep -v bpo | grep dsc | tail -n 1 | awk -F ".dsc" '{print $1}')
unset filter
fi
generic_check
}
check_http_machine () {
generic_http
version=$(cat /tmp/index.html | grep jessie | grep dsc | tail -n 1 | awk -F ".dsc" '{print $1}')
generic_check
}
check () {
echo "Checking: ${package_name}"
output=$(rmadison -s ${suite} ${package_name} | grep ${package_name})
version=$(echo ${output} | awk '{print $3}')
if [ ! "x${version}" = "x" ] ; then
if [ ! "x${package_version}" = "x${version}" ] ; then
echo "Change: ${package_name}: ${suite}:${version} local:${package_version}"
echo ""
fi
else
echo ${output}
fi
}
important () {
echo "important"
site="${debian_pool}/main/p"
package_name="pastebinit" ; package_version="${package_name}_1.5-1" ; check_http
site="${debian_pool}/non-free/f"
package_name="firmware-nonfree" ; package_version="${package_name}_20161130-3" ; check_http
}
builds () {
echo "build tools:"
site="${debian_pool}/main/c"
package_name="cmake" ; package_version="${package_name}_3.5.2-2" ; check_http
site="${debian_pool}/main/p"
package_name="pkg-kde-tools" ; package_version="${package_name}_0.15.20" ; check_http
site="${debian_pool}/main/e"
package_name="extra-cmake-modules" ; package_version="${package_name}_5.19.0-1" ; check_http
}
mesa () {
echo "llvm/mesa:"
site="${debian_pool}/main/l"
#https://packages.debian.org/source/stretch/llvm-toolchain-3.7
package_name="llvm-toolchain-3.7" ; package_version="${package_name}_3.7.1-5" ; check_http
#https://packages.debian.org/source/stretch/llvm-toolchain-3.8
package_name="llvm-toolchain-3.8" ; package_version="${package_name}_3.8.1-24" ; check_http
#https://packages.debian.org/source/stretch/llvm-toolchain-3.9
package_name="llvm-toolchain-3.9" ; package_version="${package_name}_3.9.1-10" ; check_http
#https://packages.debian.org/source/sid/llvm-toolchain-4.0
package_name="llvm-toolchain-4.0" ; package_version="${package_name}_4.0.1-1" ; check_http
site="${debian_pool}/main/libc"
filter="0.2"
package_name="libclc" ; package_version="${package_name}_0.2.0+git20170330-2" ; check_http
site="${debian_pool}/main/libd"
package_name="libdrm" ; package_version="${package_name}_2.4.82-1" ; check_http
site="${debian_pool}/main/libv"
package_name="libvdpau" ; package_version="${package_name}_1.1.1-6" ; check_http
site="${debian_pool}/main/libv"
package_name="libva" ; package_version="${package_name}_1.8.3-1" ; check_http
site="${debian_pool}/main/w"
package_name="wayland" ; package_version="${package_name}_1.12.0-1" ; check_http
site="${debian_pool}/main/m"
package_name="mesa" ; package_version="${package_name}_17.1.5-1" ; check_http
package_name="mesa-demos" ; package_version="${package_name}_8.3.0-3" ; check_http
}
qt5_kde () {
echo "qt5: kde:"
site="${debian_pool}/main/s"
package_name="solid" ; package_version="${package_name}_5.19.0-2" ; check_http
site="${debian_pool}/main/k"
package_name="kcoreaddons" ; package_version="${package_name}_5.19.0-1" ; check_http
package_name="kguiaddons" ; package_version="${package_name}_5.19.0-1" ; check_http
package_name="kwindowsystem" ; package_version="${package_name}_5.19.0-1" ; check_http
}
qt5_apps () {
echo "qt5: apps:"
site="${debian_pool}/main/q"
package_name="qupzilla" ; package_version="${package_name}_1.8.9~dfsg1-3" ; check_http
package_name="qtermwidget" ; package_version="${package_name}_0.6.0-10" ; check_http
package_name="qterminal" ; package_version="${package_name}_0.6.0-10" ; check_http
package_name="qlipper" ; package_version="${package_name}_5.0.0+20151111-1" ; check_http
package_name="qps" ; package_version="${package_name}_1.10.16+20151210-1" ; check_http
echo "connman/cmst:"
site="http://packages.siduction.org/extra/pool/main/c"
filter="1.3"
package_name="connman" ; package_version="${package_name}_1.31-6" ; check_http
site="${debian_pool}/main/c"
package_name="cmst" ; package_version="${package_name}_2016.01.28-2" ; check_http
}
qt5_lxqt () {
echo "lxqt: debian"
site="${debian_pool}/main/libd"
package_name="libdbusmenu-qt" ; package_version="${package_name}_0.9.3+15.10.20150604-1" ; check_http
site="${debian_pool}/main/p"
package_name="policykit-1" ; package_version="${package_name}_0.113-2" ; check_http
site="${debian_pool}/main/p"
package_name="polkit-qt-1" ; package_version="${package_name}_0.112.0-4" ; check_http
site="${debian_pool}/main/o"
package_name="obconf-qt" ; package_version="${package_name}_0.1.2-8" ; check_http
#https://github.com/lxde/compton-conf
#resync version with stretch and drop...
site="${debian_pool}/main/c"
package_name="compton-conf" ; package_version="${package_name}_0.1.2-8" ; check_http
#https://tracker.debian.org/pkg/libqtxdg
site="${debian_pool}/main/libq"
package_name="libqtxdg" ; package_version="${package_name}_1.3.0-3" ; check_http
#https://tracker.debian.org/pkg/libsysstat
site="${debian_pool}/main/libs"
package_name="libsysstat" ; package_version="${package_name}_0.3.1-2" ; check_http
#https://tracker.debian.org/pkg/screengrab
site="${debian_pool}/main/s"
package_name="screengrab" ; package_version="${package_name}_1.95+20160128-1" ; check_http
#https://tracker.debian.org/pkg/liblxqt
site="${debian_pool}/main/libl"
package_name="liblxqt" ; package_version="${package_name}_0.10.0-4" ; check_http
#https://tracker.debian.org/pkg/lxqt-about
site="${debian_pool}/main/l"
package_name="lxqt-about" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-admin
site="${debian_pool}/main/l"
package_name="lxqt-admin" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-common
site="${debian_pool}/main/l"
package_name="lxqt-common" ; package_version="${package_name}_0.10.0-2" ; check_http
#https://tracker.debian.org/pkg/lxqt-globalkeys
site="${debian_pool}/main/l"
package_name="lxqt-globalkeys" ; package_version="${package_name}_0.10.0-5" ; check_http
#https://tracker.debian.org/pkg/lxqt-openssh-askpass
site="${debian_pool}/main/l"
package_name="lxqt-openssh-askpass" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-notificationd
site="${debian_pool}/main/l"
package_name="lxqt-notificationd" ; package_version="${package_name}_0.10.0-2" ; check_http
#https://tracker.debian.org/pkg/lxqt-powermanagement
site="${debian_pool}/main/l"
package_name="lxqt-powermanagement" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-policykit
site="${debian_pool}/main/l"
package_name="lxqt-policykit" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-qtplugin
site="${debian_pool}/main/l"
package_name="lxqt-qtplugin" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-session
site="${debian_pool}/main/l"
package_name="lxqt-session" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-sudo
site="${debian_pool}/main/l"
package_name="lxqt-sudo" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/libfm-qt
site="${debian_pool}/main/libf"
package_name="libfm-qt" ; package_version="${package_name}_0.10.0+20151214-2" ; check_http
#https://tracker.debian.org/pkg/pcmanfm-qt
site="${debian_pool}/main/p"
package_name="pcmanfm-qt" ; package_version="${package_name}_0.10.1-1" ; check_http
#https://tracker.debian.org/pkg/lxqt-runner
site="${debian_pool}/main/l"
package_name="lxqt-runner" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-config
site="${debian_pool}/main/l"
package_name="lxqt-config" ; package_version="${package_name}_0.10.0-3" ; check_http
#https://tracker.debian.org/pkg/lxqt-panel
site="${debian_pool}/main/l"
package_name="lxqt-panel" ; package_version="${package_name}_0.10.0-7" ; check_http
#https://tracker.debian.org/pkg/lximage-qt
site="${debian_pool}/main/l"
package_name="lximage-qt" ; package_version="${package_name}_0.4.0+20160108-1" ; check_http
}
machinekit () {
echo "machinekit:"
site="${debian_pool}/main/c"
package_name="czmq" ; package_version="${package_name}_3.0.2-2" ; check_http
#site="http://deb.dovetail-automata.com/pool/main/libw"
#package_name="libwebsockets" ; package_version="${package_name}_1.3-1%7egit95a8abb%7e1431844465git95a8abb%7e1jessie%7e1da" ; check_http_machine
}
nodejs () {
echo "nodejs: (jessie)"
site="${debian_pool}/main/libu"
package_name="libuv1"; package_version="${package_name}_1.8.0-1"; check_http
site="${debian_pool}/main/g"
filter="201"
package_name="gyp"; package_version="${package_name}_0.1+20150913git1f374df9-1"; check_http
echo "nodejs: (jessie-exp)"
site="${debian_pool}/main/o"
filter="1.0.2"
package_name="openssl"; package_version="${package_name}_1.0.2f-2"; check_http
site="${debian_pool}/main/n"
filter="4.3"
package_name="nodejs"; package_version="${package_name}_4.2.6~dfsg-1"; check_http
}
libsigrok () {
#http://sigrok.org/wiki/Downloads#Binaries_and_distribution_packages
#https://launchpad.net/~daniel-elstner/+archive/ubuntu/sigrok/+packages
echo "libsigrok: (jessie)"
site="${debian_pool}/main/libr"
#https://packages.debian.org/source/sid/librevisa
# package_name="librevisa"; package_version="${package_name}_0.0.20130812+git20140327-0"; check_http
site="${sigrok_dl}"
#http://sigrok.org/download/source/libserialport/
package_name="libserialport"; package_version="${package_name}-0.1.1"; check_http_tar
#http://sigrok.org/download/source/libsigrok/
package_name="libsigrok"; package_version="${package_name}-0.5.0"; check_http_tar
#http://sigrok.org/download/source/libsigrokdecode/
package_name="libsigrokdecode"; package_version="${package_name}-0.5.0"; check_http
#http://sigrok.org/download/source/sigrok-cli/
package_name="sigrok-cli"; package_version="${package_name}-0.7.0"; check_http
#http://sigrok.org/download/source/pulseview/
package_name="pulseview"; package_version="${package_name}-0.4.0"; check_http
#https://packages.debian.org/source/sid/sigrok-firmware-fx2lafw
package_name="sigrok-firmware-fx2lafw"; package_version="${package_name}_0.1.3-0"; check_http
}
bbgw () {
site="${debian_pool}/main/s"
package_name="swig"; package_version="${package_name}_3.0.8-0"; check_http
}
chromium () {
echo "chromium-browser: (jessie)"
site="http://ports.ubuntu.com/pool/universe/c"
filter="16.04"
package_name="chromium-browser" ; package_version="${package_name}_59.0.3071.109-0ubuntu0.16.04.1289" ; check_http
echo "chromium-browser: (stretch)"
site="${debian_pool}/main/c"
package_name="chromium-browser" ; package_version="${package_name}_60.0.3112.78-1" ; check_http
}
important
#builds
mesa
#qt5_kde
#qt5_apps
#qt5_lxqt
#machinekit
#nodejs
libsigrok
#bbgw
chromium
#really slow...
exit
suite="experimental"
suite="sid"
package_name="openjfx" ; package_version="8u20-b26-3" ; check
package_name="waffle" ; package_version="1.5.1-1" ; check
package_name="xinput-calibrator" ; package_version="0.7.5+git20140213-1" ; check
package_name="xserver-xorg-video-omap" ; package_version="0.4.3-git20130328-1" ; check
package_name="xserver-xorg-video-modesetting" ; package_version="0.9.0-1" ; check
suite="jessie"
package_name="cython" ; package_version="0.19.1+git34-gac3e3a2-1" ; check
package_name="jansson"; package_version="2.7-1"; check
package_name="libsodium"; package_version="1.0.0-1"; check
package_name="npm"; package_version="1.4.21+ds-2"; check
package_name="python-sendfile" ; package_version="2.0.0-6" ; check
package_name="python-pyftpdlib" ; package_version="1.2.0-1" ; check
echo "Done:"
#