aboutsummaryrefslogtreecommitdiff
path: root/network/asterisk/asterisk.SlackBuild
diff options
context:
space:
mode:
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