wok view kamailio/receipt @ 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 3705d68ed8f3
children 7ec8a84c5522
line source
1 # SliTaz package receipt.
3 PACKAGE="kamailio"
4 VERSION="5.3.2"
5 CATEGORY="network"
6 SHORT_DESC="Open Source SIP Server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.kamailio.org/"
11 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
12 WGET_URL="${WEB_SITE}pub/kamailio/$VERSION/src/$TARBALL"
14 DEPENDS="curl expat libldap libssl libpostgresqlclient libxml2
15 net-snmp pcre radiusclient-ng"
16 BUILD_DEPENDS="bison curl-dev expat-dev flex libxml2-dev
17 net-snmp-dev openldap-dev openssl-dev pcre-dev
18 postgresql-dev python-dev radiusclient-ng-dev"
20 CONFIG_FILES="/etc/kamailio"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|uname -m|echo i486|' Makefile.defs
27 make \
28 PREFIX="/usr" \
29 include_modules="acc_radius app_python auth_radius \
30 db_postgres ldap presence_conference presence_dialoginfo presence_mwi \
31 presence_profile presence_reginfo presence_xml snmpstats xmpp dialplan" \
32 cfg &&
33 make all &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/var/run/kamailio
42 cp -a $install/* $fs
43 mv $fs/usr/etc $fs
44 ln -s /etc $fs/usr/etc
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
51 local user
52 local group
54 user=kamailio
55 group=kamailio
57 if ! grep -q $user $1/etc/passwd
58 then
59 echo -n "Adding user/group $user..."
60 chroot $1/ addgroup -S $group
61 chroot $1/ adduser -s /bin/false -S -D -H -G $group $user
62 status
63 fi
64 chroot "$1/" chown $user:$group /var/run/kamailio
65 }
67 post_remove()
68 {
69 echo "Removing user/group kamailio"
70 chroot "$1/" deluser kamailio
71 }