From: Andreas Eversberg Date: Sat, 11 Oct 2008 06:51:38 +0000 (+0200) Subject: now chan_lcr.so is moved to asterisk' modules directory when installing. X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=8033d9a61ad5d5dfb745495a1c7808df650595f9 now chan_lcr.so is moved to asterisk' modules directory when installing. modified: Makefile.am modified: Makefile.in modified: autogen.sh --- diff --git a/Makefile.am b/Makefile.am index 762c1b3..8eebb53 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,6 +28,8 @@ INSTALLdir = /usr/local/lcr +astmoddir = /usr/lib/asterisk/modules + INSTALLATION_DEFINES = \ -DCONFIG_DATA="\"$(INSTALLdir)\"" \ -DSHARE_DATA="\"$(INSTALLdir)\"" \ @@ -112,6 +114,10 @@ install-data-hook: @if test -a $(INSTALLdir)/tones_efi ; then \ echo "NOTE: special efi tones already exists, not overwritten." ; else \ cp -a tones_efi $(INSTALLdir) ; fi +if ENABLE_ASTERISK_CHANNEL_DRIVER + @echo "Moving chan_lcr.so (if it fails, do it manually)" + mv $(sbindir)/chan_lcr.so $(astmoddir) +endif # test rule, nothing important #echo: diff --git a/Makefile.in b/Makefile.in index 5489191..bbe9f66 100644 --- a/Makefile.in +++ b/Makefile.in @@ -216,6 +216,7 @@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INSTALLdir = /usr/local/lcr +astmoddir = /usr/lib/asterisk/modules INSTALLATION_DEFINES = \ -DCONFIG_DATA="\"$(INSTALLdir)\"" \ -DSHARE_DATA="\"$(INSTALLdir)\"" \ @@ -767,6 +768,8 @@ install-data-hook: @if test -a $(INSTALLdir)/tones_efi ; then \ echo "NOTE: special efi tones already exists, not overwritten." ; else \ cp -a tones_efi $(INSTALLdir) ; fi +@ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE@ @echo "Moving chan_lcr.so (if it fails, do it manually)" +@ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE@ mv $(sbindir)/chan_lcr.so $(astmoddir) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/autogen.sh b/autogen.sh old mode 100644 new mode 100755