bininstall: all if [ "$(OSARCH)" == "Darwin" ]; then \ g=`nireport / /groups gid | sort -n | tail -n 1`; \ g=`echo $$g + 1 | bc`; \ if [ $$g -lt 250 ]; then \ g=250; \ fi; \ u=`nireport / /users uid | sort -n | tail -n 1`; \ u=`echo $$u + 1 | bc`; \ if [ $$u -lt 250 ]; then \ u=250; \ fi; \ if [ "`nireport / /groups name gid | $(GREP) $(OPBXRUNGROUP)`" = "" ]; then \ niutil -create / /groups/$(OPBXRUNGROUP); \ niutil -createprop / /groups/$(OPBXRUNGROUP) gid $$g; \ fi; \ if [ "`nireport / /users name uid | $(GREP) $(OPBXRUNUSER)`" = "" ]; then \ niutil -create / /users/$(OPBXRUNUSER); \ niutil -createprop / /users/$(OPBXRUNUSER) gid $$g; \ niutil -createprop / /users/$(OPBXRUNUSER) uid $$u; \ niutil -createprop / /users/$(OPBXRUNUSER) home $(DESTDIR)$(OPBXVARRUNDIR); \ fi; \ else \ $(GROUPADDBIN) -f $(OPBXRUNGROUP); \ if [ "`cat /etc/passwd | $(GREP) -e '^$(OPBXRUNUSER):'`" = "" ]; then \ $(USERADDBIN) -d $(DESTDIR)$(OPBXVARRUNDIR) -s /bin/false -g $(OPBXRUNGROUP) -G $(OPBXRUNGROUP) $(OPBXRUNUSER) ; \ fi; \ fi mkdir -p $(DESTDIR)$(MODULES_DIR) mkdir -p $(DESTDIR)$(OPBXSBINDIR) ---------- failing mkdir -p /usr/local/openpbx/var/agi-bin if [ "Darwin" == "Darwin" ]; then \ g=`nireport / /groups gid | sort -n | tail -n 1`; \ g=`echo $g + 1 | bc`; \ if [ $g -lt 250 ]; then \ g=250; \ fi; \ u=`nireport / /users uid | sort -n | tail -n 1`; \ u=`echo $u + 1 | bc`; \ if [ $u -lt 250 ]; then \ u=250; \ fi; \ if [ "`nireport / /groups name gid | /usr/bin/grep openpbx`" = "" ]; then \ niutil -create / /groups/openpbx; \ niutil -createprop / /groups/openpbx gid $g; \ fi; \ /bin/sh: -c: line 2: syntax error: unexpected end of file make: *** [bininstall] Error 2