wok view kamailio/receipt @ rev 20268
syslinux/isohybrid.sh: align efi partition to next MB
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 16 23:25:35 2018 +0100 (2018-03-16) |
parents | 099a4d67f199 |
children | 67b6f615fc27 |
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 sed -i 's|uname -m|echo i486|' Makefile.defs
24 make PREFIX="/usr" include_modules="acc_radius app_python auth_radius \
25 db_postgres ldap presence_conference presence_dialoginfo presence_mwi \
26 presence_profile presence_reginfo presence_xml snmpstats xmpp dialplan" cfg
27 make all
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/var/run/kamailio
35 cp -a $install/* $fs
36 mv $fs/usr/etc $fs ; ln -s /etc $fs/usr/etc
37 }
39 # Pre and post install commands for Tazpkg.
40 post_install()
41 {
43 local user
44 local group
46 user=kamailio
47 group=kamailio
49 if ! grep -q $user $1/etc/passwd; then
50 echo -n "Adding user/group $user..."
51 chroot $1/ addgroup -S $group
52 chroot $1/ adduser -s /bin/false -S -D -H -G $group $user
53 status
54 fi
55 chroot "$1/" chown $user:$group /var/run/kamailio
56 }
58 post_remove()
59 {
60 echo "Removing user/group kamailio"
61 chroot "$1/" deluser kamailio
62 }