diff options
author | eik <eik@FreeBSD.org> | 2004-06-24 00:02:23 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-06-24 00:02:23 +0800 |
commit | 19edca41cbf2d972bb8b667ff6372abc9d05702c (patch) | |
tree | e66a61d86b70568d166e2d89d3aaeffd038121c1 /ports-mgmt/portaudit | |
parent | 2b51aad50e5298adf7d994607aee643e9aefa72d (diff) | |
download | freebsd-ports-gnome-19edca41cbf2d972bb8b667ff6372abc9d05702c.tar.gz freebsd-ports-gnome-19edca41cbf2d972bb8b667ff6372abc9d05702c.tar.zst freebsd-ports-gnome-19edca41cbf2d972bb8b667ff6372abc9d05702c.zip |
Add pkg-req file which was forgotten in the last commit.
Diffstat (limited to 'ports-mgmt/portaudit')
-rw-r--r-- | ports-mgmt/portaudit/pkg-req | 27 |
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 |