wok-current diff bristuff/receipt @ rev 1463

Add: ntop, ,top-dev, ntop-man
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Oct 04 10:40:21 2008 +0200 (2008-10-04)
parents
children 6fd8242e9be0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bristuff/receipt	Sat Oct 04 10:40:21 2008 +0200
     1.3 @@ -0,0 +1,93 @@
     1.4 +#!/bin/sh
     1.5 +# SliTaz package receipt.
     1.6 +
     1.7 +PACKAGE="bristuff"
     1.8 +VERSION="0.4.0-test6-xr1"
     1.9 +CATEGORY="meta"
    1.10 +SHORT_DESC="ISDN patches for Asterisk/Zaptel."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.junghanns.net/"
    1.14 +WGET_URL="http://updates.xorcom.com/astribank/bristuff/1.4/$TARBALL"
    1.15 +BUILD_DEPENDS="openssl-dev ncurses-dev zlib-dev patch libogg-dev libvorbis-dev \
    1.16 +curl-dev newt-dev libusb-dev sqlite-dev alsa-lib-dev fxload speex-dev \
    1.17 +iksemel-dev mysql-dev glibc-dev spandsp-dev tiff-dev radiusclient-ng-dev \
    1.18 +mysql libmysqlclient cmake postgresql postgresql-dev libpostgresqlclient \
    1.19 +libtool unixODBC-dev libunixODBC"
    1.20 +DEPENDS="asterisk asterisk-sound zaptel mISDNuser"
    1.21 +
    1.22 +#TODO: net-snmp(-dev) vpb-driver(-dev)
    1.23 +#Asterisk: libopenh323-dev (Not so nice addon), libsnmp-dev (Asterisk 1.4)
    1.24 +#Asterisk+=app_ivrdemo? app_osplookup app_rpt? app_skel?
    1.25 +#Asterisk+=cdr_sqlite(sqlite) res_snmp(netsnmp)
    1.26 +#Asterisk+=chan_features? chan_h323(openh323) chan_vpb(vpbapi)
    1.27 +#Asterisk+=pbx_gtkconsole(gtk) pbx_kdeconsole(qt)
    1.28 +#Asterisk+=IMAP_STORAGE(imap_tk,ssl) CORE-SOUNDS-ES-GSM CORE-SOUNDS-FR-GSM
    1.29 +#Asterisk+=MOH-FREEPLAY-GSM EXTRA-SOUNDS-EN-GSM
    1.30 +
    1.31 +# Download a source tarball
    1.32 +. /etc/tazwok.conf
    1.33 +slitaz_wget()
    1.34 +{
    1.35 +	if [ ! -f $SOURCES_REPOSITORY/$(basename $2) ]; then
    1.36 +		local here=$(pwd)
    1.37 +		cd $SOURCES_REPOSITORY
    1.38 +		wget $1 $2
    1.39 +		cd $here
    1.40 +	fi
    1.41 +	cp $SOURCES_REPOSITORY/$(basename $2) .
    1.42 +}
    1.43 +
    1.44 +# Rules to configure and make the package.
    1.45 +compile_rules()
    1.46 +{
    1.47 +	if [ ! -d ../linux/taz ]; then
    1.48 +		tazwok cook linux
    1.49 +	fi
    1.50 +	KVERS=$(grep "kernel version" ../linux/linux-*/.config)
    1.51 +	KVERS=${KVERS##* }
    1.52 +	KSRC=$(cd ../linux/linux-* ; pwd)
    1.53 +	export KVERS
    1.54 +	export KSRC
    1.55 +	cd $src
    1.56 +	eval $(grep ^ADD_VER= download.sh)
    1.57 +	slitaz_wget -c $SF_MIRROR/agx-ast-addons/agx-ast-addons-$ADD_VER.tar.bz2
    1.58 +	#bluetooth:
    1.59 +	#slitaz_wget -c http://svn.digium.com/view/asterisk-addons/trunk/channels/chan_mobile.c?view=co
    1.60 +	#slitaz_wget -c http://www.chan-mobile.org/downloads/chan_mobile-1.4.x.patch
    1.61 +	# cd asterisk-addons
    1.62 +	# patch -p0 < chan_mobile-1.4.x.patch
    1.63 +	tar xjf agx-ast-addons-$ADD_VER.tar.bz2
    1.64 +	patch -p0 < ../stuff/CMakeLists.u || return 1
    1.65 +	patch -p0 < ../stuff/bristuff.u || return 1
    1.66 +	chmod +x apply-patches.sh
    1.67 +	sh ./download.sh
    1.68 +	patch -p0 < ../stuff/sounds.u || return 1
    1.69 +	ln -s . zaptel/zaptel
    1.70 +	ln -s . zaptel/linux
    1.71 +	mkdir -p _pkg/etc/init.d _pkg/usr/include/zaptel
    1.72 +	grep -rsl "uname -r" . | xargs sed -i -e "s/uname -r/echo $KVERS/g"
    1.73 +	export BRISTUFF_ZAP_PARAMS="KBUILD_NOPEDANTIC=1"
    1.74 +	sh ./compile.sh -d $(cd _pkg; pwd) -i
    1.75 +	cp asterisk/configs/* _pkg/etc/asterisk/
    1.76 +	cd agx-ast-addons
    1.77 +	cmake "." -DCMAKE_INSTALL_PREFIX=../_pkg/usr
    1.78 +	make install
    1.79 +	cd ..
    1.80 +	ln -s libgsmat.so.1.0 _pkg/usr/lib/libgsmat.so.1
    1.81 +	cp ../stuff/*.files-list .
    1.82 +}
    1.83 +
    1.84 +
    1.85 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.86 +genpkg_rules()
    1.87 +{
    1.88 +	# Just to have a dir.
    1.89 +	mkdir -p $fs/var/lib/asterisk
    1.90 +	# Cook all packages based on bristuff
    1.91 +	for i in $(cd $WOK; grep -l '^WANTED="bristuff"$' */receipt)
    1.92 +	do
    1.93 +		tazwok cook ${i%/receipt}
    1.94 +	done
    1.95 +}
    1.96 +