wok-current rev 22977

updated kamailio (4.4.4 -> 5.3.2)
author Hans-G?nter Theisgen
date Sat Feb 29 16:18:56 2020 +0100 (2020-02-29)
parents a9f09a1e9b06
children bf00db9e594d 7ec8a84c5522
files kamailio/receipt
line diff
     1.1 --- a/kamailio/receipt	Sat Feb 29 15:39:04 2020 +0100
     1.2 +++ b/kamailio/receipt	Sat Feb 29 16:18:56 2020 +0100
     1.3 @@ -1,30 +1,36 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="kamailio"
     1.7 -VERSION="4.4.4"
     1.8 +VERSION="5.3.2"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Open Source SIP Server."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="https://www.kamailio.org/"
    1.14 +
    1.15  TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
    1.16 -WEB_SITE="https://www.kamailio.org/"
    1.17  WGET_URL="${WEB_SITE}pub/kamailio/$VERSION/src/$TARBALL"
    1.18 +
    1.19 +DEPENDS="curl expat libldap libssl libpostgresqlclient libxml2 
    1.20 +	net-snmp pcre radiusclient-ng"
    1.21 +BUILD_DEPENDS="bison curl-dev expat-dev flex libxml2-dev 
    1.22 +	net-snmp-dev openldap-dev openssl-dev pcre-dev 
    1.23 +	postgresql-dev python-dev radiusclient-ng-dev"
    1.24 +
    1.25  CONFIG_FILES="/etc/kamailio"
    1.26  
    1.27 -DEPENDS="libssl curl libxml2 pcre \
    1.28 -radiusclient-ng libpostgresqlclient libldap net-snmp expat"
    1.29 -BUILD_DEPENDS="flex bison openssl-dev curl-dev libxml2-dev pcre-dev \
    1.30 -radiusclient-ng-dev postgresql-dev openldap-dev net-snmp-dev expat-dev \
    1.31 -python-dev"
    1.32 -
    1.33  # Rules to configure and make the package.
    1.34  compile_rules()
    1.35  {
    1.36  	sed -i 's|uname -m|echo i486|' Makefile.defs
    1.37 -	make PREFIX="/usr" include_modules="acc_radius app_python auth_radius \
    1.38 +
    1.39 +	make			\
    1.40 +		PREFIX="/usr"	\
    1.41 +		include_modules="acc_radius app_python auth_radius \
    1.42  db_postgres ldap presence_conference presence_dialoginfo presence_mwi \
    1.43 -presence_profile presence_reginfo presence_xml snmpstats xmpp dialplan" cfg
    1.44 -	make all
    1.45 +presence_profile presence_reginfo presence_xml snmpstats xmpp dialplan" \
    1.46 +		cfg &&
    1.47 +	make all &&
    1.48  	make DESTDIR=$DESTDIR install
    1.49  }
    1.50  
    1.51 @@ -32,8 +38,10 @@
    1.52  genpkg_rules()
    1.53  {
    1.54  	mkdir -p $fs/var/run/kamailio
    1.55 -	cp -a $install/* $fs
    1.56 -	mv $fs/usr/etc $fs ; ln -s /etc $fs/usr/etc
    1.57 +
    1.58 +	cp -a $install/*	$fs
    1.59 +	mv $fs/usr/etc		$fs
    1.60 +	ln -s /etc $fs/usr/etc
    1.61  }
    1.62  
    1.63  # Pre and post install commands for Tazpkg.
    1.64 @@ -46,7 +54,8 @@
    1.65  	user=kamailio
    1.66  	group=kamailio
    1.67  	
    1.68 -	if ! grep -q $user $1/etc/passwd; then
    1.69 +	if ! grep -q $user $1/etc/passwd
    1.70 +	  then
    1.71  		echo -n "Adding user/group $user..."
    1.72  		chroot $1/ addgroup -S $group
    1.73  		chroot $1/ adduser -s /bin/false -S -D -H -G $group $user