aboutsummaryrefslogtreecommitdiff
path: root/network/asterisk/asterisk.SlackBuild
diff options
context:
space:
mode:
authormario <mario@slackverse.org>2013-03-11 19:29:58 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-03-22 07:16:38 -0400
commitab436a6596902aa539885b644b699db8ab0fd6e4 (patch)
treea89f20060d2a952c91c9f1118e3ab56dfb8f0e57 /network/asterisk/asterisk.SlackBuild
parent9cd7e497b231f28e93e626c08312d4730a314a59 (diff)
network/asterisk: Updated for version 1.8.20.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/asterisk/asterisk.SlackBuild')
-rw-r--r--network/asterisk/asterisk.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/network/asterisk/asterisk.SlackBuild b/network/asterisk/asterisk.SlackBuild
index fefdb974aa899..695b17e7f398d 100644
--- a/network/asterisk/asterisk.SlackBuild
+++ b/network/asterisk/asterisk.SlackBuild
@@ -9,7 +9,7 @@
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
@@ -20,10 +20,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Updated by mario@slackverse.org, 2010-2011
+# Updated by mario@slackverse.org, 2010-2013
PRGNAM="asterisk"
-VERSION=${VERSION:-1.8.7.2}
+VERSION=${VERSION:-1.8.20.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -76,16 +76,17 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
+make menuselect.makeopts
make
-make installdirs DESTDIR=$PKG
if [ "$ADDONS" = "yes" ]; then
# Select some addons (the list is actualy inverted, and deselected addons are shown here)
- sed -i -e 's/^MENUSELECT_ADDONS=.*$/MENUSELECT_ADDONS=app_saycountpl chan_mobile format_mp3/' \
+ sed -i -e 's/^MENUSELECT_ADDONS=.*$/MENUSELECT_ADDONS=app_saycountpl chan_mobile chan_ooh323 format_mp3/' \
menuselect.makeopts
make addons DESTDIR=$PKG
fi
+make installdirs DESTDIR=$PKG
make samples DESTDIR=$PKG
make install DESTDIR=$PKG
@@ -109,12 +110,15 @@ for i in \
asterisk codecs extensions iax indications musiconhold sip modules ;
do
cat $PKG/usr/doc/$PRGNAM-$VERSION/sample_confs/${i}.conf > \
- $PKG/etc/asterisk/${i}.conf.new ;
+ $PKG/etc/asterisk/${i}.conf.new ;
done
mkdir -p $PKG/etc/rc.d
install -m 0755 contrib/init.d/rc.slackware.asterisk $PKG/etc/rc.d/rc.asterisk.new
+# Fix pid file location in rc script
+sed -i 's/asterisk.pid/asterisk\/asterisk.pid/' $PKG/etc/rc.d/rc.asterisk.new
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh