wok-next view kamailio/receipt @ rev 21360
guacamole: inserted fix libtool
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 13 06:41:39 2020 +0100 (2020-04-13) |
parents | 342b30daff76 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="kamailio"
4 VERSION="5.1.3"
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/w/"
11 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
12 WGET_URL="https://www.kamailio.org/pub/kamailio/$VERSION/src/$TARBALL"
14 BUILD_DEPENDS="radiusclient-ng-dev python-dev postgresql-dev openldap-dev \
15 libxml2-dev net-snmp-dev expat-dev pcre-dev "
17 compile_rules() {
18 # use /etc instead of /usr/etc
19 sed -i.orig \
20 's|cfg_prefix = $(basedir)$(prefix)|cfg_prefix = $(basedir)|;
21 s|cfg_target = $(prefix)/$(cfg_dir)|cfg_target = /$(cfg_dir)|' \
22 src/Makefile.defs
24 make \
25 PREFIX=/usr \
26 include_modules="acc_radius app_python auth_radius db_postgres ldap \
27 presence_conference presence_dialoginfo presence_mwi \
28 presence_profile presence_reginfo presence_xml snmpstats xmpp \
29 dialplan" \
30 cfg &&
31 make all &&
32 make \
33 PREFIX=/usr \
34 DESTDIR=$install \
35 install || return 1
37 mkdir -p $install/var/run/kamailio
38 }
40 genpkg_rules() {
41 copy @std
42 DEPENDS="expat libldap liblzma libpcre libpostgresqlclient libxml2 \
43 net-snmp python radiusclient-ng zlib"
44 CONFIG_FILES="/etc/kamailio/"
45 }
47 post_install() {
48 if ! grep -q kamailio $1/etc/passwd; then
49 chroot $1/ addgroup -S kamailio
50 chroot $1/ adduser -s /bin/false -S -D -H -G kamailio kamailio
51 fi
52 chroot "$1/" chown kamailio:kamailio /var/run/kamailio
53 }
55 post_remove() {
56 chroot "$1/" deluser kamailio
57 chroot "$1/" delgroup kamailio
58 }