aboutsummaryrefslogtreecommitdiff
path: root/release/alpha/mkisoimages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'release/alpha/mkisoimages.sh')
-rw-r--r--release/alpha/mkisoimages.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/release/alpha/mkisoimages.sh b/release/alpha/mkisoimages.sh
index 224bc4db52d5..dd5f046ea78a 100644
--- a/release/alpha/mkisoimages.sh
+++ b/release/alpha/mkisoimages.sh
@@ -36,10 +36,14 @@ fi
type mkisofs 2>&1 | grep " is " >/dev/null
if [ $? -ne 0 ]; then
echo The mkisofs port is not installed. Trying to get it now.
- if ! pkg_add -r mkisofs; then
- echo "Could not get it via pkg_add - please go install this"
- echo "from the ports collection and run this script again."
- exit 2
+ if [ -f /usr/ports/sysutils/mkisofs/Makefile ]; then
+ cd /usr/ports/sysutils/mkisofs && make install && make clean
+ else
+ if ! pkg_add -r mkisofs; then
+ echo "Could not get it via pkg_add - please go install this"
+ echo "from the ports collection and run this script again."
+ exit 2
+ fi
fi
fi