Changeset 5611

Collect all system integration bits together and make them work

Rewrite safe_callweaver wrapper. Make it work. Make it robust. Make it do the
Right Thing. Probably.

Move all contrib init scripts to the system dir and fix them up with the
right paths at build time. Install the right one for systems we
recognise.

Comitted by:  mjagdis
Date:  Feb 05 2010 * 00:41 (over 2 years ago)

Affected files:

callweaver/trunk/Makefile.am (unified diff)

r5564r5611
3737 EXTRA_DIST = substitute.mak
3838
3939 utilitydir = ${cwutilsdir}
40 utility_SCRIPTS = callweaver_cli safe_callweaver
40 utility_SCRIPTS = callweaver_cli
4141 CLEANFILES = $(utility_SCRIPTS)
4242
4343 @substitute@
------
4646 $(substitute) $(top_srcdir)/callweaver_cli.in > callweaver_cli
4747 chmod +x callweaver_cli
4848
49 safe_callweaver:
50 $(substitute) $(top_srcdir)/safe_callweaver.in > safe_callweaver
51 chmod +x safe_callweaver
52
5349 #############
5450 # MAN PAGES #
5551 #############
------
5955 if test ! -d $(DESTDIR)${cwmandir}/man8; then \
6056 mkdir -p $(DESTDIR)${cwmandir}/man8 ; \
6157 fi ; \
62 cp $(top_srcdir)/callweaver.8 $(DESTDIR)${cwmandir}/man8/. ; \
63 cp $(top_srcdir)/safe_callweaver.8 $(DESTDIR)${cwmandir}/man8/. ;
58 cp $(top_srcdir)/callweaver.8 $(DESTDIR)${cwmandir}/man8/. ;
6459 endif
6560
6661 uninstall-man-pages:
------
145140 SUBDIRS = utils libltdl libs
146141 SUBDIRS += stdtime include corelib . pbx funcs
147142 SUBDIRS += cdr apps codecs formats channels ogi res configs
143 SUBDIRS += system
148144
149145 ############################
150146 # INSTALLATION DIRECTORIES #

callweaver/trunk/configure.ac (unified diff)

r5595r5611
4949 AC_PATH_PROGS(CAT,cat,[echo cat not found, Doh!])
5050 AC_PATH_PROGS(TR,tr,[echo tr not found, need this for upper/lowercase conversions])
5151 AC_PATH_PROGS(UNAME,uname,[echo uname not found so no version info will be available])
52 AC_PROG_LN_S
5253 AC_PROG_CXX
5354 AC_PROG_YACC
5455 AC_PROG_CC
------
26462647 ogi/ogi-test.ogi
26472648 ogi/fastogi-test
26482649 formats/Makefile
2650 system/Makefile
26492651 ])
26502652
26512653 dnl # channels/sofia/Makefile