aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portaudit
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-06-23 16:02:23 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-06-23 16:02:23 +0000
commit8d9c87c405d0285a7e7ad944eca7b7b1dc486abb (patch)
treeab19d07f2a7faf0c3559a3f31c8e709f0e332101 /ports-mgmt/portaudit
parentf5b10d70f91d62c9a325d777763a30777e90589b (diff)
downloadports-8d9c87c405d0285a7e7ad944eca7b7b1dc486abb.tar.gz
ports-8d9c87c405d0285a7e7ad944eca7b7b1dc486abb.zip
Notes
Diffstat (limited to 'ports-mgmt/portaudit')
-rw-r--r--ports-mgmt/portaudit/pkg-req27
1 files changed, 27 insertions, 0 deletions
diff --git a/ports-mgmt/portaudit/pkg-req b/ports-mgmt/portaudit/pkg-req
new file mode 100644
index 000000000000..c566a36bb3b6
--- /dev/null
+++ b/ports-mgmt/portaudit/pkg-req
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+case $2 in
+INSTALL)
+ if [ -z "${PKG_INFO}" ]; then
+ if [ -x "%%LOCALBASE%%/sbin/pkg_info" ]; then
+ PKG_INFO="%%LOCALBASE%%/sbin/pkg_info"
+ else
+ PKG_INFO="/usr/sbin/pkg_info"
+ fi
+ fi
+
+ if [ ! -x "${PKG_INFO}" ]; then
+ echo "${PKG_INFO} missing, please install port sysutils/pkg_install-devel"
+ exit 1
+ fi
+
+ PKG_INSTALL_VER=`${PKG_INFO} -qP 2>/dev/null`
+ if [ -z "${PKG_INSTALL_VER}" -o "${PKG_INSTALL_VER}" -lt %%REQPKGVER%% ]; then
+ echo "${PKG_INFO} is too old, please update port sysutils/pkg_install-devel"
+ exit 1
+ fi
+ ;;
+esac