now chan_lcr.so is moved to asterisk' modules directory when installing.
authorAndreas Eversberg <andreas@eversberg.eu>
Sat, 11 Oct 2008 06:51:38 +0000 (08:51 +0200)
committerAndreas Eversberg <andreas@eversberg.eu>
Sat, 11 Oct 2008 06:51:38 +0000 (08:51 +0200)
modified:   Makefile.am
modified:   Makefile.in
modified:   autogen.sh

Makefile.am
Makefile.in
autogen.sh [changed mode: 0644->0755]

index 762c1b3..8eebb53 100644 (file)
@@ -28,6 +28,8 @@
 
 INSTALLdir = /usr/local/lcr
 
 
 INSTALLdir = /usr/local/lcr
 
+astmoddir = /usr/lib/asterisk/modules
+
 INSTALLATION_DEFINES = \
  -DCONFIG_DATA="\"$(INSTALLdir)\"" \
  -DSHARE_DATA="\"$(INSTALLdir)\"" \
 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 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:
 
 # test rule, nothing important
 #echo:
index 5489191..bbe9f66 100644 (file)
@@ -216,6 +216,7 @@ sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 INSTALLdir = /usr/local/lcr
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 INSTALLdir = /usr/local/lcr
+astmoddir = /usr/lib/asterisk/modules
 INSTALLATION_DEFINES = \
  -DCONFIG_DATA="\"$(INSTALLdir)\"" \
  -DSHARE_DATA="\"$(INSTALLdir)\"" \
 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
        @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:
 # 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:
old mode 100644 (file)
new mode 100755 (executable)