asterisk-11.x,asterisk-1.8.x: create logging cdr-csv folder during init
authorJiri Slachta <slachta@cesnet.cz>
Sat, 22 Feb 2014 20:53:52 +0000 (21:53 +0100)
committerJiri Slachta <slachta@cesnet.cz>
Sat, 22 Feb 2014 20:53:52 +0000 (21:53 +0100)
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
net/asterisk-1.8.x/Makefile
net/asterisk-1.8.x/files/asterisk.init
net/asterisk-11.x/Makefile
net/asterisk-11.x/files/asterisk.init

index e1c44763a126718af3d688749c98854d5ddd3e1a..2146bb50d99b0bc4e9126c706442f66ee3f86fba 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=asterisk18
 PKG_VERSION:=1.8.25.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
index 0ca84ec902e484c6f09af70f42271f3ac6114d4a..ec3b60bf03396e445119d589163e983920eff231 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2013 OpenWrt.org
+# Copyright (C) 2014 OpenWrt.org
 
 START=99
 APP=asterisk
@@ -17,6 +17,7 @@ start() {
        [ -d $DEST/var/lib ] || mkdir -p $DEST/var/lib
        [ -h $DEST/var/lib/asterisk ] || ln -s /usr/lib/asterisk /var/lib/asterisk
        [ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
+       [ -d $DEST/var/log/asterisk/cdr-csv/ ] || mkdir -p $DEST/var/log/asterisk/cdr-csv
 
        SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
        service_start $BIN_FILE $OPTIONS
index 11f9317ceea59b812ae259ba42fde04fd7ea4fb7..e2bdce2df8dea6e87dd454924634cf6d99638247 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=asterisk11
 PKG_VERSION:=11.7.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
index 0ca84ec902e484c6f09af70f42271f3ac6114d4a..78e891383c2ae9073cd1b17a13b8ecac72137570 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2013 OpenWrt.org
+# Copyright (C) 2014 OpenWrt.org
 
 START=99
 APP=asterisk
@@ -17,6 +17,7 @@ start() {
        [ -d $DEST/var/lib ] || mkdir -p $DEST/var/lib
        [ -h $DEST/var/lib/asterisk ] || ln -s /usr/lib/asterisk /var/lib/asterisk
        [ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys
+       [ -d $DEST/var/log/asterisk/cdr-csv ] || mkdir -p $DEST/var/log/asterisk/cdr-csv
 
        SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \
        service_start $BIN_FILE $OPTIONS