[asterisk-dev] updated: Re: DESTDIR vs INSTALL_PATH ?
Simon Perreault
simon.perreault at viagenie.ca
Sun Dec 9 09:40:39 CST 2007
On Sunday 09 December 2007 10:25:29 Luigi Rizzo wrote:
> 1. comment out the [directories] section in the generated asterisk.conf
> because one can already make use of the default created at build time.
> This can be changed easily by turning the section into a prototype:
>
> - echo "[directories]" ; \
> + echo "[directories](!) ; remove the (!) to enable this" ; \
+1
> 2. (less important because it can be fixed from the command line)
> if DESTDIR is not set, inherit the value from INSTALL_PATH
>
> -#DESTDIR?=/tmp/asterisk
> DESTDIR?=${INSTALL_PATH}
No, this does not reflect the common usage of DESTDIR. Assuming INSTALL_PATH
contains what is passed to --prefix, then a file is usually installed to
$(DESTDIR)$(INSTALL_PATH)/blah/here
So the default value of DESTDIR is empty. In the previous example of RPM
building, files get installed somewhere like this:
/tmp/rpmbuild-XXX/usr/sbin/asterisk
/tmp/rpmbuild-XXX/etc/asterisk/asterisk.conf
...
In that case, DESTDIR=/tmp/rpmbuild-XXX and INSTALL_PATH=/usr (which gets
overridden for /etc/asterisk).
More information about the asterisk-dev
mailing list