wok view kamailio/receipt @ rev 19641

Up: opus (1.1.3)
author Alexander Medvedev <devl547@gmail.com>
date Fri Jan 20 16:48:53 2017 +0000 (2017-01-20)
parents 6d1193fe6233
children 3705d68ed8f3
line source
1 # SliTaz package receipt.
3 PACKAGE="kamailio"
4 VERSION="4.4.4"
5 CATEGORY="network"
6 SHORT_DESC="Open Source SIP Server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
10 WEB_SITE="https://www.kamailio.org/"
11 WGET_URL="${WEB_SITE}pub/kamailio/$VERSION/src/$TARBALL"
12 CONFIG_FILES="/etc/kamailio"
14 DEPENDS="libssl curl libxml2 pcre \
15 radiusclient-ng libpostgresqlclient libldap net-snmp expat"
16 BUILD_DEPENDS="flex bison openssl-dev curl-dev libxml2-dev pcre-dev \
17 radiusclient-ng-dev postgresql-dev openldap-dev net-snmp-dev expat-dev \
18 python-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 make PREFIX="/usr" include_modules="acc_radius app_python auth_radius \
24 db_postgres ldap presence_conference presence_dialoginfo presence_mwi \
25 presence_profile presence_reginfo presence_xml snmpstats xmpp dialplan" cfg
26 make all
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/var/run/kamailio
34 cp -a $install/* $fs
35 mv $fs/usr/etc $fs ; ln -s /etc $fs/usr/etc
36 }
38 # Pre and post install commands for Tazpkg.
39 post_install()
40 {
42 local user
43 local group
45 user=kamailio
46 group=kamailio
48 if ! grep -q $user $1/etc/passwd; then
49 echo -n "Adding user/group $user..."
50 chroot $1/ addgroup -S $group
51 chroot $1/ adduser -s /bin/false -S -D -H -G $group $user
52 status
53 fi
54 chroot "$1/" chown $user:$group /var/run/kamailio
55 }
57 post_remove()
58 {
59 echo "Removing user/group kamailio"
60 chroot "$1/" deluser kamailio
61 }