xref: /OK3568_Linux_fs/buildroot/package/asterisk/0004-install-samples-need-the-data-files.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom 05680ea9899c2246c23d11860c2c8e10aa8f80c7 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: "Yann E. MORIN" <yann.morin.1998@free.fr>
3*4882a593SmuzhiyunDate: Fri, 1 Dec 2017 11:08:16 +0100
4*4882a593SmuzhiyunSubject: [PATCH] install: samples need the data files
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunWhen installing samples, "sample voicemail" is generated from the
7*4882a593Smuzhiyunalready-installed sound files.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunHowever, when doing the install and the samples at the same time in a
10*4882a593Smuzhiyunparallel install, it is possible that the sound files are not already
11*4882a593Smuzhiyuninstalled at the time we try to generate the voicemail data.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunEnsure the needed dependency.
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunSigned-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
16*4882a593Smuzhiyun---
17*4882a593Smuzhiyun Makefile | 2 +-
18*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
19*4882a593Smuzhiyun
20*4882a593Smuzhiyundiff --git a/Makefile b/Makefile
21*4882a593Smuzhiyunindex f29c07f680..b58f707b61 100644
22*4882a593Smuzhiyun--- a/Makefile
23*4882a593Smuzhiyun+++ b/Makefile
24*4882a593Smuzhiyun@@ -779,7 +779,7 @@ adsi:
25*4882a593Smuzhiyun 		$(INSTALL) -m 644 "$$x" "$(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x`" ; \
26*4882a593Smuzhiyun 	done
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun-samples: adsi
29*4882a593Smuzhiyun+samples: adsi datafiles
30*4882a593Smuzhiyun 	@echo Installing other config files...
31*4882a593Smuzhiyun 	$(call INSTALL_CONFIGS,samples,.sample)
32*4882a593Smuzhiyun 	$(INSTALL) -d "$(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX"
33*4882a593Smuzhiyun--
34*4882a593Smuzhiyun2.11.0
35*4882a593Smuzhiyun
36