wok-stable view asterisk/receipt @ rev 4865
xorg-xf86-video-*: Fix DESC.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Feb 04 22:30:57 2010 +0100 (2010-02-04) |
parents | 24ce49497140 |
children | f4fd0777003f |
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk"
4 VERSION="1.6.1.6"
5 CATEGORY="misc"
6 SHORT_DESC="Open Source PBX and telephony toolkit."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.asterisk.org/"
10 WGET_URL="http://downloads.asterisk.org/pub/telephony/asterisk/$TARBALL"
11 DEPENDS="openssl ncurses zlib libogg libvorbis curl newt libusb alsa-lib \
12 speex iksemel spandsp tiff radiusclient-ng nbs freetds libpostgresqlclient \
13 libmysqlclient libunixODBC popt dahdi libpri lua"
14 BUILD_DEPENDS="libvorbis-dev curl-dev speex-dev alsa-lib-dev popt-dev \
15 libpri-dev spandsp-dev lua-dev dahdi-dev postgresql-dev net-snmp-dev \
16 libsdl-dev nbs-dev libogg-dev libogg speex spandsp iksemel iksemel-dev \
17 gmime gmime-dev openssl-dev openssl unixODBC-dev unixODBC \
18 openldap-dev openldap portaudio-dev portaudio"
19 CONFIG_FILES="/etc/asterisk"
21 # Rules to configure and make the package.
22 #
23 # Graphical configuration: 'make menuconfig' or 'make gmenuconfig'
24 #
25 compile_rules()
26 {
27 cd $src
28 sed -i '/LOG_ERROR, "The file/ {nd}' main/config.c
29 sed -i 's/LOG_ERROR, "The file/LOG_WARNING, "The file/' main/config.c
30 sed -i 's|lua5.1/||' pbx/pbx_lua.c
31 sed -i 's/define AST_PBX_MAX_STACK.*/define AST_PBX_MAX_STACK 1024/' \
32 main/pbx.c
33 echo '' | contrib/scripts/get_ilbc_source.sh
34 sed -i '/codec_ilbc/{ns/no/yes/}' menuselect-tree
35 ./configure \
36 --prefix=/usr \
37 --sysconfdir=/etc \
38 --without-pwlib \
39 --with-dahdi=$WOK/dahdi/$(ls $WOK/dahdi/taz) \
40 $CONFIGURE_ARGS &&
41 make &&
42 make DESTDIR=$PWD/_pkg install &&
43 make DESTDIR=$PWD/_pkg samples &&
44 cd contrib/utils &&
45 gcc rawplayer.c -o $src/_pkg/usr/bin/rawplayer
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
52 cp -a $_pkg/etc $fs
53 cp -a $_pkg/var $fs
54 cp -a $_pkg/usr/bin $fs/usr
55 cp -a $_pkg/usr/lib $fs/usr
56 cp -a $_pkg/usr/sbin $fs/usr
57 cp -a stuff/* $fs
58 }
60 # Rules to configure package
61 setup_rules()
62 {
63 case "$2" in
64 mysql_host)
65 sed -i "s|^hostname=.*|hostname=$3|" $1/etc/asterisk/cdr_mysql.conf
66 sed -i "s|^dbhost=.*|dbhost=$3|" $1/etc/asterisk/res_mysql.conf
67 ;;
68 mysql_user)
69 sed -i "s|^user=.*|user=$3|" $1/etc/asterisk/cdr_mysql.conf
70 sed -i "s|^dbuser=.*|dbuser=$3|" $1/etc/asterisk/res_mysql.conf
71 ;;
72 mysql_password)
73 sed -i "s|^password=.*|password=$3|" $1/etc/asterisk/cdr_mysql.conf
74 sed -i "s|^dbpass=.*|dbpass=$3|" $1/etc/asterisk/res_mysql.conf
75 ;;
76 mysql_database)
77 sed -i "s|^dbname=.*|dbname=$3|" $1/etc/asterisk/res_mysql.conf \
78 $1/etc/asterisk/cdr_mysql.conf
79 ;;
80 pgsql_host)
81 sed -i "s|^hostname=.*|hostname=$3|" $1/etc/asterisk/cdr_pgsql.conf
82 sed -i "s|^dbhost=.*|dbhost=$3|" $1/etc/asterisk/res_pgsql.conf
83 ;;
84 pgsql_user)
85 sed -i "s|^user=.*|user=$3|" $1/etc/asterisk/cdr_pgsql.conf
86 sed -i "s|^dbuser=.*|dbuser=$3|" $1/etc/asterisk/res_pgsql.conf
87 ;;
88 pgsql_password)
89 sed -i "s|^password=.*|password=$3|" $1/etc/asterisk/cdr_pgsql.conf
90 sed -i "s|^dbpass=.*|dbpass=$3|" $1/etc/asterisk/res_pgsql.conf
91 ;;
92 pgsql_database)
93 sed -i "s|^dbname=.*|dbname=$3|" $1/etc/asterisk/res_pgsql.conf \
94 $1/etc/asterisk/cdr_pgsql.conf
95 ;;
96 *) cat <<EOT
97 mysql_host hostname or ip of mysql server
98 mysql_user username to connect to mysql server
99 mysql_password password to connect to mysql server
100 mysql_database database used by asterisk
101 pgsql_host hostname or ip of postgresql server
102 pgsql_user username to connect to postgresql server
103 pgsql_password password to connect to postgresql server
104 pgsql_database database used by asterisk
105 EOT
106 ;;
107 esac
108 }