wok-6.x annotate kamailio/receipt @ rev 24587
updated gdb, gdb-dev and gdb-python (7.7 -> 11.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 28 14:51:19 2022 +0100 (2022-02-28) |
parents | 7ec8a84c5522 |
children | ce6b8763dcf8 |
rev | line source |
---|---|
pascal@19513 | 1 # SliTaz package receipt. |
pascal@19513 | 2 |
pascal@19513 | 3 PACKAGE="kamailio" |
Hans-G?nter@22977 | 4 VERSION="5.3.2" |
pascal@19513 | 5 CATEGORY="network" |
pascal@19513 | 6 SHORT_DESC="Open Source SIP Server." |
pascal@19513 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19513 | 8 LICENSE="GPL2" |
Hans-G?nter@22977 | 9 WEB_SITE="https://www.kamailio.org/" |
Hans-G?nter@22977 | 10 |
pascal@19513 | 11 TARBALL="$PACKAGE-${VERSION}_src.tar.gz" |
pascal@19513 | 12 WGET_URL="${WEB_SITE}pub/kamailio/$VERSION/src/$TARBALL" |
Hans-G?nter@22977 | 13 |
Hans-G?nter@22977 | 14 DEPENDS="curl expat libldap libssl libpostgresqlclient libxml2 |
Hans-G?nter@22977 | 15 net-snmp pcre radiusclient-ng" |
Hans-G?nter@22977 | 16 BUILD_DEPENDS="bison curl-dev expat-dev flex libxml2-dev |
Hans-G?nter@22977 | 17 net-snmp-dev openldap-dev openssl-dev pcre-dev |
Hans-G?nter@22977 | 18 postgresql-dev python-dev radiusclient-ng-dev" |
Hans-G?nter@22977 | 19 |
pascal@19513 | 20 CONFIG_FILES="/etc/kamailio" |
pascal@19513 | 21 |
pascal@24436 | 22 # What is the latest version available today? |
pascal@24436 | 23 current_version() |
pascal@24436 | 24 { |
pascal@24436 | 25 wget -O - https://www.kamailio.org/pub/kamailio/latest/src/ 2>/dev/null | \ |
pascal@24436 | 26 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)_src.*|\\1|" | sort -Vr | sed q |
pascal@24436 | 27 } |
pascal@24436 | 28 |
pascal@19513 | 29 # Rules to configure and make the package. |
pascal@19513 | 30 compile_rules() |
pascal@19513 | 31 { |
Hans-G?nter@22979 | 32 sed -i 's|uname -m|echo i486|' \ |
Hans-G?nter@22979 | 33 src/Makefile.defs |
Hans-G?nter@22977 | 34 |
Hans-G?nter@22977 | 35 make \ |
Hans-G?nter@22977 | 36 PREFIX="/usr" \ |
Hans-G?nter@22977 | 37 include_modules="acc_radius app_python auth_radius \ |
pascal@19513 | 38 db_postgres ldap presence_conference presence_dialoginfo presence_mwi \ |
Hans-G?nter@22977 | 39 presence_profile presence_reginfo presence_xml snmpstats xmpp dialplan" \ |
Hans-G?nter@22977 | 40 cfg && |
Hans-G?nter@22977 | 41 make all && |
pascal@19513 | 42 make DESTDIR=$DESTDIR install |
pascal@19513 | 43 } |
pascal@19513 | 44 |
pascal@19513 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19513 | 46 genpkg_rules() |
pascal@19513 | 47 { |
pascal@19513 | 48 mkdir -p $fs/var/run/kamailio |
Hans-G?nter@22977 | 49 |
Hans-G?nter@22977 | 50 cp -a $install/* $fs |
Hans-G?nter@22977 | 51 mv $fs/usr/etc $fs |
Hans-G?nter@22977 | 52 ln -s /etc $fs/usr/etc |
pascal@19513 | 53 } |
pascal@19513 | 54 |
pascal@19513 | 55 # Pre and post install commands for Tazpkg. |
pascal@19513 | 56 post_install() |
pascal@19513 | 57 { |
pascal@19513 | 58 |
pascal@19513 | 59 local user |
pascal@19513 | 60 local group |
pascal@19513 | 61 |
pascal@19513 | 62 user=kamailio |
pascal@19513 | 63 group=kamailio |
pascal@19513 | 64 |
Hans-G?nter@22977 | 65 if ! grep -q $user $1/etc/passwd |
Hans-G?nter@22977 | 66 then |
pascal@19513 | 67 echo -n "Adding user/group $user..." |
pascal@19513 | 68 chroot $1/ addgroup -S $group |
pascal@19513 | 69 chroot $1/ adduser -s /bin/false -S -D -H -G $group $user |
pascal@19513 | 70 status |
pascal@19513 | 71 fi |
pascal@19513 | 72 chroot "$1/" chown $user:$group /var/run/kamailio |
pascal@19513 | 73 } |
pascal@19513 | 74 |
pascal@19513 | 75 post_remove() |
pascal@19513 | 76 { |
pascal@19513 | 77 echo "Removing user/group kamailio" |
pascal@19513 | 78 chroot "$1/" deluser kamailio |
pascal@19513 | 79 } |