summaryrefslogtreecommitdiffstats
path: root/net/nmap/test-version.sh
blob: 888104beafe87fadf65a6c569e65bd6594ad9b44 (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
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
nmap|\
nmap-ssl|\
nmap-full)
	nmap --version 2>&1 | grep -F "$PKG_VERSION"
	;;
ncat|\
ncat-ssl|\
ncat-full)
	ncat --version 2>&1 | grep -F "$PKG_VERSION"
	;;
nping|\
nping-ssl)
	nping --version 2>&1 | grep -F "$PKG_VERSION"
	;;

#ndiff has no version information
ndiff|\
ndiff-src)
	exit 0
	;;

*)
	echo "Untested package: $PKG_NAME" >&2
	exit 1
	;;
esac