aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2009-12-31 03:52:19 +0000
committerDoug Barton <dougb@FreeBSD.org>2009-12-31 03:52:19 +0000
commit68ab9109434110e3fbb99efcf7bdd6acbbc98fd1 (patch)
tree69c91c3dc328e89129b8dd497c7dae3a909ab34e /ports-mgmt
parentc78cd3746c229bbecc701ddc76d8373052cc3c06 (diff)
downloadports-68ab9109434110e3fbb99efcf7bdd6acbbc98fd1.tar.gz
ports-68ab9109434110e3fbb99efcf7bdd6acbbc98fd1.zip
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portmaster/files/portmaster.sh.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/ports-mgmt/portmaster/files/portmaster.sh.in b/ports-mgmt/portmaster/files/portmaster.sh.in
index abbe6115a93d..2fe2c33ab3ed 100644
--- a/ports-mgmt/portmaster/files/portmaster.sh.in
+++ b/ports-mgmt/portmaster/files/portmaster.sh.in
@@ -449,9 +449,15 @@ for var in "$@" ; do
esac
done
-if [ -n "$PM_PACKAGES_BUILD" -o -n "$PM_DEL_BUILD_ONLY" ]; then
- PM_BUILD_ONLY_LIST=pm_bol
- export PM_BUILD_ONLY_LIST
+if [ "$$" -eq "$PM_PARENT_PID" ]; then
+ if [ -n "$PM_PACKAGES_BUILD" -o -n "$PM_DEL_BUILD_ONLY" ]; then
+ PM_BUILD_ONLY_LIST=pm_bol
+ export PM_BUILD_ONLY_LIST
+ fi
+ if [ -n "$PM_PACKAGES" -o -n "$PM_PACKAGES_BUILD" ]; then
+ [ `/sbin/sysctl -n kern.osreldate 2>/dev/null` -lt 600400 ] &&
+ fail Package installation support requires FreeBSD 6.4 or newer
+ fi
fi
set -- $newopts