Lines 150-156
Link Here
|
150 |
@echo " + $(MAKE) install +" |
150 |
@echo " + $(MAKE) install +" |
151 |
@echo " +-------------------------------------------+" |
151 |
@echo " +-------------------------------------------+" |
152 |
|
152 |
|
153 |
all: depend asterisk subdirs |
153 |
all: depend configs/asterisk.conf.sample asterisk subdirs |
154 |
|
154 |
|
155 |
editline/config.h: |
155 |
editline/config.h: |
156 |
cd editline && unset CFLAGS LIBS && ./configure ; \ |
156 |
cd editline && unset CFLAGS LIBS && ./configure ; \ |
Lines 243-248
Link Here
|
243 |
done |
243 |
done |
244 |
mkdir -p $(AGI_DIR) |
244 |
mkdir -p $(AGI_DIR) |
245 |
|
245 |
|
|
|
246 |
# Added for Gentoo to pick up the proper directories. |
247 |
configs/asterisk.conf.sample: |
248 |
echo "[directories]" > configs/asterisk.conf.sample |
249 |
echo "astetcdir => $(ASTETCDIR)" >> configs/asterisk.conf.sample |
250 |
echo "astmoddir => $(MODULES_DIR)" >> configs/asterisk.conf.sample |
251 |
echo "astvarlibdir => $(ASTVARLIBDIR)" >> configs/asterisk.conf.sample |
252 |
echo "astagidir => $(AGI_DIR)" >> configs/asterisk.conf.sample |
253 |
echo "astspooldir => $(ASTSPOOLDIR)" >> configs/asterisk.conf.sample |
254 |
echo "astrundir => $(ASTVARRUNDIR)" >> configs/asterisk.conf.sample |
255 |
echo "astlogdir => $(ASTLOGDIR)" >> configs/asterisk.conf.sample |
256 |
|
246 |
update: |
257 |
update: |
247 |
@if [ -d CVS ]; then \ |
258 |
@if [ -d CVS ]; then \ |
248 |
echo "Updating from CVS..." ; \ |
259 |
echo "Updating from CVS..." ; \ |
Lines 326-339
Link Here
|
326 |
fi ; \ |
337 |
fi ; \ |
327 |
install $$x $(ASTETCDIR)/`basename $$x .sample` ;\ |
338 |
install $$x $(ASTETCDIR)/`basename $$x .sample` ;\ |
328 |
done |
339 |
done |
329 |
echo "[directories]" > $(ASTETCDIR)/asterisk.conf |
340 |
|
330 |
echo "astetcdir => $(ASTETCDIR)" >> $(ASTETCDIR)/asterisk.conf |
|
|
331 |
echo "astmoddir => $(MODULES_DIR)" >> $(ASTETCDIR)/asterisk.conf |
332 |
echo "astvarlibdir => $(ASTVARLIBDIR)" >> $(ASTETCDIR)/asterisk.conf |
333 |
echo "astagidir => $(AGI_DIR)" >> $(ASTETCDIR)/asterisk.conf |
334 |
echo "astspooldir => $(ASTSPOOLDIR)" >> $(ASTETCDIR)/asterisk.conf |
335 |
echo "astrundir => $(ASTVARRUNDIR)" >> $(ASTETCDIR)/asterisk.conf |
336 |
echo "astlogdir => $(ASTLOGDIR)" >> $(ASTETCDIR)/asterisk.conf |
337 |
for x in sounds/demo-*; do \ |
341 |
for x in sounds/demo-*; do \ |
338 |
if grep -q "^%`basename $$x`%" sounds.txt; then \ |
342 |
if grep -q "^%`basename $$x`%" sounds.txt; then \ |
339 |
install $$x $(ASTVARLIBDIR)/sounds ; \ |
343 |
install $$x $(ASTVARLIBDIR)/sounds ; \ |