Enable version checking for the main perl package.
Previously, the version check for perl was skipped. Add a check
that runs perl -v and verifies that the output matches PKG_VERSION.
Signed-off-by: Josef Schlehofer <redacted>
#!/bin/sh
-# Perl script wrappers do not output the OpenWrt package version string
-case "$1" in
- perlbase-archive|perlbase-pod|perlbase-test) exit 0 ;;
+case "$PKG_NAME" in
+perl)
+ perl -v 2>&1 | grep -q "v$PKG_VERSION"
+ ;;
+perlbase-archive|perlbase-pod|perlbase-test)
+ # Perl script wrappers do not output the OpenWrt package version string
+ exit 0
+ ;;
esac