From b4610a422a9c5d6e3b727d84d6685678124ba2c4 Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 3 Sep 2001 20:29:21 +0000 Subject: Try to build `mkisofs' first, and only `pkg_add -r' if you cannot. --- release/amd64/mkisoimages.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'release/amd64') diff --git a/release/amd64/mkisoimages.sh b/release/amd64/mkisoimages.sh index 1360d1c..de811ab 100644 --- a/release/amd64/mkisoimages.sh +++ b/release/amd64/mkisoimages.sh @@ -39,10 +39,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 -- cgit v1.1