Summary:ASTERISK-06783: [patch] data dir for read-only data
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2006-04-14 07:49:15Date Closed:2006-04-17 12:12:26
Versions:Frequency of
Environment:Attachments:( 0) datadir.diff
( 1) datadir-r20357-20060415-1625.diff
( 2) Makefile-r38-20060415-1610.diff
Description:The default of Asterisk is to install most things under /var/lib/asterisk (varlibdir) . In the conventions of Linux systems that directory is intended for "state information" of applications.


Most of the data under /var/lib/asterisk does not change at the run-time of Asterisk: sounds, images, http-static, are all non-varianting.

According to the convensions of Linux systems non-varianting data better reside under /usr , with architecture-specific data under /usr/lib and architechture-independent data under /usr/share . For that reason the Debian packages of Asterisk have moved much of the installation of Asterisk to reside under /usr/share/asterisk .


The suggested patch splits "astvarlibdir" (/va/lisb/asterisk) to the original "astvarlibdir" and "astdatadir". The data dir still defaults to the same location as the varlib dir but now can easily be changed.

Note that such a change is also useful for anybody who installs Asterisk on a system with limited writable space. /usr/ is intended to contain constant data (e.g.: can be mounted on a read-only NFS share).
Comments:By: Joshua C. Colp (jcolp) 2006-04-15 17:54:26

Voila, in trunk starting at revision 20330. Thanks!

By: Jason Parker (jparker) 2006-04-15 18:27:33

two new patches - enjoy

By: Joshua C. Colp (jcolp) 2006-04-17 12:12:25

This concludes our programming action. Please tune in next week for Hack The Nation!