The line AST_SBIN=__ASTERISK_SBIN_DIR__ appear in the script when you copy it from the contribs directory. If you edit the script and change the word “ASTERISK_SBIN_DIR” to “/usr/sbin” then the script will work.
This feels wrong to me. Was there supposed to be a configure macro that changes this value?
I note that this is in the tarball for 1.6.2.11. The previous version I built was 1.6.1.0 which had the correct directory name at this place in the script.
That option is new to me and its not mentioned in README which is where I would expect to find it. It is not mentioned in any of the notices at the end of the other make commands which I find are a great way to get this information across.
I tried it but got the “nothing to do” error. Then I read through the Makefile and realised it is “make config”, which needs to be run as root as it installs files in sacred places.