diff options
Diffstat (limited to 'testing/kamailio/APKBUILD')
-rw-r--r-- | testing/kamailio/APKBUILD | 167 |
1 files changed, 0 insertions, 167 deletions
diff --git a/testing/kamailio/APKBUILD b/testing/kamailio/APKBUILD deleted file mode 100644 index fe066f4663..0000000000 --- a/testing/kamailio/APKBUILD +++ /dev/null @@ -1,167 +0,0 @@ -# Contributor: Michael Mason <ms13sp@gmail.com> -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=kamailio -pkgver=3.0.2 -pkgrel=4 -pkgdesc="Open Source SIP Server" -url="http://www.kamailio.org/" -pkgusers="kamailio" -pkggroups="kamailio" -license="GPL" -depends= -makedepends="bison flex expat-dev postgresql-dev pcre-dev mysql-dev - libxml2-dev curl-dev unixodbc-dev confuse-dev" -install= -subpackages="$pkgname-doc $pkgname-postgres $pkgname-presence $pkgname-pcre - $pkgname-mediaproxy $pkgname-unixodbc $pkgname-mysql" -source="http://www.kamailio.org/pub/kamailio/$pkgver/src/kamailio-${pkgver}_src.tar.gz - kamailio.cfg - kamailio.initd - kamailio.pre-install - kamailio.post-install - kamailio-3-backslash.patch - " - -_builddir="$srcdir"/$pkgname-$pkgver - - -_default="carrierroute xmlrpc tm" -_presence="presence presence_xml presence_mwi pua pua_bla pua_mi pua_usrloc pua_xmpp rls xcap_client presence_dialoginfo pua_dialoginfo" -_pcre="dialplan lcr regex" -_postgres="db_postgres" -_mysql="db_mysql" -_mediaproxy="mediaproxy" -_odbc="db_unixodbc" -# Makefile does not handle newline -_modules="$_default $_postgres $_mediaproxy $_odbc $_presence $_mysql $_pcre" - - -prepare() { - cd "$_builddir" - patch -p1 -i "$srcdir"/kamailio-3-backslash.patch || return 1 - - sed -i \ - -e "s:-O9 -funroll-loops:$CFLAGS:g" \ - Makefile.defs \ - || return 1 - -# -e 's:^cfg-target.*:cfg-target = $(cfg-dir):' \ -# -e 's:^cfg-prefix.*:cfg-prefix = $(basedir):' \ - - cd utils/kamctl/ - sed -i -e 's:/var/run/kamailio.pid:/var/run/kamailio/kamailio.pid:g' \ - kamctl.base kamctlrc || return 1 - # we actually dont need bash - sed -i -e 's:/bin/bash:/bin/sh:' kamctl kamdbctl \ - || return 1 - # Set email_address field as not required field (could be null) - cd dbtext/kamailio - sed -i -e 's:email_address(string):email_address(string,null):' subscriber \ - || return 1 - -} - -build() { - cd "$_builddir" - - # workaround parallel build issue - make -C lib/kcore strcommon.o || return 1 - - make LOCALBASE=/usr \ - cfg_target=/etc/kamailio/ \ - MODS_MYSQL=yes \ - MODS_PCRE=yes \ - MODS_RADIUS= \ - TLS= \ - include_modules="$_modules" \ - all || return 1 -} - -package() { - cd "$_builddir" - make LOCALBASE=/usr \ - cfg_target=/etc/kamailio/ \ - MODS_MYSQL=yes \ - MODS_PCRE=yes \ - MODS_RADIUS= \ - TLS= \ - include_modules="$_modules" \ - basedir="$pkgdir" \ - cfg_prefix="$pkgdir" \ - install || return 1 - - # move default config to -doc package and use our own default config - - mv "$pkgdir"/etc/kamailio/kamailio.cfg \ - "$pkgdir"/usr/share/doc/kamailio/ - install -m644 -D "$srcdir"/kamailio.cfg \ - "$pkgdir"/etc/kamailio/kamailio.cfg - - install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - install -d -o kamailio "$pkgdir"/var/run/kamailio -} - -_mv_mod() { - local moddir=usr/lib/kamailio/modules i= - mkdir -p "$subpkgdir"/$moddir - for i in $@; do - mv "$pkgdir"/$moddir/$i.so "$subpkgdir"/$moddir/ || return 1 - done -} - -_mv_mod_k() { - local moddir=usr/lib/kamailio/modules_k i= - mkdir -p "$subpkgdir"/$moddir - for i in $@; do - mv "$pkgdir"/$moddir/$i.so "$subpkgdir"/$moddir/ || return 1 - done -} - - -mysql() { - pkgdesc="MySQL support for kamailio" - depends="kamailio mysql-client" - _mv_mod db_mysql - mkdir -p "$subpkgdir"/usr/share/kamailio - mv "$pkgdir"/usr/share/kamailio/mysql \ - "$subpkgdir"/usr/share/kamailio/ -} - -postgres() { - pkgdesc="PostgreSQL support for kamailio" - depends="kamailio postgresql-client" - _mv_mod db_postgres - mkdir -p "$subpkgdir"/usr/share/kamailio - mv "$pkgdir"/usr/share/kamailio/postgres \ - "$subpkgdir"/usr/share/kamailio/ -} - -pcre() { - pkgdesc="Regular expressions support for kamailio" - _mv_mod dialplan lcr - _mv_mod_k regex -} - -presence() { - pkgdesc="Presence support for kamailio" - _mv_mod_k $_presence -} - -mediaproxy() { - pkgdesc="Mediaproxy support for kamailio" - depends="kamailio" - _mv_mod $_mediaproxy -} - -unixodbc() { - pkgdesc="UnixODBC support for kamailio" - depends="kamailio" - _mv_mod_k $_odbc -} - -md5sums="dd039e078a77032a423fb15f9685ad31 kamailio-3.0.2_src.tar.gz -a3c959ec568c43a905710e7d25cd8c25 kamailio.cfg -81100c479890a2a8c2628db22fdd1a0c kamailio.initd -c646af2dd31f5c4289a2f802c873d98f kamailio.pre-install -3fbaf633ff1620d0d526fc4047c7bed9 kamailio.post-install -36f81be3a082a81497e261ac8e6c5414 kamailio-3-backslash.patch" |