diff --git a/configure.ac b/configure.ac index e6cecc5fd3..1e8484a175 100644 --- a/configure.ac +++ b/configure.ac @@ -90,6 +90,8 @@ if test "${enable_fhs}" = "yes"; then eval localstatedir=$full_localstatedir eval libdir=$libdir default_cachedir="${localstatedir}/cache/freeswitch" + rundir="${localstatedir}/run/freeswitch" + logdir="${localstatedir}/log/freeswitch" localstatedir="${localstatedir}/lib/freeswitch" default_scriptdir="${datadir}/scripts" default_grammardir="${datadir}/grammar" @@ -101,8 +103,6 @@ if test "${enable_fhs}" = "yes"; then default_storagedir="${localstatedir}/storage" default_recordingsdir="${localstatedir}/recordings" default_imagesdir="${localstatedir}/images" - rundir="${localstatedir}/run/freeswitch" - logdir="${localstatedir}/log/freeswitch" eval confdir="${sysconfdir}/freeswitch" eval default_certsdir="${confdir}/tls" else diff --git a/debian/rules b/debian/rules index 8f4ce2de02..67cf9e470c 100755 --- a/debian/rules +++ b/debian/rules @@ -72,24 +72,10 @@ override_dh_auto_clean: cp debian/modules_.conf modules.conf ./configure -C --enable-portable-binary --disable-dependency-tracking \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr --localstatedir=/var --sysconfdir=/etc \ --with-gnu-ld --with-python --with-erlang --with-openssl \ - --sysconfdir=/etc \ --enable-core-odbc-support --enable-zrtp \ --enable-core-pgsql-support \ - --prefix=/usr --localstatedir=/var \ - --sysconfdir=/etc \ - --with-modinstdir=/usr/lib/freeswitch/mod \ - --with-rundir=/var/run/freeswitch \ - --with-logfiledir=/var/log/freeswitch \ - --with-dbdir=/var/lib/freeswitch/db \ - --with-htdocsdir=/usr/share/freeswitch/htdocs \ - --with-soundsdir=/usr/share/freeswitch/sounds \ - --with-storagedir=/var/lib/freeswitch/storage \ - --with-cachedir=/var/cache/freeswitch \ - --with-grammardir=/usr/share/freeswitch/grammar \ - --with-certsdir=/etc/freeswitch/tls \ - --with-scriptdir=/usr/share/freeswitch/scripts \ - --with-recordingsdir=/var/lib/freeswitch/recordings \ --enable-static-v8 --disable-parallel-build-v8 touch $@