blob: 1e64d7ad580c7b13b1929fea7d7afad8477ef6be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:
pkgname=kannel
pkgver=1.5.0
pkgrel=7
pkgdesc="Opensource WAP/SMS Gateway"
url="http://www.kannel.org"
arch="all"
license="custom"
depends=""
depends_dev="libxml2-dev mariadb-connector-c-dev postgresql-dev pcre-dev sqlite-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.kannel.org/download/$pkgver/gateway-$pkgver.tar.bz2
$pkgname-bearerbox.initd
$pkgname-smsbox.initd
$pkgname-wapbox.initd
$pkgname.initd
$pkgname.confd
fix-arm-build.patch
kannel-1.5.0-custom-wap-ports.patch
mariadb.patch
"
builddir="$srcdir"/gateway-$pkgver
prepare() {
default_prepare || return 1
update_config_guess || return 1
}
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--enable-pcre \
--with-sqlite3 \
--with-pgsql \
--with-mysql
touch .depend
make depend
make || return 1
}
package() {
cd "$builddir"
make DESTDIR=$pkgdir install
make DESTDIR=$pkgdir install-test
mkdir -p $pkgdir/var/log/kannel/
install -Dm755 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname.initd
install -Dm755 "$srcdir"/$pkgname-bearerbox.initd "$pkgdir"/etc/init.d/$pkgname-bearerbox.initd
install -Dm755 "$srcdir"/$pkgname-wapbox.initd "$pkgdir"/etc/init.d/$pkgname-wapbox.initd
install -Dm755 "$srcdir"/$pkgname-smsbox.initd "$pkgdir"/etc/init.d/$pkgname-smsbox.initd
install -D -m 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING
}
sha512sums="dff990a6856e23bd4c88f993f8a1973b35b02e7408410e228710611cb0fc4c70899bed3703e811c39af24e968fbe3b8e9c4eeac4f76dd68d8caa5287012fa289 gateway-1.5.0.tar.bz2
aff82592ed5f5ef0af00e04a6f1013f1601141ce00d0c5c281d394661f9ffe332745bc825cc4873286ad69580ae6a8067c6ee0840e8683904e74defcf8cfa16e kannel-bearerbox.initd
673ea6a0c30474c94ca04b79b558a68c91a79510d7b31d380c206f3b283a73d5bbe188d62769d748247c708af5eee01ceba343db70d52718c8a035fdd5ea863a kannel-smsbox.initd
a64dfbbb1382e0494354efcc4d549c186a5f0c492ea2a064a20355369972e00a023bdade4bcb3262b33e4c3ebdf259f0aaea552fb3d6e1e3b4999fedf495af7a kannel-wapbox.initd
e76c98a276953562ef05c23209270551fe431618ca83f90f557d510dd78f512e9844f9431f89ca7ad97af844af1536678a26395a4ebb438ec800ea35e3144032 kannel.initd
042840638cc5166cf6a76d76c7b6c96aa3c77648a50f4e316195d564fde47a9ad3d6b66d5283175f8f2053171ae785772609b49f8db88579a0bfcda757ecbe0a kannel.confd
41a7e7ab2b28eff87dffe878da0c645c77dc5de53f8811db8800d8f243681cb02fbf653b1b467ce19740101760cdeb7132ed555af6c6803ef740f805b0d559eb fix-arm-build.patch
cd71a435feadb43533ed06cf0a1f9e556131f5339951cc1971c9ebf922a5e028b390af978441d7d3fde68022f9c67fe3af69be737d9952614486613f7ba29d23 kannel-1.5.0-custom-wap-ports.patch
5a77ff1424bfe9d23929c156a972d56b3f5bd1ad97b67ba096449916612375e3a80745b564664ed9b009555ffb4a21ce300aea63938a4c6564f758a1e1c69b05 mariadb.patch"
|