wok view kamailio/receipt @ rev 24864

updated lsof (4.93.2 -> 4.94.0)
author Hans-G?nter Theisgen
date Wed Mar 30 06:22:51 2022 +0100 (2022-03-30)
parents 2a0479881723
children
line source
1 # SliTaz package receipt.
3 PACKAGE="kamailio"
4 VERSION="5.5.4"
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 libpostgresqlclient libssl libxml2
15 net-snmp pcre radiusclient-ng"
16 BUILD_DEPENDS="bash bison curl-dev expat-dev flex glibc-dev 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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://www.kamailio.org/pub/kamailio/latest/src/ 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)_src.*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 sed -i 's|uname -m|echo i486|' \
33 src/Makefile.defs
34 patch --strip=0 --input=$stuff/patches/Makefile.defs-5.5.4
36 make cfg \
37 prefix=/usr \
38 RUNBASEDIR=/ \
39 include_modules="acc_radius app_python auth_radius \
40 db_postgres ldap presence_conference presence_dialoginfo presence_mwi \
41 presence_profile presence_reginfo presence_xml snmpstats xmpp dialplan" &&
42 make all \
43 prefix=/usr &&
44 make install \
45 prefix=/usr
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/var/run/kamailio
53 cp -a $install/* $fs
54 mv $fs/usr/etc $fs
55 ln -s /etc $fs/usr/etc
56 }
58 # Pre and post install commands for Tazpkg.
59 post_install()
60 {
62 local user
63 local group
65 user=kamailio
66 group=kamailio
68 if ! grep -q $user $1/etc/passwd
69 then
70 echo -n "Adding user and group $user..."
71 chroot $1/ addgroup -S $group
72 chroot $1/ adduser -s /bin/false -S -D -H -G $group $user
73 status
74 fi
75 chroot "$1/" chown $user:$group /var/run/kamailio
76 }
78 post_remove()
79 {
80 echo "Removing user and group kamailio"
81 chroot "$1/" deluser kamailio
82 }