wok-next annotate kamailio/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 342b30daff76 |
children |
rev | line source |
---|---|
al@20749 | 1 # SliTaz package receipt v2. |
pascal@19513 | 2 |
pascal@19513 | 3 PACKAGE="kamailio" |
al@20749 | 4 VERSION="5.1.3" |
pascal@19513 | 5 CATEGORY="network" |
al@20749 | 6 SHORT_DESC="Open Source SIP Server" |
pascal@19513 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19513 | 8 LICENSE="GPL2" |
al@20749 | 9 WEB_SITE="https://www.kamailio.org/w/" |
al@20749 | 10 |
pascal@19513 | 11 TARBALL="$PACKAGE-${VERSION}_src.tar.gz" |
al@20749 | 12 WGET_URL="https://www.kamailio.org/pub/kamailio/$VERSION/src/$TARBALL" |
pascal@19513 | 13 |
al@20749 | 14 BUILD_DEPENDS="radiusclient-ng-dev python-dev postgresql-dev openldap-dev \ |
al@20749 | 15 libxml2-dev net-snmp-dev expat-dev pcre-dev " |
pascal@19513 | 16 |
al@20749 | 17 compile_rules() { |
al@20749 | 18 # use /etc instead of /usr/etc |
al@20749 | 19 sed -i.orig \ |
al@20749 | 20 's|cfg_prefix = $(basedir)$(prefix)|cfg_prefix = $(basedir)|; |
al@20749 | 21 s|cfg_target = $(prefix)/$(cfg_dir)|cfg_target = /$(cfg_dir)|' \ |
al@20749 | 22 src/Makefile.defs |
al@20749 | 23 |
al@20749 | 24 make \ |
al@20749 | 25 PREFIX=/usr \ |
al@20749 | 26 include_modules="acc_radius app_python auth_radius db_postgres ldap \ |
al@20749 | 27 presence_conference presence_dialoginfo presence_mwi \ |
al@20749 | 28 presence_profile presence_reginfo presence_xml snmpstats xmpp \ |
al@20749 | 29 dialplan" \ |
al@20749 | 30 cfg && |
al@20749 | 31 make all && |
al@20749 | 32 make \ |
al@20749 | 33 PREFIX=/usr \ |
al@21020 | 34 DESTDIR=$install \ |
al@20749 | 35 install || return 1 |
al@20749 | 36 |
al@20749 | 37 mkdir -p $install/var/run/kamailio |
pascal@19513 | 38 } |
pascal@19513 | 39 |
al@20749 | 40 genpkg_rules() { |
al@20749 | 41 copy @std |
al@20749 | 42 DEPENDS="expat libldap liblzma libpcre libpostgresqlclient libxml2 \ |
al@20749 | 43 net-snmp python radiusclient-ng zlib" |
al@20749 | 44 CONFIG_FILES="/etc/kamailio/" |
pascal@19513 | 45 } |
pascal@19513 | 46 |
al@20749 | 47 post_install() { |
al@20749 | 48 if ! grep -q kamailio $1/etc/passwd; then |
al@20749 | 49 chroot $1/ addgroup -S kamailio |
al@20749 | 50 chroot $1/ adduser -s /bin/false -S -D -H -G kamailio kamailio |
pascal@19513 | 51 fi |
al@20749 | 52 chroot "$1/" chown kamailio:kamailio /var/run/kamailio |
pascal@19513 | 53 } |
pascal@19513 | 54 |
al@20749 | 55 post_remove() { |
al@20749 | 56 chroot "$1/" deluser kamailio |
al@20749 | 57 chroot "$1/" delgroup kamailio |
pascal@19513 | 58 } |