blob: 2408b46c6950f7553a5f8ce9c11e44b1dfb470f0 (
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
|
#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
libudns)
# dns_version() returns this string
grep -aqF "$PKG_VERSION" /usr/lib/libudns.so.0
;;
udns-dnsget)
dnsget -h 2>&1 | grep -F "udns version $PKG_VERSION"
;;
udns-rblcheck)
rblcheck -h 2>&1 | grep -F "udns-rblcheck $PKG_VERSION"
;;
udns-ex-rdns)
# ex-rdns is an example program and has no version or help output;
# check the library it runs against instead.
grep -aqF "$PKG_VERSION" /usr/lib/libudns.so.0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
|